/* ==========================================================================
   HOME PAGE SPECIFIC STYLES
   Global styles are imported via global.css in HTML
   ========================================================================== */

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--zemin-koyu);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

#preloader.hide-preloader {
    opacity: 0;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.flower {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    filter: drop-shadow(0 0 10px rgba(246, 240, 228, 0.5));
}

.bee {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    margin-top: -20px; /* Half height */
    margin-left: -20px; /* Half width */
    animation: orbit 3s linear infinite;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

/* ==========================================================================
   MAIN HEADER / HERO SECTION
   ========================================================================== */
.main-header {
    position: relative;
    /* Adjust height to account for navbar */
    height: calc(100vh - var(--nav-height));
    min-height: 600px;
    color: white;
    text-align: center;
    /* Honeycomb Texture Background */
    background-color: var(--zemin-koyu);
    background-image:
        radial-gradient(circle at center, transparent 0%, var(--zemin-koyu) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23421216' fill-opacity='0.2' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: cover, 60px auto; /* Scale the pattern */
    background-position: center, center;
    background-attachment: scroll, fixed;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.main-header h1 {
    color: white;
    font-size: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    margin-bottom: 10px;
}

.main-header p {
    margin-top: -15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(66, 18, 22, 0.85) 0%,
        rgba(42, 10, 12, 0.85) 50%,
        rgba(26, 5, 6, 0.9) 100%
    );
    margin: 0;
    padding: 0;
}
.main-content {
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
    padding: 0;
}

/* Hero Section Responsive */
@media (max-width: 767px) {
    .main-header {
        min-height: 500px;
        padding: 20px 15px;
    }
    
    .main-header h1 {
        font-size: 30px;
    }
    
    .main-header p {
        margin-top: -10px;
        margin-bottom: 15px;
        font-size: 16px;
    }
    
    .main-content {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .main-header {
        min-height: 450px;
    }
    
    .main-header h1 {
        font-size: 24px;
        padding: 0 20px;
    }
    
    .main-header p {
        font-size: 14px;
    }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq {
    padding: 20px;
    margin-top: 20px;
    color: white;
    padding-left: 30px;
}

.question {
    margin-bottom: 20px;
}

.question h3 {
    font-size: 18px;
}

/* ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== */
#countdown {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px;
    animation: fadeIn 2s ease;
}

.countdown-wrapper {
    display: flex;
    gap: 25px;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.countdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-text {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Digit container */
.sliding-digits {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 5px;
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(66, 18, 22, 0.6); 
    border: 1px solid rgba(66, 18, 22, 0.3); 
    overflow: hidden;
}
/* Individual digit column */
.timer-char {
    position: relative;
    width: 50px;
    height: 80px;
    text-align: center;
}

/* Digit slider strip */
.timer-char-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: top 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* Individual digit in strip */
.timer-char-slider-option {
    color: rgba(255, 255, 255, 0.2);
    font-size: 2.5em;
    height: 80px;
    line-height: 80px;
    width: 100%;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: bold;
    transition: opacity 300ms, font-size 300ms, color 300ms;
}

/* Active digit */
.timer-char-slider-option.active {
    color: #fff;
    opacity: 1;
    font-size: 3em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.unit {
    margin-top: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

/* Countdown Mobile (2x2 Grid) */
@media (max-width: 767px) {
    .countdown-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
        width: 90%;
    }

    .sliding-digits {
        height: 60px;
    }

    .timer-char {
        width: 35px;
        height: 60px;
    }

    .timer-char-slider-option {
        height: 60px;
        line-height: 60px;
        font-size: 1.8em;
    }

    .timer-char-slider-option.active {
        font-size: 2.2em;
    }

    .unit {
        font-size: 10px;
    }
}
/* ==========================================================================
 (PRESTIGE THEME)
   ========================================================================== */

/* GENEL SECTION STİLİ */
.section-container {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--krem-ana);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .committee-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        padding: 0 20px;
    }
}

.com-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4; /* Dikey kart oranı */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

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

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

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

.com-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--krem-ana);
    text-align: center;
}

.com-card .overlay h3 {
    margin: 0;
    font-size: 1.5rem;
}

.com-card .overlay p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- APPLICATION SECTION IMPROVEMENTS --- */
#application-section .card {
    border: 1px solid rgba(246, 240, 228, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
}

#application-section .card:hover {
    transform: translateY(-8px);
    border-color: rgba(246, 240, 228, 0.3);
    box-shadow: 0 15px 40px rgba(66, 18, 22, 0.4);
}

#application-section .custom-button {
    margin-top: auto; /* Push button to bottom */
}


/* --- MODAL (POPUP) ANA STİLLER --- */
.modal {
    display: none; /* JS ile kontrol edilir */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Zarif koyu arka plan */
    backdrop-filter: blur(8px); /* Modern cam efekti */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--zemin-koyu);
    border: 1px solid var(--krem-ana);
    width: 100%;
    max-width: 900px;
    max-height: 90vh; /* Ekran yüksekliğine göre sınırlama */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(66, 18, 22, 0.3);
    overflow-y: auto; /* İçerik çoksa modal içinde kaydırma */
    animation: modalZoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    scrollbar-width: thin; /* Firefox için ince scroll */
    scrollbar-color: var(--krem-ana) transparent;
}

/* Modal Açılış Animasyonu */
@keyframes modalZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--krem-ana);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
    color: #fff;
}

/* --- MODAL İÇERİK YAPISI --- */
.modal-body {
    display: flex;
    flex-direction: row; /* Masaüstü yan yana */
    min-height: 450px;
}

.modal-img {
    width: 45%;
    object-fit: cover;
    min-height: 100%;
    border-right: 1px solid rgba(246, 240, 228, 0.1);
}

.modal-text {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--krem-ana);
}

.modal-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.modal-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(246, 240, 228, 0.85);
}

/* --- MOBİL UYUMLULUK (MEDIA QUERY) --- */
@media (max-width: 768px) {
    .modal {
        padding: 15px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }

    .modal-body {
        flex-direction: column; /* Mobilde ALT ALTA */
    }

    .modal-img {
        width: 100%;
        height: 280px;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(246, 240, 228, 0.1);
    }

    .modal-text {
        width: 100%;
        padding: 30px 20px;
        text-align: center;
    }

    .modal-text h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        background: rgba(0, 0, 0, 0.4);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
    }
}
/* --- SCHEDULE (TABS) STİLİ --- */
.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--krem-ana);
    color: var(--krem-ana);
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--krem-ana);
    color: var(--zemin-koyu);
    box-shadow: 0 0 15px rgba(246, 240, 228, 0.3);
}

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

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

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table th, .schedule-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(246, 240, 228, 0.1);
    color: var(--krem-ana);
}

.schedule-table th {
    background-color: rgba(66, 18, 22, 0.5);
    font-weight: 700;
    text-transform: uppercase;
}

.schedule-table tr:hover {
    background-color: rgba(246, 240, 228, 0.05);
}

/* --- FAQ (ACCORDION) STİLİ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(246, 240, 228, 0.2);
}

.faq-question {
    background: none;
    border: none;
    color: var(--krem-ana);
    width: 100%;
    text-align: left;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 15px;
    color: rgba(246, 240, 228, 0.7);
    font-size: 0.95rem;
}

.faq-question.active i {
    transform: rotate(45deg); /* Artı işaretini çarpıya çevir */
}

/* RESPONSIVE AYARLAR */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-img {
        height: 200px;
    }
    .modal-text {
        padding: 20px;
    }
    .modal-text h2 {
        font-size: 1.8rem;
    }
}
/* ==========================================================================
   RESPONSIVE & TEAM MODAL STYLES
   ========================================================================== */

/* --- GENEL RESPONSIVE AYARLAR --- */
@media (max-width: 768px) {
    /* Hero Metni Küçültme */
    .main-header .main-content h1 {
        font-size: 3.5rem;
    }
    .main-header .main-content p {
        font-size: 1.2rem;
    }

    /* Bölüm Başlıkları */
    .section-title, .baslik {
        font-size: 2rem;
    }

    /* Mektup İçeriği */
    .letter-content {
        padding: 20px;
        font-size: 1rem;
    }

    /* Footer Metni */
    .footer .bottom-content {
        font-size: 0.8rem;
    }
}

/* --- TAKIM KARTLARI RESPONSIVE --- */
/* Mobilde tek sütun */
@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr; /* Tek sütun */
        gap: 30px;
    }
    .card .details h3 {
        font-size: 1.3rem; /* İsim fontunu büyüt */
    }
    .card .details p {
        font-size: 1rem;
    }
}
/* Tablette iki sütun */
@media (min-width: 601px) and (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr); /* İki sütun */
    }
}

/* --- YENİ TAKIM MODALI STİLİ --- */
.team-modal-content {
    background-color: transparent; /* Arka planı şeffaf yap */
    border: none;
    box-shadow: none;
    max-width: 500px; /* Genişliği sınırla */
    text-align: center;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Havalı bir açılış animasyonu */
}

.team-modal-img-container {
    width: 100%;
    height: 400px; /* Sabit bir yükseklik */
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid var(--krem-ana);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.team-modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görüntüyü kırpmadan sığdır */
}

.team-modal-details h2 {
    font-size: 2.5rem;
    color: var(--krem-ana);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', 'Poppins', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideUp 0.5s ease-out 0.2s backwards; /* Alttan yukarı kayma efekti */
}

.team-modal-details p {
    font-size: 1.2rem;
    color: rgba(246, 240, 228, 0.8);
    font-weight: 300;
    animation: slideUp 0.5s ease-out 0.3s backwards; /* Alttan yukarı kayma efekti */
}

/* Modal içi animasyonlar */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobilde Modal Ayarları */
@media (max-width: 600px) {
    .team-modal-img-container {
        height: 300px; /* Mobilde resmi küçült */
    }
    .team-modal-details h2 {
        font-size: 2rem;
    }
    .team-modal-details p {
        font-size: 1rem;
    }
}
