* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background: #0f1419;
    min-height: 100vh;
    font-size: 14px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(50, 83, 222, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(95, 119, 202, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 40% 80%, rgba(50, 83, 222, 0.08) 0%, transparent 40%);
    animation: gradientMove 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(-5%, -5%) rotate(180deg); }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    margin-bottom: 40px;
    position: relative;
}

.header-content {
    flex: 1;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.header-subtitle {
    font-size: 1rem;
    color: #9ca3af;
    max-width: 500px;
}

.header-demo {
    position: relative;
    background: rgba(50, 83, 222, 0.1);
    padding: 20px;
    border: 1px solid rgba(50, 83, 222, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.header-demo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(138, 43, 226, 0.3),   /* 보라색 */
        rgba(75, 0, 130, 0.2),     /* 남보라색 */
        rgba(30, 144, 255, 0.3),   /* 파란색 */
        rgba(123, 104, 238, 0.2),  /* 연보라색 */
        rgba(65, 105, 225, 0.3)    /* 로얄블루 */
    );
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: gradientShift 6s ease-in-out infinite;
    opacity: 0.8;
}

.header-demo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(147, 0, 211, 0.4) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 70% 70%,
        rgba(0, 100, 255, 0.4) 0%,
        transparent 50%
    );
    border-radius: 8px;
    z-index: -1;
    animation: shimmer 4s ease-in-out infinite alternate;
    mix-blend-mode: overlay;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 100% 0%;
        transform: scale(1.02);
    }
    50% {
        background-position: 100% 100%;
        transform: scale(1);
    }
    75% {
        background-position: 0% 100%;
        transform: scale(1.01);
    }
    100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        opacity: 0.6;
        filter: blur(1px) brightness(1.1);
    }
    100% {
        opacity: 1;
        filter: blur(0px) brightness(1.3);
    }
}

.header-demo h4 {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Navigation Styles */
.demo-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 40px;
    background: #1f2937;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #374151;
}

.nav-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    color: #d1d5db;
    background: rgba(55, 65, 81, 0.5);
}

.nav-btn.active {
    background: linear-gradient(135deg, #3253de, #5f77ca);
    color: white;
}

/* Content Styles */
.content {
    background: #111827;
    border: 1px solid #374151;
    padding: 40px;
    margin-bottom: 30px;
}

.demo-section {
    display: none;
}

.demo-section.active {
    display: block;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #5f77ca;
}

.use-case {
    margin-bottom: 40px;
    background: #1f2937;
    border: 1px solid #374151;
    padding: 24px;
}

.use-case h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f9fafb;
}

.use-case > p {
    color: #9ca3af;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.demo-container {
    background: #0f1419;
    padding: 24px;
    border: 1px solid #374151;
    margin-bottom: 16px;
    position: relative;
}

.demo-description {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 12px;
}

.dark-demo {
    background: #1f2937;
    border-color: #4b5563;
}

/* Theme Demo Grid */
.theme-demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Button Styles */
.action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #3253de, #5f77ca);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    font-size: 0.9rem;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.lang-btn {
    padding: 6px 12px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 4px;
    cursor: pointer;
    margin: 3px;
    transition: all 0.2s ease;
    color: #d1d5db;
    font-size: 0.85rem;
}

.lang-btn:hover {
    background: #4b5563;
    border-color: #5f77ca;
}

.language-controls {
    margin-top: 12px;
}

/* Search Tips */
.search-tips {
    background: rgba(50, 83, 222, 0.05);
    padding: 16px;
    border-left: 3px solid #5f77ca;
    margin-top: 16px;
    border-radius: 0 4px 4px 0;
}

.search-tips strong {
    color: #e5e7eb;
}

.search-tips ul {
    margin-top: 8px;
    padding-left: 20px;
}

.search-tips li {
    margin-bottom: 4px;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Event Log */
.event-log {
    background: #0f1419;
    color: #d1d5db;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    max-height: 180px;
    overflow-y: auto;
    margin-top: 16px;
    border: 1px solid #374151;
}

.event-log:empty::before {
    content: "Event logs will appear here...";
    color: #6b7280;
    font-style: italic;
}

/* Form Styles */
.demo-form {
    max-width: 450px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #f3f4f6;
    font-size: 0.9rem;
}

.submit-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
}

.form-result {
    margin-top: 16px;
    padding: 16px;
    background: rgba(50, 83, 222, 0.05);
    border: 1px solid rgba(50, 83, 222, 0.2);
    min-height: 50px;
}

.form-result h4 {
    color: #e5e7eb;
    margin-bottom: 8px;
}

.form-result div {
    margin-bottom: 4px;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Reset Demo Grid */
.reset-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reset-demo-grid label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f3f4f6;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #374151;
}

.footer p {
    color: #6b7280;
    font-weight: 400;
}

.text-red {
    color: #ef4444;
}

/* Feature highlight boxes */
.feature-highlight {
    background: rgba(50, 83, 222, 0.05);
    border: 1px solid rgba(50, 83, 222, 0.2);
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.feature-highlight h4 {
    color: #e5e7eb;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.feature-highlight p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

/* i18n info styling */
.i18n-info {
    background: rgba(50, 83, 222, 0.05);
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
    border: 1px solid rgba(50, 83, 222, 0.2);
}

.i18n-info strong {
    color: #e5e7eb;
    font-size: 0.9rem;
}

.i18n-info ul {
    margin: 8px 0 0 16px;
    padding: 0;
}

.i18n-info li {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-demo {
        width: 100%;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .content {
        padding: 24px;
    }

    .use-case {
        padding: 20px;
    }

    .demo-container {
        padding: 20px;
    }

    .theme-demo-grid {
        grid-template-columns: 1fr;
    }

    .reset-demo-grid {
        grid-template-columns: 1fr;
    }

    .demo-nav {
        flex-wrap: wrap;
    }

    .nav-btn {
        flex: none;
        min-width: 120px;
    }
}

/* Animation for smooth transitions */
.demo-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
.event-log::-webkit-scrollbar {
    width: 6px;
}

.event-log::-webkit-scrollbar-track {
    background: #1f2937;
}

.event-log::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

.event-log::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Loading animation */
.action-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.action-btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Code styling */
code {
    background: #374151;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #fbbf24;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3253de, #5f77ca);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 280px;
    font-size: 0.9rem;
}

.notification.show {
    transform: translateX(0);
}