/* ============================================
   Reset & Base Styles
   ============================================ */

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

:root {
    /* Dark Mode (Default) - Modern & Refined */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-elevated: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #d0d0d0;
    --text-muted: #999999;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-active: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.1);
    --border: #2a2a2a;
    --border-light: #333333;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --shadow-glow: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-elevated: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-active: #4338ca;
    --accent-light: rgba(99, 102, 241, 0.1);
    --border: #e2e8f0;
    --border-light: #cbd5e0;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --shadow-glow: rgba(99, 102, 241, 0.2);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg-primary: #ffffff;
        --bg-secondary: #f5f5f5;
        --bg-tertiary: #e8e8e8;
        --text-primary: #1a1a1a;
        --text-secondary: #4a4a4a;
        --text-muted: #6a6a6a;
        --accent: #0066cc;
        --accent-hover: #0052a3;
        --accent-active: #004080;
        --border: #d0d0d0;
        --success: #2e7d32;
        --warning: #f57c00;
        --error: #c62828;
        --shadow: rgba(0, 0, 0, 0.1);
        --shadow-lg: rgba(0, 0, 0, 0.2);
    }
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.03) 0px, transparent 50%);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

header {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px var(--shadow);
}

[data-theme="light"] header {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
}

nav a:hover {
    color: var(--accent);
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.625rem 1.25rem;
    border-radius: 0.625rem;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px var(--shadow);
}

.theme-toggle:hover {
    background-color: var(--bg-elevated);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px var(--shadow-md);
}

.theme-toggle:active {
    transform: translateY(0);
}

main {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

@media (min-width: 1024px) {
    main {
        padding: 5rem 0;
    }
}

footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 6rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 2rem;
    margin-bottom: 5rem;
    border: 1px solid var(--border);
    box-shadow: 
        0 20px 60px var(--shadow-md),
        0 0 0 1px var(--border-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

[data-theme="light"] .hero::after {
    opacity: 0.2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 4rem;
    }
    
    .hero h1 {
        margin-bottom: 2.5rem;
    }
}

/* ============================================
   Audio Player
   ============================================ */

.audio-player-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 4rem 3rem;
    margin: 5rem 0;
    text-align: center;
    box-shadow: 
        0 20px 60px var(--shadow-md),
        0 0 0 1px var(--border-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.audio-player-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hover), transparent);
    opacity: 0.8;
}

.audio-player-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}

@media (min-width: 1024px) {
    .audio-player-section {
        padding: 5rem 4rem;
    }
}

.audio-player-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.volume-warning {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

.volume-warning strong {
    color: var(--warning);
    display: block;
    margin-bottom: 0.5rem;
}

.player-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .player-controls {
        gap: 2rem;
    }
}

.btn {
    padding: 1.125rem 2.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

@media (min-width: 1024px) {
    .btn {
        padding: 1.25rem 3rem;
        font-size: 1.1875rem;
        min-width: 200px;
    }
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 
        0 8px 20px var(--shadow-glow),
        0 4px 8px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px var(--shadow-glow),
        0 6px 12px var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 16px var(--shadow-glow),
        0 2px 4px var(--shadow);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px var(--shadow);
}

.btn-secondary:hover {
    background-color: var(--bg-elevated);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.audio-status {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Content Sections
   ============================================ */

.content-section {
    margin: 5rem 0;
}

@media (min-width: 1024px) {
    .content-section {
        margin: 6rem 0;
    }
}

.content-section h2 {
    border-bottom: 2px solid var(--border);
    padding-bottom: 1.5rem;
    position: relative;
    margin-bottom: 2.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), transparent);
    border-radius: 2px;
}

.content-section h3 {
    color: var(--accent);
    font-weight: 600;
}

.content-box {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 
        0 4px 16px var(--shadow),
        0 0 0 1px var(--border-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-box:hover {
    box-shadow: 
        0 12px 32px var(--shadow-md),
        0 0 0 1px var(--accent-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    border-color: var(--border-light);
}

@media (min-width: 1024px) {
    .content-box {
        padding: 3rem;
        margin: 3rem 0;
    }
}

.info-box {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-tertiary) 100%);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-tertiary) 100%);
    border-left: 4px solid var(--warning);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.success-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-tertiary) 100%);
    border-left: 4px solid var(--success);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px var(--shadow-glow);
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px var(--shadow-md);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-tertiary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

/* ============================================
   Cookie Banner
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -4px 24px var(--shadow-lg);
    display: none;
}

[data-theme="light"] .cookie-banner {
    background: rgba(255, 255, 255, 0.95);
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* ============================================
   Language Switcher
   ============================================ */

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.lang-link {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.lang-link:hover {
    background-color: var(--bg-tertiary);
}

.lang-link.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 2px 8px var(--shadow-glow);
}

/* ============================================
   Responsive Design (Mobile-First)
   ============================================ */

/* Desktop Optimizations */
@media (min-width: 1024px) {
    .content-section h2 {
        font-size: 2.5rem;
    }
    
    .content-section h3 {
        font-size: 1.875rem;
    }
    
    p {
        font-size: 1.125rem;
        line-height: 1.9;
    }
    
    .content-box ul,
    .content-box ol {
        font-size: 1.0625rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .audio-player-section {
        padding: 2rem 1.5rem;
    }

    .player-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner-actions .btn {
        flex: 1;
        max-width: 200px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        justify-content: space-between;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    main {
        padding: 1rem 0;
    }

    .content-section {
        margin: 2rem 0;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .cookie-banner,
    .theme-toggle,
    .player-controls,
    nav {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}


/* ============================================
   Share Section
   ============================================ */
.share-section {
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-facebook { background-color: #1877F2; }
.share-twitter { background-color: #000000; }
.share-whatsapp { background-color: #25D366; }
.share-telegram { background-color: #0088cc; }
.share-email { background-color: #ea4335; }
