﻿/* ==========================================
   sayfadetay.css
   SayfaDetay (Tek Sayfa) görünümüne özel stiller
   ========================================== */

/* ── HERO ── */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

.hero-fullscreen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 92rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 650px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-orange {
    background: #F5891E;
    color: white;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-orange:hover {
    background: #e07b1a;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-fullscreen {
        height: 100vh;
    }
}

/* ── EĞİTİM KARTLARI (ID=11 Tüm Eğitimler sayfası) ── */
.ders-grid-item {
    position: relative;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .ders-grid-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 1200px) {
    .ders-grid-item {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.ders-karti {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.ders-karti:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.ders-img {
    transition: transform 0.5s ease;
}

.ders-karti:hover .ders-img {
    transform: scale(1.05);
}

.card-badge-top-left {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(245, 137, 30, 0.8);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

/* ── KATEGORİ TABS ── */
.kategori-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-bottom: 40px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 20px !important;
}

.btn-kategori-tab {
    padding: 12px 24px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #fff !important;
    color: #555 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.btn-kategori-tab.active {
    background-color: #005F8D !important;
    color: #fff !important;
    border-color: #005F8D !important;
}

.btn-kategori-tab:hover:not(.active) {
    background-color: #f8fafc !important;
    color: #00486b !important;
    border-color: #00486b !important;
}

.ders-grid-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.card-attributes-container {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    z-index: 10 !important;
}

.attribute-badge {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #005F8D !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* ── BAŞVURU MODAL ── */
#basvuru-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

#basvuru-modal-overlay.active {
    opacity: 1 !important;
}

.modal-container {
    background: #fff !important;
    width: 95% !important;
    max-width: 600px !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    transform: scale(0.9) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

#basvuru-modal-overlay.active .modal-container {
    transform: scale(1) !important;
}

.close-modal-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
    z-index: 20 !important;
}

.close-modal-btn:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
    transform: rotate(90deg) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .kategori-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 2rem 15px 2rem !important;
        margin-left: -2rem !important;
        margin-right: -2rem !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .kategori-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .btn-kategori-tab {
        flex: 0 0 auto !important;
        font-size: 13px !important;
        padding: 10px 18px !important;
    }
}