/**
 * FEATURED CASE STUDY SECTION - OVERRIDE STYLES
 * Bu dosya components.css'deki stilleri override eder
 * Tek merkezden yönetim için buraya ekle
 */

/* ==========================================================================
   LOGO GRID - ANA STİLLER
   ========================================================================== */

.cg-case-study-featured .cg-featured-logo-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 24px;
    padding-bottom: 0;
    position: relative;
    flex-wrap: wrap;
}

/* ==========================================================================
   LOGO ITEM - KUTU STİLLERİ
   ========================================================================== */

.cg-case-study-featured .cg-featured-logo-item {
    flex: 0 0 auto;
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent !important;
    border-radius: 0 !important;
    border-top: 3px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease !important;
    box-shadow: none !important;
    transform: none !important;
}

.cg-case-study-featured .cg-featured-logo-item:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ==========================================================================
   LOGO IMG - BEYAZ LOGOLARI GRİ OLARAK GÖSTER
   brightness(0) = siyah yapar, invert = griye çevirir
   ========================================================================== */

.cg-case-study-featured .cg-featured-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0.35) !important;
    opacity: 1 !important;
    transition: all 0.4s ease !important;
}

/* Hover: Koyu gri */
.cg-case-study-featured .cg-featured-logo-item:hover img {
    filter: brightness(0) invert(0.15) !important;
    transform: scale(1.05);
}

/* Active: Üst border + koyu gri */
.cg-case-study-featured .cg-featured-logo-item.active {
    border-top-color: var(--brand-color, #3B3198) !important;
}

.cg-case-study-featured .cg-featured-logo-item.active img {
    filter: brightness(0) invert(0.15) !important;
}

/* ==========================================================================
   LAYOUT - İKİ SÜTUN YAPI
   ========================================================================== */

.cg-case-study-featured .cg-featured-case-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

.cg-case-study-featured .cg-featured-case-layout.no-left-panel {
    grid-template-columns: 1fr;
}

/* ==========================================================================
   SOL PANEL - METRİKLER
   ========================================================================== */

.cg-case-study-featured .cg-featured-metrics-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px;
}

.cg-case-study-featured .cg-featured-metric {
    position: relative;
    padding-left: 32px;
    border-left: none;
}

.cg-case-study-featured .cg-featured-metric::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #3B3198;
}

.cg-case-study-featured .cg-featured-metric-number {
    font-size: 36px;
    font-weight: 600;
    color: #18191A;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cg-case-study-featured .cg-featured-metric-text {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
}

/* ==========================================================================
   ÜRÜNLER BÖLÜMÜ
   ========================================================================== */

.cg-case-study-featured .cg-featured-products {
    margin-top: 24px;
}

.cg-case-study-featured .cg-featured-products-title {
    font-size: 14px;
    font-weight: 600;
    color: #18191A;
    margin: 0 0 12px 0;
}

.cg-case-study-featured .cg-featured-products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cg-case-study-featured .cg-featured-product-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
    position: relative;
    padding-left: 24px;
}

.cg-case-study-featured .cg-featured-product-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #3B3198;
}

/* ==========================================================================
   SAĞ PANEL - GÖRSEL KART
   ========================================================================== */

.cg-case-study-featured .cg-featured-visual-panel {
    position: relative;
    min-height: 360px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: box-shadow 0.3s ease, opacity 0.15s ease;
}

.cg-case-study-featured .cg-featured-visual-panel:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.cg-case-study-featured .cg-featured-thumbnail-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cg-case-study-featured .cg-featured-thumbnail-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cg-case-study-featured .cg-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.cg-case-study-featured .cg-featured-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 10;
}

.cg-case-study-featured .cg-featured-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.cg-case-study-featured .cg-featured-cta-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.cg-case-study-featured .cg-featured-visual-panel:hover .cg-featured-cta-text {
    gap: 12px;
    opacity: 1;
}

.cg-case-study-featured .cg-featured-cta-text svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.cg-case-study-featured .cg-featured-visual-panel:hover .cg-featured-cta-text svg {
    transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .cg-case-study-featured .cg-featured-logo-grid {
        gap: 20px 24px;
    }
    .cg-case-study-featured .cg-featured-logo-item {
        width: 110px;
        height: 55px;
    }
}

@media (max-width: 992px) {
    .cg-case-study-featured .cg-featured-case-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cg-case-study-featured .cg-featured-metrics-panel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
    }
    .cg-case-study-featured .cg-featured-visual-panel {
        min-height: 320px;
    }
    .cg-case-study-featured .cg-featured-logo-grid {
        gap: 16px 20px;
    }
    .cg-case-study-featured .cg-featured-logo-item {
        width: 100px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .cg-case-study-featured .cg-featured-logo-grid {
        gap: 12px 16px;
    }
    .cg-case-study-featured .cg-featured-logo-item {
        width: 90px;
        height: 45px;
        padding: 6px;
    }
    .cg-case-study-featured .cg-featured-metrics-panel {
        grid-template-columns: 1fr;
    }
    .cg-case-study-featured .cg-featured-visual-panel {
        min-height: 280px;
    }
    .cg-case-study-featured .cg-featured-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cg-case-study-featured .cg-featured-logo-grid {
        gap: 10px 12px;
    }
    .cg-case-study-featured .cg-featured-logo-item {
        width: 80px;
        height: 40px;
        padding: 4px;
    }
    .cg-case-study-featured .cg-featured-visual-panel {
        min-height: 240px;
    }
    .cg-case-study-featured .cg-featured-title {
        font-size: 16px;
    }
    .cg-case-study-featured .cg-featured-content-overlay {
        padding: 20px;
    }
}