/* ==========================================================================
   COMPONENTS.CSS: DETAIL WHITE CARD & LISTPAGE DUAL-FILTER SIDEBAR ARCHITECTURE
   ========================================================================== */

/* 1. DETAIL PAGE WHITE CARD CONTAINER */
.detail-page-wrapper {
    padding: 1rem 0 60px 0; /* Header ile içerik arası toplam 1rem */
    margin: 0;
    background-color: var(--bg-surface, #f8fafc);
    min-height: 65vh;
}

.detail-content-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
    margin: 0 auto;
    max-width: 1060px;
    position: relative;
}

@media (max-width: 768px) {
    .detail-content-card {
        padding: 20px;
        border-radius: 14px;
    }
}

/* 2. LISTPAGE MASTER-DETAIL TWO-COLUMN LAYOUT */
.listpage-layout-wrapper {
    padding: 1rem 0 60px 0; /* Header ile içerik arası toplam 1rem */
    margin: 0;
    background-color: var(--bg-surface, #f8fafc);
    min-height: 75vh;
}

.listpage-grid-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
    align-items: start;
    margin: 0;
    padding: 0;
}

@media (max-width: 820px) {
    .listpage-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* 3. SOLDAKİ 2 FİLTRE PANELİ SARMALAYICI (KATEGORİLER & ÖZELLİK FİLTRESİ) */
.listpage-side-panels-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 90px;
}

.listpage-side-panel {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin: 0;
}

/* Kategori Başlığı ve Side Panelin En Üstü Aynı Dikey Hizada Başlamalı - Tema Rengi ile Tam Uyumlu Başlık */
.listpage-side-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover, #005a60) 100%);
    color: #ffffff;
    height: 56px;
    box-sizing: border-box;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    position: relative;
    border-bottom: 2px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.side-header-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
}

.side-header-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}

.side-header-main-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.side-header-sub-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.listpage-side-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.listpage-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    color: #334155;
    text-decoration: none;
    font-size: 0.90rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3.5px solid transparent;
    cursor: pointer;
}

.listpage-side-item i.side-icon {
    width: 22px;
    color: #64748b;
    margin-right: 8px;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.listpage-side-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.listpage-side-item:hover i.side-icon {
    color: var(--primary-color);
}

.listpage-side-item.active {
    background: color-mix(in srgb, var(--primary-color) 8%, #ffffff);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.listpage-side-item.active i.side-icon {
    color: var(--primary-color);
}

.listpage-side-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.listpage-side-item.active .listpage-side-badge {
    background: var(--primary-color);
    color: #ffffff;
}

/* 4. İKİNCİ FİLTRE PANELİ: ENTITY ÖZELLİĞİNE GÖRE DİNAMİK CHECKBOX ALANI */
.listpage-subfilter-body {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.subfilter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.subfilter-checkbox-label:hover {
    color: var(--primary-color);
}

.subfilter-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
}

.subfilter-count-badge {
    margin-left: auto;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.subfilter-actions-bar {
    padding: 8px 18px 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.subfilter-action-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
}

.subfilter-action-btn:hover {
    text-decoration: underline;
}

.subfilter-action-btn.btn-clear {
    color: #94a3b8;
}

.subfilter-action-btn.btn-clear:hover {
    color: #ef4444;
}

/* 5. SAĞDAKİ CONTAINER VE KONTROL KARTI (UZUN İNCE BEYAZ KART) */
.listpage-main-container {
    margin: 0;
    padding: 0;
}

.listpage-control-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    height: 56px; /* Side panel header ile birebir aynı yükseklik */
    box-sizing: border-box;
    padding: 0 20px;
    margin: 0 0 20px 0; /* Üst marjin 0: side panel ile tam aynı dikey hizada başlar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
}

.control-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-bar-title {
    font-size: 1.10rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.control-bar-count-pill {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 16px;
}

.control-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ARAMA ÇUBUĞU */
.control-search-wrap {
    position: relative;
    width: 230px;
}

.control-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.control-search-input {
    width: 100%;
    height: 36px;
    padding: 6px 12px 6px 34px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.86rem;
    transition: all 0.2s;
    background: #f8fafc;
    box-sizing: border-box;
}

.control-search-input:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

/* EXCEL TARZI POPUP SÜZME BUTONU */
.excel-popup-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.excel-popup-btn i {
    color: #16a34a; /* Excel Yeşili */
    font-size: 0.95rem;
}

.excel-popup-btn:hover, .excel-popup-btn.active {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

/* 6. EXCEL POPUP FİLTRE MENÜSÜ */
.excel-filter-modal {
    position: absolute;
    right: 20px;
    top: calc(100% + 8px);
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1100;
    display: none;
    overflow: hidden;
    animation: popupFadeSlide 0.2s ease-out forwards;
}

.excel-filter-modal.open {
    display: block;
}

@keyframes popupFadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.excel-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.excel-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.excel-modal-close:hover {
    color: #ef4444;
}

.excel-modal-body {
    padding: 14px 16px;
    max-height: 360px;
    overflow-y: auto;
}

.excel-filter-section-title {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.excel-filter-options-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.excel-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.excel-checkbox-label input[type="checkbox"],
.excel-checkbox-label input[type="radio"] {
    accent-color: var(--primary-color);
    cursor: pointer;
}

.excel-modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.excel-btn-apply {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.excel-btn-apply:hover {
    background: var(--primary-dark);
}

.excel-btn-clear {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.excel-btn-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* 7. LISTPAGE ITEMS GRID */
.listpage-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.list-entity-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.list-entity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in srgb, var(--primary-color) 40%, #ffffff);
}

.list-entity-thumb {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.list-entity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.list-entity-card:hover .list-entity-thumb img {
    transform: scale(1.04);
}

.list-entity-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.list-entity-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-entity-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.list-entity-sub {
    font-size: 0.80rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.list-entity-desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-entity-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
}

.list-entity-action-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Karanlık Mod Varlık Listeleme Kartları (list-entity-card) */
body.dark-mode .list-entity-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .list-entity-title {
    color: #f8fafc !important;
}

body.dark-mode .list-entity-desc {
    color: #94a3b8 !important;
}

body.dark-mode .list-entity-thumb {
    background: #0f172a !important;
}

body.dark-mode .list-entity-meta {
    border-top-color: #334155 !important;
    color: #94a3b8 !important;
}


/* ==========================================================================
   HİZMETLER 4-SÜTUNLU CONTAINER GENİŞLİĞİNDE MEGA DROPDOWN MENÜ
   ========================================================================== */
.nav-item.has-mega-menu {
    position: static !important; /* Alt menünün .nav-wrapper / .container ile tam hizalanması için */
}

.flyout-card-menu.mega-services-menu {
    position: absolute;
    top: 100%;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 310px;
    margin-top: 6px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    padding: 18px 20px;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) 290px !important; /* 4 SÜTUN: 3 Sütun Buton + 1 Sütun Resim */
    gap: 16px !important;
    align-items: stretch;
    transform: translateY(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.has-mega-menu:hover > .flyout-card-menu.mega-services-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Sütun Başlıkları */
.services-col-heading {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid color-mix(in srgb, var(--primary-color) 18%, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hizmet Butonları */
.services-mega-col .flyout-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-mega-col .flyout-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.services-mega-col .flyout-list li a:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.services-mega-col .flyout-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: var(--pastel-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.90rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.services-mega-col .flyout-list li a:hover .flyout-icon-box {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

.services-mega-col .flyout-link-box {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.services-mega-col .flyout-link-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.services-mega-col .flyout-list li a:hover .flyout-link-title {
    color: var(--primary-color);
}

.services-mega-col .flyout-link-desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-mega-col .sub-arrow {
    font-size: 0.72rem;
    color: #cbd5e1;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.services-mega-col .flyout-list li a:hover .sub-arrow {
    color: var(--primary-color);
    transform: translateX(2px);
}

/* Sütun 3 Altındaki Tüm Hizmetler Butonu */
.services-mega-col .flyout-all-services-link {
    background: color-mix(in srgb, var(--primary-color) 8%, #ffffff) !important;
    border: 1px dashed color-mix(in srgb, var(--primary-color) 35%, transparent) !important;
    margin-top: 2px;
}

.services-mega-col .flyout-all-services-link:hover {
    background: color-mix(in srgb, var(--primary-color) 15%, #ffffff) !important;
    border-style: solid !important;
}

.services-mega-col .all-services-icon {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.services-mega-col .all-services-title {
    color: var(--primary-color) !important;
}

/* EN SAĞDAKİ SÜTUN: RESİM BANNERI */
.services-mega-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    min-height: 250px;
}

.services-mega-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.services-mega-banner:hover .services-mega-banner-img {
    transform: scale(1.06);
    opacity: 0.45;
}

.services-mega-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.services-mega-banner-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.services-mega-badge {
    align-self: flex-start;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.services-mega-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.services-mega-desc {
    font-size: 0.75rem;
    color: #e2e8f0;
    line-height: 1.35;
    margin: 0;
}

.services-mega-btn {
    align-self: flex-start;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.services-mega-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* ==========================================================================
   MOBİL MENÜ ÖĞESİ AÇILDIĞINDA ÇIKAN 1PX, YARI SAYDAM (0.3 OPACITY)
   VE SAYFA BOYUTUNDAN DAHA KISA ÖZEL SCROLLBAR
   ========================================================================== */
.mobile-menu-fullscreen,
.mobile-submenu {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.mobile-menu-fullscreen::-webkit-scrollbar,
.mobile-submenu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}


