﻿/* COMPANY THEME - MODERN SENDIKA PANEL
    Font: Poppins
    Base: Bootstrap 5 Compatible
*/

/* 1. FONT TANIMLAMA */
@font-face {
    font-family: 'PoppinsRegular';
    src: url('../Fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PoppinsBold';
    src: url('../Fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PoppinsExtraBold';
    src: url('../Fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* 2. GLOBAL DEĞİŞKENLER */
:root {
    /* Bu değerler View içinden ezilecek, buradakiler varsayılandır */
    --brand: #3498db;
    --brand-dark: #2980b9;
    --navy: #1e293b;
    --slate: #64748b;
    --bg-soft: #f8fafc;
    --card-radius: 12px;
    --sidebar-width: 280px;
}

/* 3. GENEL AYARLAR */
body {
    font-family: 'PoppinsRegular', sans-serif !important;
    background-color: #fff;
    color: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* 4. TOP BAR */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 10px 0;
    font-size: 0.82rem;
    font-weight: 500;
}

    .top-bar a {
        color: #fff;
        text-decoration: none;
        transition: 0.2s;
        opacity: 0.9;
    }

        .top-bar a:hover {
            opacity: 1;
            color: var(--brand);
        }

/* 5. BRAND HEADER */
.brand-header {
    padding: 25px 0;
    background: #fff;
}

.logo-wrapper img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

/* 6. MAIN NAVBAR (BOOTSTRAP UYUMLU) */
.main-navbar {
    background-color: var(--brand) !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

    .main-navbar .nav-link {
        color: #fff !important;
        padding: 18px 22px !important;
        font-weight: 600;
        font-size: 0.88rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 3px solid transparent;
        transition: 0.3s;
    }

        .main-navbar .nav-link:hover,
        .main-navbar .nav-link.active {
            background: var(--brand-dark);
            border-bottom-color: rgba(255,255,255,0.4);
        }

/* 7. DROPDOWN */
.dropdown-menu {
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 250px;
}

.dropdown-item {
    padding: 10px 25px;
    font-weight: 500;
    color: var(--navy);
    border-left: 3px solid transparent;
}

    .dropdown-item:hover {
        background: var(--bg-soft);
        color: var(--brand);
        border-left-color: var(--brand);
        padding-left: 30px;
    }

/* 8. FOOTER */
.footer {
    background: var(--navy);
    color: #cbd5e1;
    padding-top: 60px;
    margin-top: auto;
}

    .footer h3 {
        color: #fff;
        font-size: 1.2rem;
        margin-bottom: 25px;
        position: relative;
    }

        .footer h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--brand);
        }

.footer-bottom {
    background: #0f172a;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* 9. RESPONSIVE */
@media (max-width: 991.98px) {
    .logo-wrapper img {
        height: 55px;
    }

    .main-navbar .nav-link {
        padding: 12px 20px !important;
    }
}
/* Logo ve Metin Konteynırı */
.brand-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #eee; /* Logo ile metin arasına hafif bir ayraç (Opsiyonel) */
    padding-left: 20px;
}

/* Sendika Kısa İsmi - GENİŞ FONT AYARI */
.brand-short-name {
    font-family: 'PoppinsExtraBold', sans-serif;
    color: var(--brand);
    font-size: 2rem;
    font-weight: 800; 
    line-height: 1;
    margin: 0;
    letter-spacing: 2px; 
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Logo üzerine gelince kısa ismin rengi değişsin */
.logo-wrapper:hover .brand-short-name {
    color: var(--brand-dark);
}

/* Sendika Tam İsmi */
.brand-full-name {
    color: var(--slate);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block; 
}

/* Logo Görsel Ayarı */
.brand-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    /* Logoda hafif bir gölge kurumsallığı artırır */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .brand-short-name {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .brand-logo-img {
        height: 55px;
    }
}
/* 1. GENEL NAVBAR AYARLARI */
.main-navbar {
    background-color: var(--brand) !important;
    padding: 0 !important;
    z-index: 1050;
}

    .main-navbar .nav-link {
        color: #fff !important;
        padding: 18px 22px !important;
        font-weight: 600;
        transition: background 0.3s ease;
    }

/* 2. MASAÜSTÜ (DESKTOP) - YAVAŞ VE SÜZÜLEN HOVER */
@media (min-width: 992px) {
    /* Hover ile açılma desteği */
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-item.dropdown .dropdown-menu {
        display: block; /* Opacity kontrolü için görünür olmalı */
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        transform: translateY(15px); /* Aşağıdan süzülme başlangıcı */
        /* Hız Ayarı: 0.5s (Yavaş ve akıcı) */
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.5s;
        border: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        margin-top: 0;
        pointer-events: none; /* Kapalıyken fareyi algılamasın */
    }

    .nav-item.dropdown:hover .dropdown-menu {
        pointer-events: auto; /* Açıldığında tıklanabilir */
    }
}

/* 3. MOBİL (MOBILE) - AŞAĞI DOĞRU GENİŞLEYEN (ACCORDION) */
@media (max-width: 991.98px) {
    .navbar-collapse .dropdown-menu {
        position: static !important; /* Diğer menüleri aşağı itmesi için kritik */
        float: none;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important; 
        display: none; 
        background-color: rgb(255 255 255 / 80%); 
        border-radius: 8px;
        margin: 5px 0;
        box-shadow: none;
    }
     
    .dropdown-menu.show {
        display: block !important;
        animation: slideDownMobile 0.4s ease-out;
    }

    .main-navbar .nav-link {
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* 4. YARDIMCI ANİMASYONLAR VE ÖZELLİKLER */
@keyframes slideDownMobile {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 600px;
    }
}

.dropdown-item {
    padding: 12px 25px;
    font-weight: 500;
    color: var(--navy);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    .dropdown-item:hover {
        background-color: var(--bg-soft);
        color: var(--brand);
        border-left-color: var(--brand);
        padding-left: 30px;
    }

/* Üye Ol Butonu */
.btn-membership {
    background-color: #fff;
    color: var(--brand) !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

    .btn-membership:hover {
        background-color: var(--brand-dark);
        color: #fff !important;
        transform: translateY(-2px);
    }
/* İçerik Sayfası Özel Stilleri */
.content-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.article-header h1 {
    font-family: 'PoppinsRegular', sans-serif;
    letter-spacing: -1px;
    line-height: 1.2;
}

.bg-soft-primary {
    background-color: rgba(var(--brand-rgb, 52, 152, 219), 0.1);
}

.text-brand {
    color: var(--brand);
}

/* İçerik Metni Okunabilirliği (Kritik) */
.article-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

    .article-content-body p {
        margin-bottom: 1.5rem;
    }

    .article-content-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1.5rem 0;
    }
.share-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.share-buttons {
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    margin-right: 10px;
}

.share-wrapper:hover .share-buttons {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.btn-share {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    border: none;
    transition: transform 0.2s ease;
    text-decoration: none;
}

    .btn-share:hover {
        transform: scale(1.1);
        color: #fff;
    }

.wa {
    background-color: #25D366;
}

.tw {
    background-color: #f5f5f5;
}

.fb {
    background-color: #1877F2;
}

.cp {
    background-color: #6c757d;
}

.share-trigger {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.share-wrapper:hover .share-trigger {
    background: var(--brand);
    color: #fff !important;
}
/* Küçük Detaylar */
.x-small {
    font-size: 0.75rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.object-fit-cover {
    object-fit: cover;
}

.hover-effect:hover {
    background-color: var(--bg-soft) !important;
}

/* İletişim Paragrafları */
.contact-info p,
.footer p,
aside p { /* İletişim bilgilerinin olduğu genel alanlar */
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem; 
    transition: all 0.3s ease;
}

    /* İkonları Yuvarlak Kutu İçine Al */
    .contact-info p i,
    .footer p i,
    aside p i {
        width: 35px;
        height: 35px;
        min-width: 35px;
        background-color: var(--bg-soft);
        color: var(--brand);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 0.9rem;
        border: 1px solid rgba(0,0,0,0.05);
    }

    /* Üzerine gelince renk değişsin */
    .contact-info p:hover i,
    .footer p:hover i {
        background-color: var(--brand);
        color: #fff;
        transition: all 0.3s ease;
    }

/* Sosyal Medya Konteynırı */
.social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

    /* Sosyal Medya Linkleri (Genel) */
    .social a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%; /* Yuvarlak ikonlar */
        color: #fff !important;
        text-decoration: none !important;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background-color: var(--slate); /* Varsayılan renk */
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

        /* Üzerine gelince zıplama efekti */
        .social a:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }

        /* Logolara Göre Özel Renkler */
        .social a.x, .social a[href*="twitter"] {
            background-color: #f5f5f5;
        }

        .social a.facebook, .social a[href*="facebook"] {
            background-color: #1877F2;
        }

        .social a.instagram, .social a[href*="instagram"] {
            background-color: #E4405F;
        }

        .social a.linkedin, .social a[href*="linkedin"] {
            background-color: #0A66C2;
        }

        .social a.whatsapp, .social a[href*="wa.me"] {
            background-color: #25D366;
        }

        .social a.youtube, .social a[href*="youtube"] {
            background-color: #FF0000;
        }
/* =======================================================
   ANASAYFA VİTRİN (SLIDER & YAN KARTLAR)
   ======================================================= */
/* =======================================================
   ANA SLIDER (mainCarousel) VE VİTRİN DÜZENİ
   ======================================================= */

/* 1. Slider Konteynırı */
#mainCarousel {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #000; /* Resim yüklenene kadar boşluk siyah görünsün */
}

    /* 2. Resimlerin Tam Sığması ve Zoom Efekti */
    #mainCarousel .carousel-inner,
    #mainCarousel .carousel-item {
        height: 100%;
    }

        #mainCarousel .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Resmi bozmadan alanı kaplatır */
            transition: transform 6s ease-in-out;
        }

        #mainCarousel .carousel-item.active img {
            transform: scale(1.1); /* Aktif resimde yavaş büyüme efekti */
        }

/* 3. Profesyonel Karartma (Overlay) */
/* Ekranı ikiye bölmez, alttan yukarı yumuşak bir geçiş sağlar */
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 80%);
    z-index: 1;
}

/* 4. Slider İçindeki Metin Kutusu */
.carousel-content-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
}

    .carousel-content-box h2 {
        font-size: 2.4rem;
        font-weight: 800;
        color: #fff;
        margin: 0;
        line-height: 1.1;
        letter-spacing: -1px;
        max-width: 85%;
        text-shadow: 0 2px 15px rgba(0,0,0,0.5); /* Her türlü zeminde okunabilirlik */
    }

/* 5. Ortak Haber Etiketi (GÜNCEL / HABER) */
.news-label {
    display: inline-block;
    background-color: var(--brand); /* ASP.NET'ten gelen marka rengi */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* 6. Sağdaki Yan Kartlar (Dengeleme) */
.tn-right-card {
    position: relative;
    height: 242px; /* (242*2) + 16px (gap) = 500px Slider Boyu */
    border-radius: 10px;
    overflow: hidden;
    border: none !important;
}

    .tn-right-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .tn-right-card:hover img {
        transform: scale(1.05);
    }

    .tn-right-card .thumb-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 20px;
        z-index: 2;
    }

    .tn-right-card h6 {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.3;
        margin: 0;
    }

/* 7. Slider Ok Butonları */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px); /* Modern cam efekti */
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 40%;
}

/* Mobilde Görünüm Ayarı */
@media (max-width: 991px) {
    #mainCarousel, #mainCarousel .carousel-item img {
        height: 350px;
    }

    .carousel-content-box h2 {
        font-size: 1.6rem;
    }
}
/* İletişim Sayfası Özel Stilleri */
.contact-section {
    background-color: #f8f9fa;
}

.header-line {
    width: 60px;
    height: 4px;
    background-color: var(--brand);
    margin: 15px auto;
    border-radius: 2px;
}

/* Harita Tasarımı */
.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
    display: block;
}

/* Sağ Kolon Detaylar */
.contact-details {
    background: #fff;
}

.border-brand {
    border-color: var(--brand) !important;
}

/* partial'dan gelen ikon ve metinlerin düzenlenmesi */
.info-wrapper i {
    color: var(--brand);
    width: 30px;
    font-size: 1.2rem;
}

.info-wrapper div, .info-wrapper p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Sosyal Medya İkonları */
.social-wrapper .social-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.3s ease;
    display: inline-block;
}

    .social-wrapper .social-icon:hover {
        transform: translateY(-5px);
        color: var(--brand-dark);
    }

@media (max-width: 991px) {
    .map-container iframe {
        min-height: 350px;
    }
}

.content-card-horizontal {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

    .content-card-horizontal:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

.img-wrapper {
    overflow: hidden;
}

    .img-wrapper img {
        transition: transform 0.5s ease;
    }

.content-card-horizontal:hover .img-wrapper img {
    transform: scale(1.1);
}

.text-brand {
    color: var(--brand);
}
 
.text-muted {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hover-zoom {
    transition: transform 0.5s ease;
}

.content-item-horizontal:hover .hover-zoom {
    transform: scale(1.08);
}

.content-item-horizontal {
    transition: box-shadow 0.3s ease;
}

    .content-item-horizontal:hover {
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    }

.text-brand {
    color: var(--brand);
}

/* Kart Genel Yapısı */
.content-card-horizontal {
    border-radius: 12px;
}

    .content-card-horizontal .card {
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-radius: 12px;
    }

        .content-card-horizontal .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
        }

/* Görsel Efekti */
.img-zoom-wrapper {
    background-color: #eee;
    min-height: 220px;
}

.card-img-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.content-card-horizontal .card:hover .card-img-horizontal {
    transform: scale(1.1);
}

/* Rozet/Kategori Alanı */
.badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--brand);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 2;
}

/* Metin Kısıtlama (Daha düzenli liste için) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* İkonlar ve Butonlar */
.text-brand {
    color: var(--brand) !important;
}

.btn-read-more {
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

    .btn-read-more i {
        transition: transform 0.3s ease;
    }

.content-card-horizontal .card:hover .btn-read-more i {
    transform: translateX(5px);
}

/* Responsive Düzenleme */
@media (max-width: 768px) {
    .img-zoom-wrapper {
        min-height: 180px;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}

/* Dikey Paylaşım Alanı */
.share-sidebar {
    max-width: 60px; /* Sütunun genişliğini sabitliyoruz */
    border-left: 1px solid #eee;
    transition: background 0.3s ease;
}

.content-card-horizontal:hover .share-sidebar {
    background-color: #f1f3f5 !important;
}

/* Paylaşım Butonları */
.side-share-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #6c757d;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    /* Hover Renkleri */
    .side-share-btn:hover {
        transform: scale(1.15);
        color: white;
    }

    .side-share-btn.wa:hover {
        background-color: #25D366;
    }

    .side-share-btn.tw:hover {
        background-color: #000;
    }

    .side-share-btn.fb:hover {
        background-color: #1877F2;
    }

    .side-share-btn.cp:hover {
        background-color: var(--brand);
    }

/* Mobil Düzenleme (Mobilde dikey bar yataya döner) */
@media (max-width: 767px) {
    .share-sidebar {
        flex-direction: row !important;
        max-width: 100%;
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding: 10px !important;
    }
}
/* Sidebar Menü Tasarımı */
.sidebar-menu .list-group-item {
    transition: all 0.3s ease;
    border-color: #f1f3f5;
}

    .sidebar-menu .list-group-item:hover {
        background-color: #f8f9fa;
        padding-left: 2rem !important; /* Hafif sağa kayma efekti */
    }

        .sidebar-menu .list-group-item:hover span {
            color: var(--brand) !important;
        }

        .sidebar-menu .list-group-item:hover i.fa-chevron-right {
            opacity: 1 !important;
            transform: translateX(5px);
            color: var(--brand) !important;
        }

/* Renkli Blok */
.bg-brand {
    background-color: var(--brand) !important;
}

/* Sticky Ayarı */
.sticky-top {
    transition: top 0.3s ease;
}