﻿/* =========================================================
   SITE CUSTOM CSS - CLEAN & SAFE MERGED VERSION
   Tarih: 2025-12-17
   İçerik: Header, Navbar, Slider, Kartlar, Modallar, Footer
   ========================================================= */

/* 1. TEMEL DEĞİŞKENLER & AYARLAR */
:root {
    --gold: #d4af37;
    --gold-hover: #b8860b;
    --dark-bg: #1a1a1a;
    --dark-gradient: linear-gradient(135deg, #1a1a1a, #252525);
    --glass-bg: rgba(30, 35, 45, 0.6);
}

/* --- AKILLI RENK MOTORU İÇİN ESNEK YAPILANDIRMA --- */
h1, h2, h3, h4, h5, h6, .card-title {
    color: inherit; /* Üst katmandan gelen rengi (JS) kabul et */
}

/* Varsayılan olarak eğer JS çalışmazsa koyu olsun */
body {
    color: #212529;
}

.card-text {
    color: inherit; /* JS kontrolüne bırak */
    opacity: 0.9; /* Hafif transparanlık modern durur */
}

/* JS tarafından eklenen özel sınıflar */
.smart-text-white {
    color: #ffffff !important;
}

.smart-text-dark {
    color: #1e293b !important;
}

.smart-text-muted-light {
    color: rgba(255,255,255,0.7) !important;
}

.smart-text-muted-dark {
    color: #64748b !important;
}

/* =========================================================
   2. NAVBAR & LOGO (BİRLEŞTİRİLMİŞ)
   ========================================================= */

/* Navbar Konumlandırma */
.navbar-nav {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* LOGO AYARLARI */
a.navbar-brand.text-gold-premium,
a.navbar-brand.text-gold-premium i,
a.navbar-brand.text-gold-premium span {
    color: var(--gold) !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

    /* Logo Hover */
    a.navbar-brand.text-gold-premium:hover,
    a.navbar-brand.text-gold-premium:hover i,
    a.navbar-brand.text-gold-premium:hover span {
        color: #ffffff !important;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
        transform: scale(1.02);
    }

/* =========================================================
   NAVBAR LİNKLERİ İÇİN EVRENSEL TEMA UYUMU
   (Ana Sayfa, Yönetim ve Dinamik Sayfalar)
   ========================================================= */

/* 1. Link Rengi: Varsayılan olarak Gold değişkenini kullanır */
.navbar-nav .nav-item .nav-link {
    /* Eğer bir tema yüklü değilse varsayılan Gold'u, yüklü ise onun rengini alır */
    color: var(--navbar-text-color, var(--gold)) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase; /* Başlık gibi dursun */
    letter-spacing: 0.5px;
}

/* 2. Hover (Üzerine Gelince) Durumu */
.navbar-nav .nav-item:hover .nav-link,
.navbar-nav .nav-item.active .nav-link {
    color: var(--navbar-hover-color, #ffffff) !important;
    text-shadow: 0 0 10px var(--navbar-glow-color, rgba(212, 175, 55, 0.5));
    transform: translateY(-2px); /* Hafif yukarı zıplama */
}

/* 3. İkonlar (Varsa) */
.navbar-nav .nav-item .nav-link i {
    margin-right: 5px;
    color: inherit !important; /* Link rengi neyse ikon da o olsun */
}

/* Menü Hover */
#navbarSupportedContent .navbar-nav .nav-item:hover .nav-link,
#navbarSupportedContent .navbar-nav .nav-item.active .nav-link,
#navbarSupportedContent .navbar-nav .nav-item:hover .nav-icon,
#navbarSupportedContent .navbar-nav .nav-item.active .nav-icon {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

#navbarSupportedContent .navbar-nav .nav-item:hover .nav-icon {
    transform: scale(1.1);
}

/* =========================================================
   3. SLIDER (CAROUSEL)
   ========================================================= */
.carousel-item {
    width: 100%;
    aspect-ratio: 1920 / 550; /* Görüntünün orijinal oranını kilitler */
    height: auto; /* Sabit yüksekliği iptal edip orana uymasını sağlar */
    min-height: 250px; /* Çok dar ekranlarda içeriğin ezilmesini önler */
}

.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain; /* Resmi kırpmadan tam sığdırır */
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 6s ease;
}

.carousel-item.active .slider-bg {
    transform: scale(1); /* Kırpmaya neden olan yakınlaştırma efekti durduruldu */
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0;
}

/* Slider Animasyonları */
.slider-title {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards 0.5s;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.slider-title {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards 0.5s;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.slider-desc {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards 0.8s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    font-size: 1.25rem;
}

.slider-btn {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease forwards 1.1s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: auto; /* Mobilde de aspect-ratio oranının bozulmaması için sabit yükseklik kaldırıldı */
    }

    .slider-title {
        font-size: 2rem;
    }

    .slider-desc {
        font-size: 1rem;
    }
}

/* =========================================================
   4. ANA İÇERİK ALANI (GLASS EFFECT)
   ========================================================= */
.main-content-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    transition: all 0.4s ease;
}

    .main-content-glass:hover {
        border-color: rgba(212, 175, 55, 0.4);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
        background: rgba(30, 35, 45, 0.7);
    }

/* =========================================================
   5. KART YAPILARI (HEM ESKİ HEM YENİ DESTEKLİ)
   ========================================================= */

/* --- A. Eski Tip Kartlar (Koruma Amaçlı) --- */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.5em;
    max-height: 4.5em;
    line-height: 1.5em;
    margin-bottom: 10px;
}

.project-card {
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .project-card .ratio {
        background-color: #f8f9fa;
    }

/* --- B. Premium Gold Kartlar (Yeni Tasarım) --- */
.project-card-premium {
    background: #ffffff;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid transparent !important;
}

    .project-card-premium:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
        border-bottom-color: var(--gold) !important;
    }

        .project-card-premium:hover .card-img-wrapper img {
            transform: scale(1.05);
        }

/* RESİM KONTROL MERKEZİ - [GÜNCELLEME: KÖŞE UYUMU FİX] */
.card-img-wrapper {
    border-top-left-radius: var(--v-card-radius) !important;
    border-top-right-radius: var(--v-card-radius) !important;
    overflow: hidden !important; /* Resim konteynırını kırparak dışarı taşan köşeleri ve beyazlığı yok eder */
    position: relative;
}

    .card-img-wrapper .ratio {
        background-color: #e9ecef; /* Resim yüklenene kadar gri zemin görünsün */
    }

    .card-img-wrapper img {
        object-fit: cover; /* Resmi sündürme, kırp */
        object-position: center top; /* ÖNEMLİ: Kırparken resmin ORTA-ÜST kısmına odaklan */
        width: 100%;
        height: 100%;
    }

/* --- C. Kart Ortak Bileşenleri --- */
.badge-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f9d423 100%);
    color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.video-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220, 53, 69, 0.9) !important;
    backdrop-filter: blur(4px);
}

.action-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    z-index: 10;
}

.hover-scale:hover {
    transform: scale(1.15);
}

.details-link {
    transition: padding-left 0.2s;
}

.project-card-premium:hover .details-link {
    padding-left: 5px;
    color: var(--gold-hover) !important;
}

.download-count {
    font-size: 0.85rem;
    border-color: #e9ecef !important;
}

/* Mobil Resim Ayarı */
@media (max-width: 992px) {
    .img-container {
        min-height: 250px;
    }
}

/* =========================================================
   6. MODAL PENCERELER (GENEL & PAYLAŞIM)
   ========================================================= */

/* --- Genel Modal Yapısı --- */
.modal-content, .modal-body, .modal-body p, .modal-title {
    color: #ffffff !important;
}

.modal-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Renk Yardımcıları */
.text-gold {
    color: var(--gold) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.border-gold {
    border-color: var(--gold) !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Gold Butonlar */
.btn-gold {
    background-color: var(--gold);
    border: none;
    color: #fff !important;
    transition: all 0.3s ease;
}

    .btn-gold:hover {
        background-color: var(--gold-hover);
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    }

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold) !important;
    background: transparent;
    transition: all 0.3s ease;
}

    .hover-gold:hover, .btn-outline-gold:hover {
        background-color: var(--gold) !important;
        color: #fff !important;
        transform: translateY(-2px);
    }

/* --- Paylaşım (Share) Modalı --- */
.share-modal-dialog {
    max-width: 500px;
}

.share-modal-content {
    background: var(--dark-gradient);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px !important;
    overflow: hidden;
}

.share-modal-header {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
}

.share-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.share-title {
    color: var(--gold) !important;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.share-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.share-btn-item {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

    .share-btn-item:hover {
        transform: translateY(-3px);
    }

.share-btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

    .share-btn-cancel:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-color: #fff;
    }

/* =========================================================
   7. KULLANICI YORUMLARI (TESTIMONIALS)
   ========================================================= */
.testimonial-section {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
}

.divider-gold {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin-top: 10px;
    border-radius: 2px;
}

.testimonial-card {
    transition: all 0.3s ease;
    background: #fff;
    border-bottom: 3px solid transparent !important;
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
        border-bottom: 3px solid var(--gold) !important;
    }

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: #fff;
    font-size: 1.2rem;
}

.testimonial-card .card-text {
    color: #555 !important;
    line-height: 1.6;
}

/* =========================================================
   8. FOOTER (PREMIUM)
   ========================================================= */
.footer-premium {
    /* DÜZELTME: !important kaldırıldı. Artık temalar bu rengi ezebilir. */
    background: var(--footer-bg, linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%));
    border-top: 1px solid var(--footer-border, rgba(212, 175, 55, 0.2));
    color: var(--footer-text, #fff);
    font-family: 'Poppins', sans-serif;
}

.brand-title {
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}

.footer-desc, .footer-contact {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

    .footer-link:hover {
        color: var(--gold);
        padding-left: 10px;
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

    .social-btn:hover {
        background-color: var(--gold);
        border-color: var(--gold);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    }

/* Sosyal Medya Yoğunluk Ayarları */
.density-medium .social-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    line-height: 34px !important;
    margin: 0 3px !important;
}

.density-high .social-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
    line-height: 28px !important;
    margin: 0 2px !important;
}

/* =========================================================
   9. İÇERİK OKUYUCU (TAŞMA KORUMASI)
   ========================================================= */
.user-content-area {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

    /* Videoların ve iframe'lerin (Youtube vb.) dışarı taşmasını engeller */
    .user-content-area video,
    .user-content-area iframe,
    .user-content-area object,
    .user-content-area img {
        max-width: 100% !important; /* Kutu ne kadar darsa o kadar küçülür */
        height: auto !important; /* Orantıyı bozmaz */
    }

}

/* =========================================================
   10. MOBİL UYGULAMA GÖRÜNÜMÜ (BOTTOM APP BAR & GİZLEMELER)
   ========================================================= */

/* Sadece mobil ekranlarda App Bar gösterimi */
.bottom-app-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark-bg, #1a1a1a); /* Karanlık tema uyumu */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.25);
    z-index: 1050;
    border-top: 1px solid rgba(212, 175, 55, 0.2); /* Sitenin Gold temasını koruduk */
    padding-bottom: env(safe-area-inset-bottom); /* iOS cihazlarda alttaki çentiğe (home bar) çarpmaması için güvenli alan */
}

.app-bar-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
}

.app-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
}

    .app-bar-item i {
        font-size: 1.25rem;
        margin-bottom: 4px;
        transition: transform 0.2s ease;
    }

    .app-bar-item:hover, .app-bar-item:active {
        color: #ffffff;
        text-decoration: none;
    }

    .app-bar-item.active {
        color: var(--gold, #d4af37);
    }

        .app-bar-item.active i {
            transform: translateY(-2px);
            text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        }

/* 768px altı (Mobil) davranışları */
@media (max-width: 768px) {
    .bottom-app-bar {
        display: block; /* Mobilde alt menüyü aç */
    }

    body {
        padding-bottom: 80px !important; /* App bar'ın sayfanın en altındaki içeriği örtmesini engeller */
    }

    /* Klasik web hissi veren devasa alt bilgiyi mobilde gizle */
    /* Klasik web hissi veren devasa alt bilgiyi mobilde gizle */
    .footer-premium {
        display: none;
    }
}

/* =========================================================
   11. DOKUNMATİK ETKİLEŞİM (NATIVE TOUCH FEEDBACK)
   ========================================================= */
/* Mobil cihazlarda (dokunmatik ekranlarda) hover yerine :active durumunu tetikle */
@media (hover: none) and (pointer: coarse) {

    /* Kartların havada asılı kalma (sticky hover) sorununu çöz */
    .project-card:hover,
    .project-card-premium:hover,
    .testimonial-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-bottom-color: transparent !important;
    }

        .project-card-premium:hover .card-img-wrapper img {
            transform: none !important;
        }

    /* Buton hover iptalleri */
    .btn-gold:hover,
    .hover-gold:hover,
    .btn-outline-gold:hover,
    .social-btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* --- DOKUNMA (ACTIVE) ANINDAKİ TEPKİLER (Gerçek uygulama hissi) --- */

    /* Kartlara parmakla dokunulduğunda hafifçe içe göçme efekti */
    .project-card:active,
    .project-card-premium:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    /* Butonlara dokunulduğunda içe göçme ve kararma */
    .btn:active,
    .action-btn:active,
    .btn-gold:active,
    .social-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
        opacity: 0.8;
    }

    /* Alt menü (App Bar) ikonlarına dokunma hissi */
    .app-bar-item:active {
        transform: scale(0.90) !important;
        transition: transform 0.1s ease !important;
        opacity: 0.7;
    }
}

/* [FİX: MOBİL YORUM KARTI VE İSİM TAM GÖRÜNÜMÜ] */
@media (max-width: 768px) {
    .testimonial-scroll-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        padding: 10px 20px 40px 20px !important; /* Alt boşluk isimlerin rahatlaması için artırıldı */
        scrollbar-width: none;
    }

        .testimonial-scroll-container::-webkit-scrollbar {
            display: none;
        }

    .testimonial-snap-item {
        scroll-snap-align: center;
        flex: 0 0 85% !important; /* Kart %85 genişlikte, sağdaki kart %15 ipucu verir */
        max-width: 85% !important;
        display: flex;
        height: auto !important;
    }

        .testimonial-snap-item .card {
            width: 100% !important;
            margin: 0 !important;
        }

        /* İsim ve Başlık Alanı Fiks: Kesilmeyi önler */
        .testimonial-snap-item h6 {
            font-size: 1rem !important;
            white-space: normal !important; /* İsim uzunsa alt satıra geçer, kesilmez */
            overflow: visible !important;
            line-height: 1.3 !important;
            margin-bottom: 2px !important;
        }

        .testimonial-snap-item small {
            font-size: 0.8rem !important;
            white-space: normal !important; /* Meslek uzunsa alt satıra geçer */
            display: block;
        }

        /* Metin sınırlama: Mobilde dikeyde çok uzamaması için 6 satır sınırı */
        .testimonial-snap-item .card-text {
            display: -webkit-box !important;
            -webkit-line-clamp: 6 !important;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 0.95rem !important;
        }
}

/* PC Versiyonu: 2 kart yan yana tam sığar */
@media (min-width: 769px) {
    .testimonial-scroll-container {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .testimonial-snap-item {
        flex: 0 0 50% !important; /* Masaüstünde yan yana %50 */
        max-width: 50% !important;
    }
}