* { margin: 0; padding: 0; box-sizing: border-box; }
:root { 
    --bg-dark: #121212; 
    --stage-gray: #1a1a1a; 
    --terrace-yellow: #FFD700; 
    --text-light: #e0e0e0; 
}

body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-dark); color: var(--text-light); overflow-x: hidden; scroll-behavior: smooth; }

nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: rgba(0,0,0,0.9); position: fixed; width: 100%; z-index: 1000; top: 0; transition: 0.3s; }
.logo { font-weight: 700; font-size: 1.5rem; letter-spacing: 2px; }
.logo span { color: var(--terrace-yellow); }
nav ul { display: flex; list-style: none; align-items: center; }
nav ul li { margin-left: 20px; }
nav ul li a { color: white; text-decoration: none; font-size: 0.9rem;transition: 0.3s ease;position: relative; }
nav ul li a:hover { 
    color: var(--terrace-yellow);}
    nav ul li a[onclick]:hover {
    color: var(--terrace-yellow);
    transform: rotate(45deg);
    display: inline-block;
}
/* Hero Section - Alanı korundu, daha ön planda hissettiriyor */
.hero { height: 80vh; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/sahne-ana.jpg') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 20px; }
.hero p { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-style: italic; margin-bottom: 20px; }

.btn-primary { background: var(--terrace-yellow); color: black !important; padding: 15px 35px; text-decoration: none; font-weight: bold; border-radius: 50px; display: inline-block; cursor: pointer; border: none; transition: 0.3s; }
.btn-primary:hover { transform: scale(1.05); }

/* Oyunlar Bölümü - ALANI KISALTILDI (Padding düşürüldü) */
.games-section { 
    padding: 30px 5% 50px; /* Üst padding 30px'e düşürüldü, alt 50px */
    background-color: var(--stage-gray); 
    text-align: center; 
}
.games-section h2 { margin-bottom: 25px; /* Başlık altı boşluk azaltıldı */ color: var(--terrace-yellow); }

.slider-container { 
    position: relative; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    padding: 10px 0; 
}
.games-wrapper { 
    display: flex; 
    gap: 20px; 
    transition: transform 0.5s ease; 
    width: 100%; 
}

.game-card {
     min-width: calc(20% - 16px); 
     background: #252525; 
     border-radius: 12px; 
     overflow: hidden; 
     border: 1px solid #333; 
     flex-shrink: 0; 
     cursor: pointer; 
     transition: 0.3s; }
.game-card:hover { 
    border-color: var(--terrace-yellow); 
}
.game-card img { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
}
.game-card h4 { 
    padding: 15px; 
    font-size: 0.9rem; 
    text-transform: uppercase; }

.nav-btn { 
    position: absolute; 
    z-index: 10; 
    background: var(--terrace-yellow); 
    border: none; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    cursor: pointer; 
    color: black; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
}
.prev { 
    left: 10px; 
}
 .next { 
    right: 10px; 
}

/* MODAL GENEL */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); padding: 20px; align-items: center; justify-content: center; }
.modal-content { background: #222; margin: auto; padding: 30px; border-radius: 15px; border: 1px solid #444; position: relative; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }

/* OYUN DETAY POPUP */
.detail-content { width: 100%; max-width: 900px; padding: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; height: 100%; max-height: 85vh; }
.detail-img { background: #111; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: contain; background-color: #000; }
.detail-info { padding: 40px; display: flex; flex-direction: column; background: #222; height: 100%; overflow: hidden; }
.detail-info h2 { color: var(--terrace-yellow); margin-bottom: 10px; font-size: 2.2rem; }
.detail-meta { margin-bottom: 20px; color: #bbb; display: flex; gap: 15px; font-size: 0.9rem; }
.detail-meta i { color: var(--terrace-yellow); }
.description-scroll { overflow-y: auto; flex-grow: 1; margin-bottom: 20px; padding-right: 10px; }
.description-scroll::-webkit-scrollbar { width: 4px; }
.description-scroll::-webkit-scrollbar-thumb { background: var(--terrace-yellow); border-radius: 10px; }
.description { line-height: 1.7; color: #ddd; font-size: 1rem; white-space: pre-line; }
.modal-buy-btn { width: 100%; text-align: center; }

/* ADMİN PANEL */
.admin-main { width: 100%; max-width: 500px; }
.admin-scroll-area { overflow-y: auto; padding-right: 10px; }
.admin-scroll-area::-webkit-scrollbar { width: 4px; }
.admin-scroll-area::-webkit-scrollbar-thumb { background: var(--terrace-yellow); }
.admin-section textarea, .admin-section input { width: 100%; padding: 12px; margin: 8px 0; background: #111; border: 1px solid #444; color: white; border-radius: 5px; font-family: inherit; }
.row { display: flex; gap: 10px; }
.btn-add { width: 100%; background: var(--terrace-yellow); border: none; padding: 15px; cursor: pointer; font-weight: bold; margin-top: 10px; border-radius: 5px; }
.delete-list { background: #111; padding: 10px; margin-top: 10px; border-radius: 5px; }
.delete-item { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #333; align-items: center; }
.btn-del { color: #ff4444; cursor: pointer; background: none; border: none; font-size: 1.2rem; }
.close { position: absolute; right: 20px; top: 15px; font-size: 30px; cursor: pointer; color: white; z-index: 100; transition: 0.3s; }
.close:hover { color: var(--terrace-yellow); }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; overflow-y: auto; }
    .detail-img img { height: 350px; }
    .detail-info { padding: 25px; height: auto; }
    .detail-info h2 { font-size: 1.8rem; }
}
/* Alt Sayfa Tasarımı */
.sub-page .sub-hero {
    height: 40vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/sahne-detay.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hakkımızda Bölümü */
.about-section { padding: 80px 0; background: var(--bg-dark); text-align: center; }
.about-section h2 { color: var(--terrace-yellow); margin-bottom: 20px; }
.about-section p { font-size: 1.1rem; line-height: 1.8; color: #ccc; max-width: 800px; margin: 0 auto; }

/* Galeri Grid */
.gallery-section { padding: 60px 5%; background: #111; text-align: center; }
.gallery-section h2 { margin-bottom: 40px; color: var(--terrace-yellow); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.gallery-item { height: 250px; overflow: hidden; border-radius: 8px; border: 1px solid #333; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; cursor: pointer; }
.gallery-item img:hover { transform: scale(1.1); }

/* Teknik Donanım */
.technical-section { padding: 80px 0; background: var(--stage-gray); text-align: center; }
.technical-section h2 { color: var(--terrace-yellow); margin-bottom: 50px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.tech-card { background: #222; padding: 40px; border-radius: 15px; transition: 0.3s; }
.tech-card i { font-size: 2.5rem; color: var(--terrace-yellow); margin-bottom: 20px; }
.tech-card h3 { margin-bottom: 15px; }
.tech-card ul { list-style: none; color: #bbb; line-height: 2; }

/* Footer */
footer { background: #000; padding: 80px 5% 20px; border-top: 1px solid #222; }
.footer-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 40px; 
    margin-bottom: 50px;
}
.footer-col h3 { color: var(--terrace-yellow); margin-bottom: 20px; }
.footer-col p { color: #888; line-height: 1.6; }
.social-links a { color: white; font-size: 1.5rem; margin-right: 20px; transition: 0.3s; }
.social-links a:hover { color: var(--terrace-yellow); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #111; color: #444; font-size: 0.8rem; }

@media (max-width: 768px) {
    .tech-grid { grid-template-columns: 1fr; }
}
/* İletişim Sayfası Özel Stilleri */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('../img/contact-bg.jpg') center/cover !important;
}

.contact-section { padding: 100px 0; background: var(--bg-dark); }
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center;
}

.contact-info h2 { color: var(--terrace-yellow); font-size: 2.5rem; margin-bottom: 20px; }
.contact-desc { margin-bottom: 40px; color: #bbb; line-height: 1.6; }

.info-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.info-item i { 
    background: var(--terrace-yellow); 
    color: black; 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    margin-right: 20px; 
    font-size: 1.2rem;
    flex-shrink: 0;
}
.info-item h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--terrace-yellow); }
.info-item p { color: #ccc; }

.social-box { display: flex; align-items: center; gap: 15px; margin-top: 40px; }
.social-box i { font-size: 2rem; color: var(--terrace-yellow); }

/* Form Tasarımı */
.contact-form-box { background: #1a1a1a; padding: 40px; border-radius: 20px; border: 1px solid #333; }
.contact-form-box input, .contact-form-box textarea { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 20px; 
    background: #0d0d0d; 
    border: 1px solid #333; 
    color: white; 
    border-radius: 8px;
    font-family: inherit;
}
.contact-form-box input:focus, .contact-form-box textarea:focus { border-color: var(--terrace-yellow); outline: none; }
.contact-form-box button { width: 100%; letter-spacing: 2px; }

/* Harita */
.map-section { line-height: 0; border-top: 2px solid var(--terrace-yellow); }

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* Hizmetlerimiz Sayfası */
.services-hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/services-bg.jpg') center/cover !important;
}

.services-category { padding: 80px 0; }
.dark-bg { background-color: #0d0d0d; }

.category-title { 
    text-align: center; 
    color: var(--terrace-yellow); 
    font-size: 2.2rem; 
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.service-card { 
    background: #1a1a1a; 
    padding: 40px; 
    border-radius: 15px; 
    text-align: center; 
    transition: 0.3s;
    border: 1px solid #222;
}

.service-card:hover { 
    transform: translateY(-10px); 
    background: #222;
}

.service-card i { 
    font-size: 3rem; 
    color: var(--terrace-yellow); 
    margin-bottom: 25px; 
}

.service-card h3 { 
    margin-bottom: 15px; 
    color: #fff; 
    font-size: 1.4rem; 
}

.service-card p { 
    color: #aaa; 
    line-height: 1.7; 
}

.yellow-border { border-bottom: 3px solid var(--terrace-yellow); }

@media (max-width: 768px) {
    .category-title { font-size: 1.8rem; }
}
/* --- Takvim Sayfası ve Hücre Düzenleme --- */
.calendar-hero {
    height: 30vh !important;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('../img/calendar-bg.jpg') center/cover !important;
}

.calendar-section { padding: 40px 0; background: #121212; }

#calendar {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #333;
    max-width: 950px;
    margin: 0 auto;
}

/* KUTUCUĞU TAM KAPLAMA VE ORTALAMA */
.fc-daygrid-day-frame {
    position: relative;
    min-height: 100px !important; /* Hücre yüksekliği */
}

.fc-daygrid-event-harness {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
}

.fc-daygrid-block-event {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fc-event-title {
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-align: center;
    white-space: normal !important;
}

/* BUGÜN VURGUSUNU (AYIN 13ÜNDEKİ RENK) KALDIRMA */
.fc .fc-day-today {
    background: transparent !important; /* Bugünün tonton rengini kapat */
}

.fc .fc-day-today .fc-daygrid-day-number {
    background-color: var(--terrace-yellow); /* Sadece rakamı vurgula */
    color: black;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

/* Diğer Takvim Ayarları */
.fc .fc-toolbar-title { color: var(--terrace-yellow); }
.fc .fc-col-header-cell-cushion { color: var(--terrace-yellow); text-decoration: none; padding: 10px; }
.fc-daygrid-day-number { color: #fff; text-decoration: none; z-index: 5; position: relative; }
.fc-theme-standard td, .fc-theme-standard th { border: 1px solid #333 !important; }

/* Yönetim Modalı (Öncekiyle uyumlu) */
#calendarAdminModal .modal-content { background: #1a1a1a; border: 1px solid var(--terrace-yellow); width: 95%; max-width: 400px; padding: 30px; text-align: center;}
#calendarAdminModal input, #calendarAdminModal select { width: 100%; padding: 12px; margin-bottom: 10px; background: #0d0d0d; border: 1px solid #333; color: white; border-radius: 8px;}
#calendarAdminModal .btn-add { width: 100%; background: var(--terrace-yellow); color: black; font-weight: bold; padding: 15px; border: none; border-radius: 8px; cursor: pointer;}
/* Oyuncu Listesi Tasarımı */
.cast-section {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.cast-section h3 {
    color: var(--terrace-yellow);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cast-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cast-item {
    text-align: center;
    width: 80px;
}

.cast-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--terrace-yellow);
    margin-bottom: 8px;
}

.cast-item p {
    font-size: 0.75rem;
    color: #eee;
    line-height: 1.2;
}

/* Admin panelindeki dosya seçme alanı için görsel iyileştirme */
.cast-input-group {
    background: #111;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}