/**
 * Classic Layout CSS - Görseldeki Tasarımın Birebir Aynısı
 * Sol: 1 büyük kart (2x yükseklik)
 * Sağ üst: 2 orta kart
 * Alt: 3 küçük kart
 */

.category-section.category-classic-layout {
    padding: 0;
    background: #fff;
    margin: 20px 0;
}

.category-classic-layout .section-header {
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.category-classic-layout .section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--primary-color, #e74c3c);
}

.category-classic-layout .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Grid Layout */
.classic-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}

/* Sol: Büyük Kart (2 satır yükseklik) */
.layout-main {
    grid-row: 1 / 3;
}

/* Sağ Üst: 2 Orta Kart */
.layout-sidebar {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

/* Alt: 3 Küçük Kart */
.layout-bottom {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Finansal Kartlar - Döviz, Altın (2 Kart) */
.financial-cards-wrapper {
    grid-column: 1 / 3 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin: 15px 0 !important;
    width: 100% !important;
}

.financial-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.financial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.financial-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 16px 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.financial-card .card-icon {
    font-size: 24px;
    line-height: 1;
}

.financial-card .card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    letter-spacing: 0.5px;
}

.financial-card .card-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.financial-card .tcmb-badge {
    background: #e8f4f8;
    color: #0077b5;
}

.financial-card .borsa-badge {
    background: #e8f8ed;
    color: #00a86b;
}

.financial-card .card-body {
    padding: 0;
}

.financial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.financial-item:last-child {
    border-bottom: none;
}

.financial-item:hover {
    background: #f8f9fa;
}

.financial-item .item-name {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.financial-item .item-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
}

/* Genel Kart Stilleri */
.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.news-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Görsel */
.news-card .card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.1);
}

/* Overlay */
.news-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.4) 70%,
        rgba(0,0,0,0.7) 100%
    );
}

/* İçerik */
.news-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: #fff;
    z-index: 2;
}

/* Badge - MASAÜSTÜNDE GİZLE */
.news-card .card-badge {
    display: none;
}

/* Başlık */
.news-card .card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Açıklama */
.news-card .card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.news-card .card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    flex-wrap: wrap;
}

.news-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card .card-meta .icon {
    font-size: 14px;
}

/* Büyük Kart (Hero) */
.news-card-hero {
    height: 100%;
    max-height: 534.75px;
    min-height: 534.75px;
}

.news-card-hero .card-content {
    padding: 30px;
}

.news-card-hero .card-title {
    font-size: 32px;
    -webkit-line-clamp: 3;
    margin-bottom: 15px;
}

.news-card-hero .card-excerpt {
    font-size: 16px;
    -webkit-line-clamp: 3;
    margin-bottom: 20px;
}

/* Orta Kartlar */
.news-card-medium {
    height: 262.375px;
}

.news-card-medium .card-content {
    padding: 20px;
}

.news-card-medium .card-title {
    font-size: 18px;
}

.news-card-medium .card-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

/* Küçük Kartlar */
.news-card-small {
    height: 280px;
}

.news-card-small .card-content {
    padding: 20px;
}

.news-card-small .card-title {
    font-size: 16px;
}

.news-card-small .card-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

/* Responsive */
@media (max-width: 1024px) {
    .financial-cards-wrapper {
        gap: 12px;
    }
    
    .financial-card .card-header {
        padding: 14px 18px;
    }
    
    .financial-card .card-title {
        font-size: 12px;
    }
    
    .financial-item {
        padding: 12px 18px;
    }
    
    .financial-item .item-name {
        font-size: 12px;
    }
    
    .financial-item .item-value {
        font-size: 13px;
    }
    
    .classic-layout-grid {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .news-card-hero {
        min-height: 400px;
    }
    
    .news-card-hero .card-title {
        font-size: 26px;
    }
    
    .news-card-medium {
        height: 200px;
    }
    
    .news-card-small {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .category-section.category-classic-layout {
        padding: 0;
        margin: 20px 0;
    }
    
    .category-classic-layout .section-header {
        margin-bottom: 12px;
        gap: 12px;
    }
    
    .category-classic-layout .section-title {
        font-size: 20px;
    }
    
    .classic-layout-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 8px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .layout-main {
        grid-row: auto;
        order: 1;
    }
    
    .layout-sidebar {
        grid-template-rows: auto;
        gap: 8px;
        order: 2;
    }
    
    /* Crypto Ticker - Mobilde tam genişlik */
    .crypto-ticker-banner {
        grid-column: 1;
        order: 3;
        width: 100%;
        margin: 8px 0;
    }
    
    /* Financial Cards - Mobilde tam genişlik ve tek kolon */
    .financial-cards-wrapper {
        grid-column: 1 !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        order: 4;
        margin: 8px 0 !important;
    }
    
    .layout-bottom {
        grid-column: 1;
        grid-template-columns: 1fr;
        gap: 8px;
        order: 5;
    }
    
    .news-card-hero {
        min-height: 350px;
    }
    
    .news-card-medium,
    .news-card-small {
        height: 280px;
    }
    
    .news-card .card-content {
        padding: 20px;
    }
    
    .news-card-hero .card-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .category-section.category-classic-layout {
        padding: 0;
    }
    
    .category-classic-layout .section-header {
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .category-classic-layout .section-header::after {
        display: block;
    }
    
    .category-classic-layout .section-title {
        font-size: 18px;
    }
    
    .classic-layout-grid {
        gap: 6px;
    }
    
    .layout-sidebar {
        gap: 6px;
    }
    
    .layout-bottom {
        gap: 6px;
    }
    
    .news-card-hero {
        min-height: 280px;
    }
    
    .news-card-hero .card-title {
        font-size: 20px;
    }
    
    .news-card-hero .card-excerpt {
        font-size: 14px;
    }
    
    .news-card .card-content {
        padding: 15px;
    }
    
    .news-card-hero .card-content {
        padding: 20px;
    }
    
    .news-card-medium,
    .news-card-small {
        height: 240px;
    }
}

/* ============================================
   DARK MODE - Classic Layout
   ============================================ */

body.dark-mode .category-section.category-classic-layout {
    background: var(--dark-bg-primary);
}

/* Dark Mode - Finansal Kartlar */
body.dark-mode .financial-card {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .financial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .financial-card .card-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-bottom-color: #2d2d2d;
}

body.dark-mode .financial-card .card-title {
    color: #e0e0e0;
}

body.dark-mode .financial-card .tcmb-badge {
    background: rgba(0, 119, 181, 0.2);
    color: #4db8ff;
}

body.dark-mode .financial-card .borsa-badge {
    background: rgba(0, 168, 107, 0.2);
    color: #4dffb8;
}

body.dark-mode .financial-item {
    border-bottom-color: #2d2d2d;
}

body.dark-mode .financial-item:hover {
    background: #2d2d2d;
}

body.dark-mode .financial-item .item-name {
    color: #999;
}

body.dark-mode .financial-item .item-value {
    color: #e0e0e0;
}

body.dark-mode .category-classic-layout .section-header::after {
    background: var(--primary-color, #e74c3c);
}

body.dark-mode .category-classic-layout .section-title {
    color: var(--dark-text-primary);
}

/* Dark mode'da kartlar zaten koyu overlay'e sahip,
   ama arka plan rengini dark mode'a uyarlıyoruz */
body.dark-mode .news-card {
    background: #000;
}

/* Badge dark mode */
body.dark-mode .news-card .card-badge {
    background: var(--dark-accent);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

/* Başlık ve içerik zaten beyaz, overlay koyu - değişiklik gerekmez */
/* Ancak hover efektlerini güçlendirebiliriz */
body.dark-mode .news-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Meta bilgiler için ince ayar */
body.dark-mode .news-card .card-meta {
    color: rgba(255, 255, 255, 0.9);
}

/* Overlay gradient'i dark mode'da hafif koyu */
body.dark-mode .news-card .card-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.75) 100%
    );
}