/* Modern, Responsive CSS for Multilingual Ledger Live Site */

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-color: #2a2a3e;
    --hover-color: #0d47a1;
    --gradient-start: #1a1a2e;
    --gradient-end: #16213e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    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: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-size: 16px;
}

/* Header & Navigation */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    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);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher select {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.language-switcher select:hover {
    background: var(--accent-color);
    border-color: var(--hover-color);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.3) 0%, rgba(22, 33, 62, 0.3) 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.content-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--hover-color);
    padding-left: 1rem;
}

.content-section h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin: 2rem 0 1rem;
    color: var(--text-secondary);
}

.content-section p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: justify;
}

.content-section ul, .content-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 0.75rem;
}

/* Images */
.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    object-fit: contain;
}

/* FAQ Section */
.faq-section {
    background: rgba(15, 52, 96, 0.4);
    padding: 3rem;
    margin-top: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.faq-item {
    background: rgba(26, 26, 46, 0.6);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--hover-color);
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
    color: var(--hover-color);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Internal Links */
.internal-link {
    color: #64b5f6;
    text-decoration: none;
    border-bottom: 1px dotted #64b5f6;
    transition: all 0.3s;
    font-weight: 500;
}

.internal-link:hover {
    color: #90caf9;
    border-bottom-color: #90caf9;
}

/* Footer */
footer {
    background: rgba(26, 26, 46, 0.95);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .language-switcher {
        width: 100%;
    }

    .language-switcher select {
        width: 100%;
    }

    main {
        padding: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .faq-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .content-section {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    header, footer, .language-switcher {
        display: none;
    }

    .content-section {
        background: white;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

