/**
 * İstatistikler Sayfası CSS
 * 3'lü Grid Kart Tasarımı - Puan Durumu Başlık Stili
 */

/* ========================================
   SAYFA BAŞLIĞI - PUAN DURUMU TARZI
   ======================================== */
.istat-page-header {
    background: linear-gradient(135deg, #1e6f9f 0%, #134e6f 100%);
    color: #fff;
    padding: 15px 0;
    margin: 0 0 30px 0;
    box-sizing: border-box;
}

.istat-page-header-inner {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.istat-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0px;
}

.istat-title-icon {
    font-size: 20px;
}

.istat-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    display: none;
}

/* ========================================
   SAYFA CONTAINER
   ======================================== */
.istatistikler-page {
    padding: 0;
    min-height: 70vh;
    background: #f8f9fa;
}

.istat-container {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* ========================================
   3'LÜ GRID LAYOUT
   ======================================== */
.istatistikler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* ========================================
   İSTATİSTİK KARTLARI
   ======================================== */
.istatistik-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.istatistik-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.istatistik-card:hover::before {
    transform: scaleX(1);
}

.istatistik-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
}

/* Özel Kartlar (Featured) */
.istatistik-card.featured {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-color: rgba(231, 76, 60, 0.2);
}

.istatistik-card.featured:hover {
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
}

/* ========================================
   KART İÇERİK ELEMENTLERİ
   ======================================== */

/* Görsel Konteyner - Dikey Düzen */
.card-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.istatistik-card:hover .card-image {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.istatistik-card:hover .card-image img {
    transform: scale(1.08);
}

/* Featured kartlar için özel görsel stili */
.istatistik-card.featured .card-image {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.istatistik-card.featured:hover .card-image {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffd0d0 100%);
}

/* Başlık */
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    padding: 20px 20px 0 20px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.istatistik-card:hover .card-title {
    color: #e74c3c;
}

/* Açıklama */
.card-description {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    padding: 0 20px 25px 20px;
    line-height: 1.5;
}

/* Ok İşareti */
.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 22px;
    color: #e74c3c;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.istatistik-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   DARK MODE
   ======================================== */
   
/* Sayfa Header Dark Mode */
body.dark-mode .istat-page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

body.dark-mode .istat-title {
    color: #ffffff;
}

body.dark-mode .istat-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Sayfa Background Dark Mode */
body.dark-mode .istatistikler-page {
    background: #0d0d0d;
}

/* Kart Yapısı Dark Mode */
body.dark-mode .istatistik-card {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .istatistik-card:hover {
    background: #2a2a2a;
    border-color: #e74c3c;
    box-shadow: 0 12px 28px rgba(231, 76, 60, 0.2);
}

body.dark-mode .istatistik-card::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Featured Kartlar Dark Mode */
body.dark-mode .istatistik-card.featured {
    background: linear-gradient(135deg, #2a1f1f 0%, #1a1a1a 100%);
    border-color: rgba(231, 76, 60, 0.3);
}

body.dark-mode .istatistik-card.featured:hover {
    background: linear-gradient(135deg, #3a2525 0%, #2a2a2a 100%);
    border-color: #e74c3c;
}

/* Kart Görsel Container Dark Mode */
body.dark-mode .card-image {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

body.dark-mode .istatistik-card:hover .card-image {
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
}

body.dark-mode .istatistik-card.featured .card-image {
    background: linear-gradient(135deg, #3a2525 0%, #2a1f1f 100%);
}

body.dark-mode .istatistik-card.featured:hover .card-image {
    background: linear-gradient(135deg, #4a3030 0%, #3a2525 100%);
}

/* Kart İçerik Dark Mode */
body.dark-mode .card-title {
    color: #ffffff;
}

body.dark-mode .istatistik-card:hover .card-title {
    color: #e74c3c;
}

body.dark-mode .card-description {
    color: #b0b0b0;
}

/* Ok İşareti Dark Mode */
body.dark-mode .card-arrow {
    color: #e74c3c;
}

body.dark-mode .istatistik-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   RESPONSIVE - TABLET (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .istat-page-header-inner,
    .istat-container {
        width: 100%;
        max-width: 100%;
    }
    
    .istatistikler-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .istatistik-card {
        padding: 25px 20px;
    }
}

/* ========================================
   RESPONSIVE - MOBİL (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    .istat-page-header {
        padding: 12px 0;
        margin: 0 0 15px 0;
    }
    
    .istat-page-header-inner {
        padding: 0 15px;
    }
    
    .istat-container {
        padding: 0 15px;
    }
    
    .istat-title {
        font-size: 20px;
    }
    
    .istat-title-icon {
        font-size: 22px;
    }
    
    .istat-subtitle {
        font-size: 13px;
    }
    
    .istat-container {
        padding: 0 15px 30px 15px;
    }
    
    .istatistikler-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .istatistik-card {
        padding: 25px 20px;
    }
    
    .istatistik-card {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .card-image {
        width: 100%;
        height: 200px;
        position: relative;
        overflow: hidden;
    }
    
    .card-image img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        padding: 0 !important;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .card-arrow {
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   KÜÇÜK MOBİL (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .istat-title {
        font-size: 18px;
    }
    
    .istat-title-icon {
        font-size: 20px;
    }
    
    .istat-subtitle {
        font-size: 12px;
    }
    
    .istatistik-card {
        padding: 20px 15px;
    }
    
    .card-image {
        height: 180px;
        position: relative;
        overflow: hidden;
    }
    
    .card-image img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        padding: 0 !important;
    }
    
    .card-title {
        font-size: 16px;
    }
}