/* ============================================
   MUSICA — Shared Styles
   ============================================ */

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #0A0A0A;
    color: #F5F5F5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- NAV ---------- */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #F5F5F5;
}
.logo span { color: #7C3AED; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: #F5F5F5; }
.nav-links .cta-btn {
    background: #7C3AED;
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}
.nav-links .cta-btn:hover { background: #6D28D9; color: #fff; }

/* ---------- HERO ---------- */
.hero {
    padding: 50px 0 30px;
    text-align: center;
}
.hero h1 {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
    margin-bottom: 12px;
}
.hero h1 em { color: #7C3AED; font-style: italic; }
.hero p {
    font-size: clamp(16px, 1.4vw, 20px);
    color: rgba(255, 255, 255, 0.5);
    max-width: 620px;
    margin: 0 auto 24px;
}

/* ---------- SEARCH ---------- */
.search-wrapper {
    max-width: 680px;
    margin: 0 auto;
}
.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.search-bar:focus-within { border-color: #7C3AED; }
.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    color: #F5F5F5;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.search-bar input::placeholder { color: rgba(255, 255, 255, 0.2); }
.search-bar button {
    background: #7C3AED;
    border: none;
    color: #fff;
    padding: 0 28px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}
.search-bar button:hover { background: #6D28D9; }

.search-suggestions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.search-suggestions span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.search-suggestions span:hover {
    background: rgba(124, 58, 237, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- STATS ---------- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 10px;
}
.stat-item { text-align: center; }
.stat-item .number {
    font-size: 28px;
    font-weight: 700;
    color: #F5F5F5;
    letter-spacing: -0.5px;
}
.stat-item .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- FEATURES ---------- */
.features { padding: 40px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 24px 22px;
    transition: all 0.3s;
}
.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}
.feature-card .icon { font-size: 28px; margin-bottom: 10px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

/* ---------- ERA TIMELINE ---------- */
.era-section { padding: 40px 0 50px; }
.era-section h2 {
    font-family: 'Newsreader', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
    text-align: center;
}
.era-timeline {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}
.era-timeline::-webkit-scrollbar { height: 4px; }
.era-timeline::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
.era-timeline::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

.era-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.era-item:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}
.era-item .year { font-size: 20px; font-weight: 700; color: #7C3AED; }
.era-item .label { font-size: 12px; color: rgba(255, 255, 255, 0.4); margin-top: 4px; }
.era-item .movement { font-size: 11px; color: rgba(255, 255, 255, 0.2); margin-top: 6px; }

/* ---------- CTA ---------- */
.cta-section {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.cta-section h2 {
    font-family: 'Newsreader', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.4);
    max-width: 500px;
    margin: 0 auto 24px;
    font-size: 15px;
}
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #7C3AED;
    color: #fff;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-primary:hover { background: #6D28D9; }

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #F5F5F5;
}

/* ---------- CONTENT (About page) ---------- */
.content { padding: 30px 0 50px; }
.content h2 {
    font-family: 'Newsreader', serif;
    font-size: 26px;
    font-weight: 400;
    margin: 40px 0 16px;
}
.content h2:first-of-type { margin-top: 0; }
.content p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin-bottom: 16px;
    font-size: 15px;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0 30px;
}
.grid-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px 24px;
}
.grid-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: #F5F5F5; }
.grid-card p { font-size: 13px; color: rgba(255, 255, 255, 0.4); margin: 0; }

.principle-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin: 20px 0 30px;
}
.principle-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px 18px;
}
.principle-item .emoji { font-size: 24px; }
.principle-item h4 { font-size: 14px; font-weight: 600; margin: 6px 0 2px; }
.principle-item p { font-size: 12px; color: rgba(255, 255, 255, 0.35); margin: 0; }

.stats-mini {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin: 20px 0 30px;
}
.stats-mini .item .num { font-size: 24px; font-weight: 700; color: #7C3AED; }
.stats-mini .item .lbl { font-size: 12px; color: rgba(255, 255, 255, 0.3); }

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 30px 0 20px;
    margin-top: 10px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-left {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.2);
}
.footer-left strong { color: rgba(255, 255, 255, 0.3); }
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.5); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 12px; }
    .stats-bar { gap: 20px; }
    .stat-item .number { font-size: 22px; }
    .features-grid { grid-template-columns: 1fr; }
    .grid-2col { grid-template-columns: 1fr; }
    .principle-list { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .era-item { flex: 0 0 130px; }
}
@media (max-width: 480px) {
    .hero { padding: 30px 0; }
    .hero h1 { font-size: 28px; }
    .search-bar input { font-size: 14px; padding: 14px 16px; }
    .search-bar button { padding: 0 18px; font-size: 12px; }
}