/* Juá Literária 2026 - Premium CSS Design System */

:root {
    --primary-blue: #004AAD;
    --secondary-orange: #FF6600;
    --accent-red: #D9211E;
    --pure-white: #FFFFFF;
    --light-gray: #F5F5F7;
    --dark-blue: #001A4D;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--pure-white);
    color: var(--dark-blue);
    overflow-x: hidden;
}

/* Typography Selection */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,900;1,900&display=swap');

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Header & Glassmorphism */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos {
    display: flex;
    gap: 20px;
    align-items: center;
}

.logos img {
    height: 40px;
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

header.scrolled .logos img {
    filter: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: var(--pure-white);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

header.scrolled nav ul li a {
    color: var(--dark-blue);
}

nav ul li a:hover {
    color: var(--secondary-orange);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 74, 173, 0.7), rgba(0, 74, 173, 0.9)), url('sao_francisco_river_literary_event_background_1775613213136.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--secondary-orange);
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.btn-primary {
    background: var(--secondary-orange);
    color: var(--pure-white);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.5);
    background: var(--accent-red);
}

/* Wave Animation */
.waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Tabs Section */
.programming {
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--primary-blue);
}

.section-title p {
    color: var(--secondary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: var(--pure-white);
    color: var(--dark-blue);
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: var(--pure-white);
    transform: scale(1.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s forwards;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

.event-card {
    background: var(--pure-white);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-blue);
    transition: var(--transition-smooth);
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-card.featured {
    border-left-color: var(--secondary-orange);
}

.event-card .time {
    font-weight: 800;
    color: var(--secondary-orange);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.event-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.event-card .location {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.audio-player {
    margin-top: 20px;
    background: #f0f4f8;
    padding: 10px;
    border-radius: 12px;
}

.audio-player audio {
    width: 100%;
    height: 35px;
}

.audio-player.mini {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    margin-top: 15px;
    padding: 5px;
}

.audio-player.mini audio {
    height: 30px;
    filter: invert(100%) opacity(0.8);
}

/* Artists Section */
.artists {
    padding: 100px 0;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.artist-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .location-container {
        grid-template-columns: 1fr !important;
    }
}

.artist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.artist-card:hover img {
    transform: scale(1.1);
}

.artist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,26,77,0.9));
    color: var(--pure-white);
}

.artist-info h4 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.artist-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: var(--pure-white);
    padding: 80px 0 40px;
}

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

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 25px;
    font-family: 'Outfit';
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--secondary-orange);
    padding-left: 10px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}

/* Section Separators */
.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-top .shape-fill {
    fill: var(--pure-white);
}

.programming {
    background: var(--light-gray);
    position: relative;
    padding-top: 150px;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .section-title h2 { font-size: 2.5rem; }
    nav { display: none; }
}
