/* Oficina de Roteiro - CSS Otimizado */

/* =========================
   1. RESET E VARIÁVEIS
   ========================= */
*{margin:0;padding:0;box-sizing:border-box}

:root{
    --primary:#2c3e50;
    --secondary:#3498db;
    --accent:#e74c3c;
    --success:#27ae60;
    --warning:#f39c12;
    --text:#333;
    --text-light:#555;
    --bg:#f8f9fa;
    --white:#fff;
    --shadow:0 2px 8px rgba(0,0,0,.1);
    --shadow-hover:0 4px 16px rgba(0,0,0,.15);
    --transition:all .3s ease
}

/* =========================
   2. BASE
   ========================= */
body{
    font-family:'Inter','Segoe UI',Tahoma,sans-serif;
    line-height:1.6;
    color:var(--text);
    background:var(--bg)
}

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

/* =========================
   3. HEADER
   ========================= */
.main-header{
    background:linear-gradient(135deg,#1e3c72 0%,#2a5298 100%);
    color:var(--white);
    padding:80px 20px;
    text-align:center;
    box-shadow:var(--shadow)
}

.header-content h1{
    font-size:3em;
    margin-bottom:15px;
    font-weight:700;
    letter-spacing:-1px
}

.tagline{
    font-size:1.3em;
    opacity:.95;
    font-weight:300
}

/* =========================
   4. NAVIGATION
   ========================= */
.main-nav{
    background:var(--primary);
    box-shadow:var(--shadow);
    position:sticky;
    top:0;
    z-index:1000
}

.nav-container{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    height:60px
}

.menu-toggle{
    display:none;
    background:0 0;
    border:none;
    cursor:pointer;
    padding:5px
}

.menu-toggle span{
    display:block;
    width:25px;
    height:3px;
    background:var(--white);
    margin:5px 0;
    transition:var(--transition)
}

.nav-links{
    display:flex;
    list-style:none;
    width:100%;
    justify-content:center;
    gap:20px
}

.nav-links li{
    flex:1;
    text-align:center
}

.nav-links a{
    display:block;
    color:var(--white);
    text-decoration:none;
    padding:18px 15px;
    font-weight:500;
    transition:var(--transition);
    border-bottom:3px solid transparent;
    text-transform:uppercase;
    font-size:.9em;
    letter-spacing:.5px
}

.nav-links a:hover{
    background:#34495e;
    border-bottom:3px solid var(--secondary)
}

/* =========================
   5. HERO
   ========================= */
.hero{
    background:var(--white);
    padding:60px 20px;
    margin:40px 0
}

.hero h2{
    color:var(--primary);
    font-size:2.5em;
    margin-bottom:30px;
    text-align:center
}

.intro-text{
    font-size:1.1em;
    line-height:1.8;
    color:var(--text-light);
    margin-bottom:20px;
    text-align:justify
}

/* =========================
   6. SCRIPT CARDS
   ========================= */
.featured-scripts{
    padding:60px 20px
}

.featured-scripts h2{
    color:var(--primary);
    font-size:2.5em;
    margin-bottom:40px;
    text-align:center;
    border-bottom:3px solid var(--secondary);
    padding-bottom:15px
}

.script-card{
    background:var(--white);
    padding:30px;
    margin:30px 0;
    border-radius:12px;
    box-shadow:var(--shadow);
    transition:var(--transition)
}

.script-card:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-hover)
}

.script-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
    gap:15px
}

.script-header h3{
    color:var(--primary);
    font-size:1.8em;
    flex:1
}

.script-tag{
    padding:8px 16px;
    border-radius:20px;
    font-size:.85em;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.5px
}

.script-tag.suspense{
    background:var(--accent);
    color:var(--white)
}

.script-tag.comedy{
    background:var(--warning);
    color:var(--white)
}

.script-meta{
    display:flex;
    gap:20px;
    margin:15px 0;
    flex-wrap:wrap;
    font-size:.9em;
    color:var(--text-light)
}

.script-synopsis{
    line-height:1.7;
    color:var(--text-light);
    margin:20px 0
}

.script-actions{
    display:flex;
    gap:15px;
    margin-top:25px;
    flex-wrap:wrap
}

/* =========================
   7. BUTTONS
   ========================= */
.btn{
    display:inline-block;
    padding:12px 30px;
    text-decoration:none;
    border-radius:50px;
    font-weight:600;
    transition:var(--transition);
    cursor:pointer;
    border:none;
    font-size:1em
}

.btn-primary{
    background:linear-gradient(135deg,var(--secondary) 0%,#2980b9 100%);
    color:var(--white);
    box-shadow:0 4px 6px rgba(0,0,0,.1)
}

.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 12px rgba(0,0,0,.15)
}

.btn-secondary{
    background:var(--white);
    color:var(--primary);
    border:2px solid var(--primary)
}

.btn-secondary:hover{
    background:var(--primary);
    color:var(--white)
}

/* =========================
   8. REACTIONS
   ========================= */
.reactions-container{
    background:#f8f9fa;
    padding:20px;
    border-radius:8px;
    margin-top:20px;
    border-top:3px solid var(--secondary)
}

.reactions-container h4{
    color:var(--primary);
    font-size:1.1em;
    margin-bottom:15px;
    text-align:center
}

.reactions-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap
}

.reaction-btn{
    background:var(--white);
    border:2px solid #ddd;
    border-radius:50px;
    padding:12px 20px;
    cursor:pointer;
    transition:var(--transition);
    font-size:1.1em;
    display:flex;
    align-items:center;
    gap:8px;
    box-shadow:0 2px 4px rgba(0,0,0,.1)
}

.reaction-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 4px 8px rgba(0,0,0,.15);
    border-color:var(--secondary)
}

.reaction-btn.active{
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color:var(--white);
    border-color:#667eea;
    transform:scale(1.05)
}

.reaction-emoji{
    font-size:1.4em
}

.reaction-count{
    font-weight:600;
    min-width:20px
}

/* =========================
   9. MEDIA & IMAGES
   ========================= */
.video-embed{
    background:white;
    padding:30px;
    margin:40px auto;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    border-left:5px solid #f00;
    max-width:900px
}

.video-container{
    position:relative;
    padding-bottom:56.25%;
    height:0;
    overflow:hidden;
    background:#000;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    margin-top:20px
}

.video-container iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0
}

.imagem-roteiro{
    width:100%;
    max-width:600px;
    height:auto;
    border-radius:8px;
    margin:20px auto;
    display:block;
    box-shadow:0 4px 12px rgba(0,0,0,.1)
}

/* =========================
   10. CONTACT
   ========================= */
.contact{
    padding:60px 20px;
    background:linear-gradient(135deg,var(--secondary) 0%,#2980b9 100%);
    color:var(--white);
    text-align:center
}

.contact h2{
    font-size:2.5em;
    margin-bottom:20px
}

.contact-info{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    margin:40px 0
}

.contact-card{
    background:rgba(255,255,255,.1);
    padding:30px;
    border-radius:12px;
    backdrop-filter:blur(10px)
}

/* =========================
   11. FOOTER
   ========================= */
.main-footer{
    background:var(--primary);
    color:var(--white);
    padding:60px 20px 20px
}

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

.footer-section h4{
    font-size:1.3em;
    margin-bottom:15px
}

.footer-section ul{
    list-style:none
}

.footer-section a{
    color:var(--white);
    text-decoration:none;
    opacity:.9;
    transition:var(--transition)
}

.footer-section a:hover{
    opacity:1;
    color:var(--secondary)
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.2);
    padding-top:20px;
    text-align:center
}

/* =========================
   12. RESPONSIVE
   ========================= */
@media (max-width:768px){
    .header-content h1{font-size:2em}
    .tagline{font-size:1.1em}
    .menu-toggle{display:block}
    .nav-links{
        display:none;
        position:absolute;
        top:60px;
        left:0;
        width:100%;
        background:#2c3e50;
        flex-direction:column;
        gap:0;
        box-shadow:var(--shadow)
    }
    .nav-links.active{display:flex}
    .nav-links li{width:100%;text-align:left;border-bottom:1px solid rgba(255,255,255,.1)}
    .nav-links a{padding:15px 20px}
    .hero h2{font-size:2em}
    .script-header{flex-direction:column;align-items:flex-start}
    .script-meta{flex-direction:column;gap:10px}
    .script-actions{flex-direction:column}
    .script-actions .btn{width:100%;text-align:center}
}

@media (max-width:480px){
    .header-content h1{font-size:1.8em}
    .reactions-buttons{flex-direction:column}
    .reaction-btn{width:100%;justify-content:center}
}
