/* ============================================
   LIBRA - Government Style Website
   Official • Professional • Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Slab:wght@400;500;600;700&display=swap');

:root {
    /* Government Dark Theme */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-elevated: #1c2128;
    --bg-card: #21262d;
    --border-color: #30363d;
    --border-light: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-blue: #58a6ff;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4e4a6;
    --accent-gold-dark: #8b7422;
    --success: #3fb950;
    --warning: #d29922;
    --error: #f85149;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* ============================================
   GOVERNMENT HEADER
   ============================================ */
.gov-header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.seal {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2);
}

.seal-text {
    font-family: 'Roboto Slab', serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.gov-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-gold);
}

.nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-bottom: none;
}

.nav-link-icon svg {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.nav-link-icon:hover {
    border-bottom: none;
}

.nav-link-icon:hover svg {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.coin-display-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.coin-frame {
    background: var(--bg-elevated);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.3));
}

.official-stamp {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 4px;
}

.stamp-icon {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.stamp-text {
    font-size: 0.75rem;
    color: var(--accent-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
    margin-top: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   DOCUMENTATION SECTION
   ============================================ */
.documentation-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

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

.document-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.document-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.document-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.document-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Roboto Slab', serif;
    letter-spacing: 0.05em;
}

.document-preview {
    padding: 1.5rem;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.document-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.document-image:hover {
    transform: scale(1.02);
}

.document-info {
    padding: 1.5rem;
}

.document-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.document-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.document-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Roboto Slab', serif;
}

.documentation-notice {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 4px;
    margin-top: 2rem;
}

.notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.notice-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-number {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    opacity: 0.5;
}

.card-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   SPECIFICATIONS SECTION
   ============================================ */
.specs-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.specs-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background: var(--bg-elevated);
}

.spec-label {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   LEGAL SECTION
   ============================================ */
.legal-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-notice {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    border-radius: 4px;
}

.legal-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.legal-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 4rem 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.contact-label {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.contact-value {
    color: var(--accent-blue);
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
}

/* ============================================
   GOVERNMENT FOOTER
   ============================================ */
.gov-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gov-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

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

    .info-grid {
        grid-template-columns: 1fr;
    }

    .document-grid {
        grid-template-columns: 1fr;
    }

    .documentation-notice {
        flex-direction: column;
    }

    .coin-frame {
        padding: 1rem;
    }
}

/* Selection */
::selection {
    background: var(--accent-gold);
    color: var(--bg-primary);
}
