﻿/* CONTENT.CSS - FLUID TYPOGRAPHY SİSTEMİ UYUMLU */
.content-section {
    /* FLUID PADDING */
    padding: var(--space-2xl-fluid) var(--space-md-fluid);
    background: var(--bg-color);
    min-height: 70vh;
    position: relative;
}

.content-header {
    text-align: center;
    /* FLUID MARGIN */
    margin-bottom: var(--space-2xl-fluid);
    position: relative;
}

.content-title {
    /* FLUID FONT */
    font-size: var(--text-4xl-fluid);
    font-weight: 800;
    color: var(--text-color);
    /* FLUID MARGIN */
    margin-bottom: var(--space-lg-fluid);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-subtitle {
    /* FLUID FONT */
    font-size: var(--text-xl-fluid);
    color: var(--text-secondary);
    max-width: 60rem;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* Content Grid Yapısı - FLUID */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(20rem, 30vw, 28rem), 1fr));
    /* FLUID GAP */
    gap: var(--space-xl-fluid);
    margin: 0 auto;
    max-width: 140rem;
    /* FLUID PADDING */
    padding: var(--space-lg-fluid);
    align-items: stretch;
}

/* Content Kartları - FLUID YÜKSEKLİK */
.content-card {
    background: var(--main-bg);
    border: 2px solid var(--secondary-bg);
    /* FLUID BORDER RADIUS */
    border-radius: var(--radius-lg-fluid);
    /* FLUID PADDING */
    padding: var(--space-xl-fluid);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* FLUID MIN HEIGHT */
    min-height: clamp(25rem, 40vh, 35rem);
}

    .content-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-color), transparent);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .content-card:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: var(--accent-color);
        box-shadow: 0 20px 40px rgba(79, 195, 247, 0.15);
    }

        .content-card:hover::before {
            transform: scaleX(1);
        }

/* RESİM CONTAINER - FLUID BOYUT */
.content-image-container {
    width: 100%;
    /* FLUID HEIGHT */
    height: clamp(15rem, 25vh, 20rem);
    margin: 0 auto var(--space-xl-fluid);
    /* FLUID BORDER RADIUS */
    border-radius: var(--radius-md-fluid);
    overflow: hidden;
    position: relative;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
}

.content-card:hover .content-image {
    transform: scale(1.05);
}

/* ICON CONTAINER - FLUID BOYUT */
.content-icon-container {
    width: 100%;
    /* FLUID HEIGHT - Resimle aynı */
    height: clamp(15rem, 25vh, 20rem);
    margin: 0 auto var(--space-xl-fluid);
    display: flex;
    align-items: center;
    justify-content: center;
    /* FLUID BORDER RADIUS */
    border-radius: var(--radius-md-fluid);
    background: linear-gradient(135deg, var(--secondary-bg), var(--main-bg));
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

    .content-icon-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.1), transparent);
        transition: left 0.6s ease;
    }

.content-card:hover .content-icon-container::before {
    left: 100%;
}

.content-card:hover .content-icon-container {
    background: linear-gradient(135deg, var(--accent-color), rgba(79, 195, 247, 0.3));
    transform: scale(1.02);
}

.content-icon {
    /* FLUID FONT */
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--accent-color);
    transition: all 0.4s ease;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.content-card:hover .content-icon {
    color: var(--text-color);
    transform: scale(1.1) rotate(5deg);
}

/* Content Bilgileri */
.content-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-name {
    /* FLUID FONT */
    font-size: var(--text-2xl-fluid);
    font-weight: 700;
    color: var(--text-color);
    /* FLUID MARGIN */
    margin-bottom: var(--space-lg-fluid);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-description {
    /* FLUID FONT */
    font-size: var(--text-lg-fluid);
    color: var(--text-secondary);
    /* FLUID MARGIN */
    margin-bottom: var(--space-xl-fluid);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Badge Stilleri - FLUID */
.floating-badge {
    position: absolute;
    /* FLUID PADDING */
    padding: var(--space-xs-fluid) var(--space-md-fluid);
    /* FLUID FONT */
    font-size: var(--text-xs-fluid);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    z-index: 20;
    color: white;
    /* FLUID BORDER RADIUS */
    border-radius: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.new-badge {
    top: var(--space-lg-fluid);
    left: var(--space-lg-fluid);
    background: linear-gradient(135deg, rgba(0,200,81,0.9), rgba(0,126,51,0.9));
}

.discount-badge {
    top: var(--space-lg-fluid);
    right: var(--space-lg-fluid);
    background: linear-gradient(135deg, rgba(255,68,68,0.9), rgba(204,0,0,0.9));
}

.featured-badge {
    bottom: var(--space-lg-fluid);
    left: var(--space-lg-fluid);
    background: linear-gradient(135deg, rgba(79,195,247,0.9), rgba(41,182,246,0.9));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Stock Status - FLUID */
.stock-status {
    display: inline-flex;
    align-items: center;
    /* FLUID GAP */
    gap: var(--space-xs-fluid);
    color: var(--danger-color);
    /* FLUID FONT */
    font-size: var(--text-sm-fluid);
    font-weight: 600;
    background: rgba(255,68,68,0.1);
    /* FLUID PADDING */
    padding: var(--space-sm-fluid) var(--space-md-fluid);
    /* FLUID BORDER RADIUS */
    border-radius: var(--radius-md-fluid);
    border: 1px solid rgba(255,68,68,0.3);
    margin-top: auto;
}

/* Alert Stilleri - FLUID */
.alert {
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.3);
    /* FLUID PADDING */
    padding: var(--space-xl-fluid);
    /* FLUID BORDER RADIUS */
    border-radius: var(--radius-md-fluid);
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
}

    .alert h4 {
        color: var(--warning-color);
        /* FLUID MARGIN */
        margin-bottom: var(--space-md-fluid);
    }

    .alert p {
        color: var(--text-secondary);
        /* FLUID MARGIN */
        margin-bottom: var(--space-lg-fluid);
    }

/* Loading State */
.content-card.loading {
    position: relative;
    overflow: hidden;
}

    .content-card.loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* FLUID RESPONSIVE TASARIM */
@media (max-width: 75rem) {
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(18rem, 25vw, 26rem), 1fr));
        /* FLUID GAP */
        gap: var(--space-lg-fluid);
        padding: 0 var(--space-md-fluid);
    }

    .content-card {
        /* FLUID MIN HEIGHT */
        min-height: clamp(22rem, 35vh, 32rem);
    }

    .content-image-container,
    .content-icon-container {
        /* FLUID HEIGHT */
        height: clamp(12rem, 20vh, 18rem);
    }
}

@media (max-width: 62rem) {
    .content-section {
        /* FLUID PADDING */
        padding: var(--space-xl-fluid) var(--space-md-fluid);
    }

    .content-header {
        /* FLUID MARGIN */
        margin-bottom: var(--space-xl-fluid);
    }

    .content-title {
        /* FLUID FONT */
        font-size: var(--text-3xl-fluid);
    }

    .content-subtitle {
        /* FLUID FONT */
        font-size: var(--text-lg-fluid);
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(16rem, 22vw, 24rem), 1fr));
        /* FLUID GAP */
        gap: var(--space-md-fluid);
        padding: 0 var(--space-md-fluid);
    }

    .content-card {
        /* FLUID PADDING */
        padding: var(--space-lg-fluid);
        /* FLUID MIN HEIGHT */
        min-height: clamp(20rem, 32vh, 30rem);
    }

    .content-image-container,
    .content-icon-container {
        /* FLUID HEIGHT */
        height: clamp(10rem, 18vh, 16rem);
        /* FLUID MARGIN */
        margin-bottom: var(--space-lg-fluid);
    }

    .content-icon {
        /* FLUID FONT */
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .floating-badge {
        /* FLUID PADDING */
        padding: var(--space-xs-fluid) var(--space-sm-fluid);
        /* FLUID FONT */
        font-size: var(--text-xs-fluid);
    }
}

@media (max-width: 48rem) {
    .content-grid {
        grid-template-columns: 1fr;
        max-width: 40rem;
        margin: 0 auto;
    }

    .content-card {
        /* FLUID MIN HEIGHT */
        min-height: clamp(18rem, 30vh, 28rem);
    }

    .content-image-container,
    .content-icon-container {
        /* FLUID HEIGHT */
        height: clamp(9rem, 16vh, 15rem);
    }

    .content-name {
        /* FLUID FONT */
        font-size: var(--text-xl-fluid);
    }

    .content-description {
        /* FLUID FONT */
        font-size: var(--text-base-fluid);
    }
}

@media (max-width: 36rem) {
    .content-section {
        /* FLUID PADDING */
        padding: var(--space-lg-fluid) var(--space-sm-fluid);
    }

    .content-card {
        /* FLUID PADDING */
        padding: var(--space-md-fluid);
        /* FLUID MIN HEIGHT */
        min-height: clamp(16rem, 28vh, 26rem);
        /* FLUID BORDER RADIUS */
        border-radius: var(--radius-md-fluid);
    }

    .content-image-container,
    .content-icon-container {
        /* FLUID HEIGHT */
        height: clamp(8rem, 14vh, 14rem);
        /* FLUID BORDER RADIUS */
        border-radius: var(--radius-sm-fluid);
        /* FLUID MARGIN */
        margin-bottom: var(--space-md-fluid);
    }

    .content-icon {
        /* FLUID FONT */
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .floating-badge {
        /* FLUID PADDING */
        padding: var(--space-xs-fluid) var(--space-sm-fluid);
        /* FLUID FONT */
        font-size: var(--text-xs-fluid);
        top: var(--space-md-fluid);
        left: var(--space-md-fluid);
        right: var(--space-md-fluid);
    }
}

/* Dark Mode Optimizasyonu */
@media (prefers-color-scheme: dark) {
    .content-card {
        background: var(--main-bg);
        border-color: var(--secondary-bg);
    }

    .content-image-container {
        background: var(--secondary-bg);
    }
}

/* High Contrast Mode Desteği */
@media (prefers-contrast: high) {
    .content-card {
        border-width: 3px;
    }

    .floating-badge {
        border-width: 2px;
    }
}

/* Reduced Motion Desteği */
@media (prefers-reduced-motion: reduce) {
    .content-card,
    .content-image,
    .content-icon,
    .floating-badge {
        transition: none;
        animation: none;
    }

        .content-card:hover {
            transform: none;
        }
}
