﻿.custom-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Gölge */
    border: 1px solid #EDEDED;
    transition: border-color 0.2s ease;
}

    .custom-card > a.cardA {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        text-decoration: none;
    }

    .custom-card:hover {
        border-width: 1px; /* Kalınlık biraz artar */
        border-color: #999; /* Daha koyu ve belirgin */
        box-shadow: none; /* Gölge yok */
    }

.card-body {
    flex-grow: 1;
}

.stl-containerAnasayfa {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    aspect-ratio: 1 / 1; /* otomatik kare kart görünümü */
    background-color: #f8f9fa;
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    padding: 10px 20px 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .stl-containerAnasayfa img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        display: block;
    }

.scroll-hint-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    color: white;
    background-color: gray;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.svg-white {
    filter: brightness(0) invert(1);
}

.card-footer {
    background-color: #F5F5F5;
}

    .card-footer:hover {
        background-color: #EDEDED;
        cursor: pointer;
    }

.customcontainer {
    display: flex;
}

#menuArea {
    height: 80vh;
    top: 0;
    bottom: 10px;
    position: relative;
    transition: transform 0.15s ease-out;
    padding: 10px 0 0 0;
}

#menuAreaSabit {
    height: 80vh;
    top: 0;
    bottom: 10px;
    position: relative;
    transition: transform 0.15s ease-out;
    padding: 10px 0 0 0;
}

@media (max-width: 991.98px) {
    #menuArea {
        height: 100%;
        top: 0;
        bottom: 10px;
        position: relative;
        transition: transform 0.15s ease-out;
        padding: 10px 0 0 0px;
        background-color: white !important;
    }

    .filterMenu {
        background-color: white;
    }
}

@media (max-width: 700.98px) {
    .filterMenu {
        background-color: white !important;
        border: none !important;
    }
}

.filterMenu {
    top: 0;
    padding: 0 10px 0 10px;
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
}

    .filterMenu h5 {
        font-weight: bold;
        margin-bottom: 1rem;
    }

.accordion-button {
    padding-inline-start: 5px;
    text-align: start;
}

.filterMenu .accordion-item {
    border: none;
}

.filterMenu .form-check-label {
    font-size: 14px;
}

.contentArea {
    flex: 1;
    padding: 1rem;
    margin-left: 200px; /* Menü genişliği kadar */
}

.CategoryBtn {
    color: black;
    text-decoration: none;
}

    .CategoryBtn:hover {
        cursor: pointer;
    }

.accordion-body {
    padding-inline-start: 5px;
    padding-inline-end: 0;
    max-height: 300px;
    overflow-y: auto;
}

.accordion-in-Item {
    margin-bottom: 5px;
}

    .accordion-in-Item:hover {
        background-color: #EDEDED;
        cursor: pointer;
    }

    .accordion-in-Item label, input:hover {
        cursor: pointer;
    }

.rating-stars .star {
    cursor: pointer;
    transition: color 0.2s ease;
}

    .rating-stars .star.hover {
        color: gold !important;
    }

/* =========================================
   KURUMSAL BREADCRUMB (YOL HARİTASI)
   ========================================= */
.corp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.corp-link {
    display: inline-block;
    padding: 0.5rem 0.4rem; /* Mobilde görünmez geniş tıklama alanı */
    color: #64748b !important;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .corp-link:hover {
        color: var(--corp-primary, #2563eb) !important;
        background-color: rgba(37, 99, 235, 0.05);
    }

.corp-sep {
    color: #cbd5e1;
    font-size: 0.9rem;
    user-select: none;
    padding: 0 0.1rem;
}

/* =========================================
   SAĞ PANEL: ARAMA, GÖRÜNÜM VE SIRALAMA
   ========================================= */

/* Arama Kutusu Kapsayıcısı */
.corp-search-wrapper {
    position: relative;
    min-width: 220px;
}

/* Mobilde arama kutusunu tam genişlik yapıp alta itmek için */
@media (max-width: 768px) {
    .corp-search-wrapper {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.corp-search-wrapper .search-input {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 2.5rem 0.45rem 1rem; /* Sağdan ikon için boşluk bırakıldı */
    font-size: 0.85rem;
    color: #475569;
    transition: all 0.2s ease;
    box-shadow: none;
}

    .corp-search-wrapper .search-input:focus {
        background-color: #ffffff;
        border-color: #cbd5e1;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        outline: none; /* Bootstrap'in varsayılan mavi çerçevesini gizler */
    }

/* Görünüm Butonları Grubu (Segmented Control) */
.view-toggle-group {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.2rem;
    gap: 0.1rem;
}

.view-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .view-btn:hover {
        color: #475569;
        background-color: rgba(0,0,0,0.02);
    }

    /* Aktif olan buton beyaz arka plan ve hafif gölge alır */
    .view-btn.active {
        background-color: #ffffff;
        color: var(--corp-primary, #2563eb);
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        border: 1px solid #e2e8f0;
    }

/* Sıralama Dropdown Butonu */
.corp-sort-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

    .corp-sort-btn:hover, .corp-sort-btn:focus, .show > .corp-sort-btn {
        background-color: #f8fafc;
        border-color: #cbd5e1;
        color: #0f172a;
    }

    .corp-sort-btn::after {
        margin-left: 0.5em; /* Orijinal ok işareti hizalaması */
    }



@keyframes pulse {
    0% {
        opacity: 0.2; /* Başlangıçta daha düşük saydamlık */
    }

    50% {
        opacity: 1.0; /* Ortada tam saydamlık */
    }

    100% {
        opacity: 0.2; /* Sonda tekrar düşük saydamlık */
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 25px 10px rgba(255, 255, 255, 0.7); /* Daha güçlü parlama */
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
}

.icon-link svg {
    color: gray; /* default renk */
}

.icon-link.active svg {
    color: green; /* aktifken değişen renk */
    animation: pulse 1.5s infinite;
}

.custom-btn {
    border-radius: 0.5rem; /* Yuvarlak köşe */
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.1); /* Hafif gölge */
    background-color: rgba(255, 255, 255, 0.8); /* Yarı saydam beyaz arka plan */
    color: #333;
    font-weight: 500;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.75rem;
}

    .custom-btn:hover {
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
        color: #000;
    }

    .custom-btn:hover, .custom-btn:focus {
        background-color: #007bff;
        color: white;
        box-shadow: 0 4px 12px rgb(0 123 255 / 0.4);
    }

/* Dropdown menü kutusu */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.2);
    padding: 0.5rem 0;
    min-width: 160px;
}

/* Dropdown item hover efekti */
.dropdown-item {
    font-weight: 500;
    color: #333;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
}

    .dropdown-item:hover, .dropdown-item:focus {
        background-color: #007bff;
        color: white;
    }

/* İkon stili */
.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.show > .dropdown-toggle i {
    transform: rotate(180deg);
}

.category-link:hover {
    color: black !important;
}

.specialRow {
    margin-top: 30px;
    background-color: #EDEDED;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    padding: 10px 5px 10px 5px;
}

.library-title {
    font-weight: bold;
    font-size: 1.5rem;
    color: #333;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    border-left: 5px solid black;
    padding-left: 10px;
}

.custom-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .custom-check .form-check-input {
        width: 1em;
        height: 1em;
        border-radius: 2px;
        margin-right: 0.5em;
        cursor: pointer;
    }

        .custom-check .form-check-input:checked {
            background-color: gray;
            border-color: gray;
        }

    .custom-check .form-check-label {
        font-size: 0.95rem;
        cursor: pointer;
        color: black;
    }

    .custom-check:hover {
    }

#closeSidebar {
    z-index: 1050; /* diğer elemanlardan önde çıksın */
    top: 15px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

.mobilmenu {
    max-width: 99%;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    position: relative; /* close button için referans */
    display: flex;
    align-items: center;
    justify-content: space-between; /* başlık ve buton arasını aç */
    padding: 1rem; /* isteğe göre */
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1040;
}

    #overlay.active {
        opacity: 1;
        visibility: visible;
    }



 @media (max-width: 768px) {
    #kt_toolbar, #kt_toolbar_container {
        background-color: transparent !important; /* Arkaplanı tamamen şeffaf yapar */
        background: none !important; /* Varsa diğer arkaplan özelliklerini (ör: gradient) sıfırlar */
        box-shadow: none !important; /* Varsa gölgeyi de kaldırmak isterseniz bunu ekleyebilirsiniz */
    }
}
