/* ==========================================================================
   evEkonomisi.net — Modern Anasayfa (v3) Premium Tasarım Sistemi (modern.css)
   ========================================================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #6C3FA0 0%, #4a2b84 100%);
    --accent-gradient: linear-gradient(135deg, #FF6000 0%, #FF9900 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary-color: #6C3FA0;
    --primary-color-hover: #563280;
    --border-color: #f1f5f9;
    
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    --hover-shadow: 0 20px 40px rgba(108, 63, 160, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

/* ==========================================================================
   1. HERO SECTION (GLASSMORPHIC & SLEEK)
   ========================================================================== */
.v3-hero {
    background: linear-gradient(135deg, #2e1065 0%, #1e1b4b 100%);
    color: #ffffff;
    padding: 5rem 2rem 4.5rem;
    border-radius: 0 0 40px 40px;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.v3-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 63, 160, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.v3-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.v3-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 840px;
    margin: 0 auto;
}

.v3-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.15;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v3-hero-sub {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Glassmorphism Search Bar */
.v3-search-wrap {
    position: relative;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.v3-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.3rem;
}

.v3-search-input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.v3-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(108, 63, 160, 0.3);
}

/* Hero Stats */
.v3-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.2rem 2.5rem;
    max-width: 680px;
    margin: 0 auto;
}

.v3-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v3-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(45deg, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v3-stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v3-stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   2. DYNAMIC TABS & CATEGORY SELECTION
   ========================================================================= */
.v3-tabs-container {
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 252, 0.95);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.v3-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.2rem 4px;
}

.v3-tabs::-webkit-scrollbar {
    display: none;
}

.v3-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: var(--card-bg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.v3-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fdfafd;
    transform: translateY(-1px);
}

.v3-tab-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(108, 63, 160, 0.25);
}

.v3-tab-icon {
    font-size: 1.1rem;
}

/* Tab Panels */
.v3-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.v3-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   3. HIGH-PERFORMANCE PREDICTIVE GRID (DESKTOP: 4/5 COLUMNS, MOBILE: 2)
   ========================================================================== */
.v3-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default Mobile */
    gap: 16px;
    margin-bottom: 3.5rem;
}

@media (min-width: 576px) {
    .v3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .v3-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .v3-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .v3-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 22px;
    }
}

/* ==========================================================================
   4. FEATURED "DEAL OF THE DAY" VITRINE (ASIMETRIK HERO DEAL)
   ========================================================================== */
.v3-featured-deal {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.v3-featured-deal:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    border-color: #e6d1f9;
}

.v3-featured-deal::before {
    content: 'GÜNÜN FIRSATI';
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--danger-gradient);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
    z-index: 10;
}

.v3-fd-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .v3-fd-row {
        flex-direction: row;
        align-items: center;
    }
}

.v3-fd-img-wrap {
    flex: 0 0 40%;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.v3-fd-img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    transition: var(--transition);
}

.v3-featured-deal:hover .v3-fd-img {
    transform: scale(1.04);
}

.v3-fd-discount {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--danger-gradient);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

.v3-fd-info {
    flex: 1;
}

.v3-fd-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .v3-fd-header {
        margin-top: 0;
    }
}

.v3-fd-platform {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.v3-fd-score {
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-secondary);
}

.v3-fd-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 1rem;
}

.v3-fd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.2rem;
}

.v3-fd-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.v3-fd-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.v3-fd-stars {
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.85rem;
}

.v3-fd-rating-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.v3-fd-price-box {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.v3-fd-price {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
}

.v3-fd-price small {
    font-size: 1rem;
    font-weight: 600;
}

.v3-fd-oldprice {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.v3-fd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(108, 63, 160, 0.25);
    transition: var(--transition);
}

.v3-fd-btn:hover {
    background: var(--primary-color-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 63, 160, 0.35);
}

/* ==========================================================================
   5. DETOXED PREMIUM PRODUCT CARD (kmc-*)
   ========================================================================== */
.kmc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kmc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: #e2d1f8;
    color: inherit;
    text-decoration: none;
}

/* Top platform tag & gauge absolute container */
.kmc-top-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.kmc-platform {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3px;
    pointer-events: auto;
}

.kmc-score {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    pointer-events: auto;
}

.kmc-score svg {
    transform: scale(0.8);
}

/* Image Wrap */
.kmc-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1rem 0.8rem;
    min-height: 150px;
    position: relative;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.kmc-img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.kmc-card:hover .kmc-img {
    transform: scale(1.04);
}

.kmc-img-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.kmc-discount {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--danger-gradient);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* Card Body */
.kmc-body {
    padding: 0.75rem 0.9rem 0.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kmc-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 0.4rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Reserve height for exactly 2 lines */
    transition: var(--transition);
}

.kmc-card:hover .kmc-title {
    color: var(--primary-color);
}

/* Rating */
.kmc-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.kmc-stars {
    color: #f59e0b;
    font-size: 0.72rem;
    font-weight: 700;
}

.kmc-rating-count {
    color: var(--text-muted);
    font-size: 0.68rem;
}

/* Badges (Visible on hover inside container) */
.kmc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.5rem;
    min-height: 20px;
    transition: var(--transition);
}

.kmc-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Price Block */
.kmc-price-box {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.kmc-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #059669;
    line-height: 1;
}

.kmc-price small {
    font-size: 0.7rem;
    font-weight: 600;
}

.kmc-oldprice {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Elegant Bottom CTA */
.kmc-cta {
    padding: 0.6rem 0.8rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #fdfafd;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.kmc-card:hover .kmc-cta {
    background: var(--primary-gradient);
    color: #ffffff;
}

/* ==========================================================================
   6. SECTION HEADERS & FOOTER
   ========================================================================== */
.v3-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v3-section-title i {
    color: var(--primary-color);
}

.v3-cta-section {
    margin: 4rem 0 2rem;
}

.v3-cta-box {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #edd8fc 100%);
    border: 1px solid #edd3fd;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(108, 63, 160, 0.03);
}

.v3-cta-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    display: block;
}

.v3-cta-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.v3-cta-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.v3-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2.2rem;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(108, 63, 160, 0.2);
    transition: var(--transition);
}

.v3-cta-btn:hover {
    background: var(--primary-color-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 63, 160, 0.3);
}

/* ==========================================================================
   7. RESPONSIVE OPTIMIZATIONS (MOBILE 2-COLUMN HARMONY)
   ========================================================================== */
@media (max-width: 767px) {
    .v3-hero {
        padding: 3rem 1rem 2.5rem;
        border-radius: 0 0 24px 24px;
        margin-bottom: 1.5rem;
        margin-left: -12px;
        margin-right: -12px;
    }
    
    .v3-hero-title {
        font-size: 1.6rem;
    }
    
    .v3-hero-sub {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .v3-search-wrap {
        padding: 4px;
        border-radius: 14px;
        margin-bottom: 1.5rem;
    }
    
    .v3-search-input {
        padding: 0.75rem 1rem 0.75rem 2.6rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .v3-search-icon {
        left: 1rem;
        font-size: 1.1rem;
    }
    
    .v3-hero-stats {
        padding: 0.8rem 1.2rem;
        border-radius: 14px;
        gap: 1.2rem;
    }
    
    .v3-stat-num {
        font-size: 1.1rem;
    }
    
    .v3-stat-label {
        font-size: 0.6rem;
    }
    
    .v3-stat-divider {
        height: 25px;
    }
    
    .v3-tabs-container {
        top: 0;
        margin-bottom: 1.2rem;
        padding: 0.5rem 0;
    }
    
    .v3-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Asimetrik Featured Deal */
    .v3-featured-deal {
        padding: 1.2rem;
        border-radius: 18px;
        margin-bottom: 1.8rem;
    }
    
    .v3-featured-deal::before {
        top: 12px;
        left: 12px;
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .v3-fd-img-wrap {
        min-height: 160px;
        max-width: 200px;
    }
    
    .v3-fd-img {
        max-height: 160px;
    }
    
    .v3-fd-discount {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
        bottom: 5px;
        right: 5px;
    }
    
    .v3-fd-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    .v3-fd-price-box {
        margin-bottom: 1rem;
    }
    
    .v3-fd-price {
        font-size: 1.45rem;
    }
    
    .v3-fd-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Product Card Mobile UX Optimization */
    .kmc-img-wrap {
        min-height: 110px;
        padding: 1.8rem 0.4rem 0.4rem;
    }
    
    .kmc-img {
        max-height: 90px;
    }
    
    .kmc-discount {
        padding: 2px 6px;
        font-size: 0.68rem;
        border-radius: 6px;
        bottom: 5px;
        right: 5px;
    }
    
    .kmc-platform {
        font-size: 0.58rem;
        padding: 2px 6px;
        border-radius: 4px;
    }
    
    .kmc-score {
        width: 22px;
        height: 22px;
    }
    
    .kmc-score svg {
        transform: scale(0.6);
    }
    
    .kmc-body {
        padding: 0.4rem 0.55rem 0.4rem;
    }
    
    .kmc-title {
        font-size: 0.72rem;
        height: 2.8em;
        line-height: 1.3;
        margin-bottom: 0.2rem;
    }
    
    .kmc-rating {
        margin-bottom: 0.3rem;
        gap: 0.15rem;
    }
    
    .kmc-stars {
        font-size: 0.65rem;
    }
    
    .kmc-rating-count {
        font-size: 0.6rem;
    }
    
    .kmc-badges {
        display: none; /* Hide badges on mobile to keep card ultra clean and efficient */
    }
    
    .kmc-price {
        font-size: 0.98rem;
    }
    
    .kmc-price small {
        font-size: 0.65rem;
    }
    
    .kmc-oldprice {
        font-size: 0.68rem;
    }
    
    .kmc-cta {
        padding: 0.45rem 0.5rem;
        font-size: 0.68rem;
    }
    
    .v3-cta-box {
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    
    .v3-cta-box h3 {
        font-size: 1.15rem;
    }
    
    .v3-cta-box p {
        font-size: 0.85rem;
    }
    
    .v3-cta-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.85rem;
    }
}
