/* Script Page Specific Styles */

.script-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px 80px;
    position: relative;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    opacity: 0.9;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 30px;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.script-number-large {
    font-size: 5em;
    font-weight: 700;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 10px;
}

.script-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.script-tagline {
    font-size: 1.3em;
    opacity: 0.95;
    font-style: italic;
}

/* Language Tabs */
.language-tabs {
    display: flex;
    gap: 15px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    padding: 15px 30px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Script Text Box */
.script-text-box {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 30px 0;
    animation: fadeIn 0.5s ease;
}

.script-text-box.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action Buttons */
.script-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Script Text */
.script-text {
    font-size: 1.2em;
    line-height: 1.9;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.script-text p {
    margin-bottom: 25px;
    text-align: justify;
}

.script-text p:last-child {
    margin-bottom: 0;
}

/* Script Metadata */
.script-meta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    color: #666;
}

.script-meta p {
    margin: 0;
}

.script-meta strong {
    color: #667eea;
}

/* Production Tips Section */
.production-tips {
    background: #f8f9fa;
    padding: 80px 0;
}

.production-tips h2 {
    color: #667eea;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tip-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.tip-card h3 {
    color: #667eea;
    font-size: 1.4em;
    margin-bottom: 20px;
}

.tip-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.tip-card p:last-of-type {
    margin-bottom: 0;
}

.tip-link {
    display: inline-block;
    margin-top: 15px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.tip-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* Script Navigation */
.script-navigation {
    padding: 60px 0;
    background: white;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Print Styles */
@media print {
    header, nav, footer, .script-actions, .production-tips, .script-navigation {
        display: none !important;
    }

    .script-text-box {
        box-shadow: none;
        padding: 20px;
        page-break-inside: avoid;
    }

    .script-text {
        font-size: 12pt;
        line-height: 1.6;
        color: black;
    }

    .language-tabs {
        display: none;
    }

    body {
        background: white;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .script-header h1 {
        font-size: 2.2em;
    }

    .script-number-large {
        font-size: 3em;
    }

    .script-text-box {
        padding: 30px 25px;
    }

    .script-text {
        font-size: 1.1em;
    }

    .language-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    .script-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .script-meta {
        flex-direction: column;
        gap: 15px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .script-header h1 {
        font-size: 1.8em;
    }

    .script-tagline {
        font-size: 1.1em;
    }

    .script-text-box {
        padding: 25px 20px;
    }
}