/* General Styles */
:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #a0a0a0;
    --green: #4caf50;
    --red: #f44336;
    --border-radius: 12px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--primary-text-color);
    margin: 0;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

h2 {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.subtitle {
    color: var(--secondary-text-color);
    max-width: 720px;
    margin: 0.75rem auto 1rem;
    line-height: 1.6;
}

.status {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: var(--secondary-text-color);
}

.main-nav {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.main-nav a {
    color: var(--primary-text-color);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    transition: transform 0.2s, background-color 0.2s;
}

.main-nav a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

section {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    scroll-margin-top: 120px;
}

/* Indices Section */
.index-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Chart Section */
.chart-section {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.info-card p {
    margin: 0;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

.privacy p {
    color: var(--secondary-text-color);
    line-height: 1.6;
}

.privacy a {
    color: #9ad1ff;
}

/* ApeWisdom Section */
.ape-wisdom h2 {
    color: #ff9800; /* Orange color for 'Reddit' feel */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* Responsive Design */
@media (max-width: 900px) {
    .top-section {
        grid-template-columns: 1fr;
    }
    
    .index-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }

    section {
        padding: 1.5rem;
    }

    .main-nav {
        gap: 0.5rem;
    }
}
