/* ==========================================================================
   Children's Shadow Theater - Custom Stylesheet
   Theme: Midnight Puppetry (Midnight Blue & Star Gold)
   ========================================================================== */

/* --- Custom Variables (Design System) --- */
:root {
    --primary-color: #1a2b5c;      /* Deep Midnight Blue */
    --primary-light: #2b3e75;      /* Medium Midnight Blue */
    --accent-color: #ffd700;       /* Star Gold */
    --accent-hover: #ffea70;       /* Lighter Gold */
    --secondary-color: #ff6b6b;    /* Coral Pink */
    --secondary-hover: #ff5252;    /* Darker Pink */
    --soft-teal: #4ecdc4;          /* Soft Turquoise */
    --soft-yellow: #fdf2d0;        /* Soft Creamy Yellow */
    --text-color: #2d3748;         /* Charcoal Text */
    --text-muted: #718096;         /* Gray Text */
    --bg-light: #f7fafc;           /* Light Off-white */
    --bg-white: #ffffff;           /* Plain White */
    --font-primary: 'Quicksand', sans-serif;
    --font-heading: 'Fredoka', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 10px 25px -5px rgba(26, 43, 92, 0.1), 0 8px 10px -6px rgba(26, 43, 92, 0.1);
    --box-shadow-hover: 0 20px 35px -5px rgba(26, 43, 92, 0.18), 0 12px 15px -6px rgba(26, 43, 92, 0.18);
}

/* --- Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.d-none {
    display: none !important;
}

.highlight {
    color: var(--accent-color);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 107, 107, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: var(--border-radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(78, 205, 196, 0.15);
    color: #1a8a81;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(26, 43, 92, 0.05);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

.logo-img {
    height: 64px;
    width: 64px;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo-img:hover {
    transform: scale(1.08) rotate(-3deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
    background: radial-gradient(circle at 70% 30%, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    padding: 100px 0 160px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero-title {
    font-size: 3.2rem;
    color: var(--bg-white);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-actions .btn-outline {
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.hero-actions .btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0) 70%);
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 380px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 5px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: float-delayed 6s ease-in-out infinite;
}

.floating-icon {
    font-size: 1.8rem;
}

.floating-text {
    display: flex;
    flex-direction: column;
}

.floating-text strong {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.95rem;
}

.floating-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Wave graphic at the bottom of hero */
.cloud-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.cloud-bottom svg {
    width: 100%;
    height: 80px;
}

/* --- Decor Elements --- */
.star-decor {
    position: absolute;
    color: var(--accent-color);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    font-size: 1.5rem;
    animation: pulse 2.5s infinite alternate;
}

.star-1 { top: 15%; left: 8%; animation-delay: 0.2s; }
.star-2 { top: 40%; right: 10%; font-size: 2.2rem; animation-delay: 0.8s; }
.star-3 { top: 75%; left: 5%; font-size: 1.8rem; animation-delay: 1.4s; }
.star-4 { top: 85%; right: 15%; animation-delay: 0.5s; }
.star-5 { top: 25%; left: 45%; font-size: 1.2rem; animation-delay: 1.9s; }

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background-color: var(--soft-yellow);
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 12px;
    border: 1px dashed var(--accent-color);
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- About Section (Hakkımızda) --- */
.about-section {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 60px;
    align-items: center;
}

.about-text-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.about-text-content p {
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.benefits-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-card {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
}

.benefit-card:hover {
    transform: translateX(8px);
    box-shadow: var(--box-shadow-hover);
}

.benefit-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.benefit-info h4 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.benefit-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Plays Section (Oyunlarimiz) --- */
.plays-section {
    background-color: var(--bg-white);
}

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

.play-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(26, 43, 92, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
    cursor: pointer;
}

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

.play-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%; /* 4:3 or similar poster aspect ratio */
    overflow: hidden;
    background-color: var(--primary-color);
}

.play-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.play-card:hover .play-image {
    transform: scale(1.08);
}

.play-overlay-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(26, 43, 92, 0.9);
    backdrop-filter: blur(5px);
    color: var(--accent-color);
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    z-index: 10;
}

.play-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.play-card-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 12px;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.play-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.65;
}

.play-gains-badge {
    font-size: 0.85rem;
    background-color: rgba(253, 242, 208, 0.6);
    border: 1px solid var(--soft-yellow);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    color: #a0522d;
    margin-bottom: 20px;
}

.play-gains-badge strong {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* --- References Section (Referanslar) --- */
.references-section {
    background-color: var(--soft-yellow);
    background-image: radial-gradient(rgba(26, 43, 92, 0.03) 15%, transparent 16%);
    background-size: 16px 16px;
}

.references-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.reference-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition-normal);
}

.reference-card:hover {
    transform: translateY(-5px);
}

.quote-bubble {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
}

.quote-bubble::before {
    content: "“";
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(26, 43, 92, 0.08);
    position: absolute;
    top: -30px;
    left: -15px;
    line-height: 1;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    border: 2px solid var(--accent-color);
}

.author-details h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.author-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Contact Section (Iletisim) --- */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--box-shadow);
}

.info-icon {
    font-size: 2.2rem;
    background-color: rgba(26, 43, 92, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-details h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.info-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-form-container {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.contact-form-container h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Form Elements --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 1 / -1;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

input, select, textarea {
    padding: 12px 18px;
    border: 2px solid rgba(26, 43, 92, 0.1);
    border-radius: var(--border-radius-sm);
    background-color: #fafbfd;
    transition: var(--transition-fast);
    color: var(--text-color);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(26, 43, 92, 0.15);
}

.input-readonly {
    background-color: #edf2f7;
    cursor: not-allowed;
}

.input-readonly:focus {
    border-color: rgba(26, 43, 92, 0.1);
    box-shadow: none;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
    font-size: 0.95rem;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 72px;
    width: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}

.footer-info h3 {
    color: var(--bg-white);
    font-size: 1.6rem;
    margin: 0;
}

.footer-info p {
    margin-bottom: 24px;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-links h4, .footer-newsletter h4 {
    color: var(--bg-white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex-grow: 1;
    border-radius: var(--border-radius-lg);
    padding: 10px 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    background-color: var(--bg-white);
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    font-size: 0.85rem;
}

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

/* --- Modals (Popup Boxes) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 650px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-card.modal-sm {
    max-width: 400px;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    color: var(--bg-white);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    border-left: 4px solid #ef4444;
}

/* --- Admin Dashboard Layout --- */
.admin-panel-section {
    background-color: var(--bg-light);
    min-height: 100vh;
    padding: 50px 0;
}

.admin-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 40px;
    min-height: 70vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--bg-light);
    margin-bottom: 30px;
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}

.admin-tab-btn:hover {
    color: var(--primary-color);
}

.admin-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Admin Table Design */
.admin-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
}

.admin-table tbody tr:hover {
    background-color: rgba(26, 43, 92, 0.01);
}

/* Booking status pills */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.status-pending { background-color: #fef3c7; color: #d97706; }
.status-approved { background-color: #d1fae5; color: #059669; }
.status-canceled { background-color: #fee2e2; color: #dc2626; }

.admin-actions {
    display: flex;
    gap: 8px;
}

/* Admin Plays Management Grid */
.admin-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-plays-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.admin-play-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
    padding: 20px;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-play-info h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.admin-play-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-play-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Admin Content Edit Settings Form */
.edit-content-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.edit-content-form hr {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

/* --- Toast Alerts (Notifications) --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), fade-out 0.3s ease 3.7s forwards;
    border-left: 6px solid var(--accent-color);
}

.toast-success {
    border-left-color: var(--soft-teal);
}

.toast-error {
    border-left-color: var(--secondary-color);
}

/* --- Keyframe Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

@keyframes pulse {
    from { opacity: 0.15; transform: scale(0.9); }
    to { opacity: 0.45; transform: scale(1.15); }
}

@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(10px); pointer-events: none; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-container {
        order: -1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-normal);
        z-index: 999;
        padding-bottom: 80px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.3rem;
    }
    
    .nav-link:hover, .nav-link.active {
        color: var(--accent-color);
    }
    
    .nav-link::after {
        background-color: var(--accent-color);
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .form-row, .form-row-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-newsletter {
        grid-column: span 1;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==========================================================================
   WhatsApp Floating Action Button
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: wabounce 2s ease-in-out infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
    animation: none;
}

.whatsapp-fab-label {
    white-space: nowrap;
}

@keyframes wabounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 480px) {
    .whatsapp-fab {
        bottom: 16px;
        right: 16px;
        padding: 12px 16px;
    }
    .whatsapp-fab-label {
        display: none;
    }
    .whatsapp-fab {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
}

/* ==========================================================================
   Image Upload Area (Admin Panel)
   ========================================================================== */
.image-upload-area {
    border: 2px dashed rgba(26, 43, 92, 0.25);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #f8faff;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
}

.image-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.upload-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.upload-hint {
    font-size: 0.78rem;
    color: #aaa;
}

.image-preview-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.image-preview-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

.image-remove-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: background 0.2s;
}

.image-remove-btn:hover {
    background: #e53e3e;
}

.existing-images-dropdown {
    margin-top: 10px;
    padding: 8px 12px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.existing-images-dropdown summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    list-style: none;
    padding: 4px 0;
}

.existing-images-dropdown select {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(26,43,92,0.2);
    color: var(--text-color);
}

/* ==========================================================================
   Admin Content Editing Settings Panel Styles
   ========================================================================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.settings-card {
    background: var(--bg-white);
    border: 1px solid rgba(26, 43, 92, 0.08);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(26, 43, 92, 0.03);
}

.settings-card h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    border-bottom: 2px solid rgba(26, 43, 92, 0.06);
    padding-bottom: 8px;
    color: var(--primary-color);
}

.settings-card strong {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--primary-light);
    font-size: 0.95rem;
}

.admin-refs-list {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    background: #fafafa;
}

.admin-ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    gap: 12px;
}

.admin-ref-item:last-child {
    border-bottom: none;
}

.admin-ref-info {
    flex-grow: 1;
    font-size: 0.88rem;
}

.admin-ref-info h5 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.admin-ref-info p {
    color: var(--text-muted);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.admin-ref-actions {
    display: flex;
    gap: 5px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

