/* 
   Tanks/Index.cshtml - Ürün Listesi Sayfası CSS
   Kırmızı & Siyah Tema
*/

/*===========================================
  HERO SECTION
===========================================*/
.tanks-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

    .tanks-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(220, 0, 0, 0.03) 2px, rgba(220, 0, 0, 0.03) 4px);
        opacity: 0.5;
    }

.hero-icon-wrapper {
    width: 90px;
    height: 90px;
    background: rgba(220, 0, 0, 0.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: pulse-red 3s ease-in-out infinite;
}

    .hero-icon-wrapper i {
        font-size: 2.5rem;
        color: var(--primary-color);
    }

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(220, 0, 0, 0);
    }
}

.tanks-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

    .breadcrumb-item a:hover {
        color: var(--white);
    }

.breadcrumb-item.active {
    color: var(--white);
}

/*===========================================
  SIDEBAR - KATEGORI LİSTESİ
===========================================*/
.sidebar-widget {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.widget-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.widget-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

    .widget-title i {
        color: var(--primary-color);
        margin-right: 0.5rem;
    }

.widget-body {
    padding: 0;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .category-list li {
        border-bottom: 1px solid var(--border-color);
    }

        .category-list li:last-child {
            border-bottom: none;
        }

    .category-list a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition-fast);
        font-weight: 500;
        position: relative;
    }

        .category-list a i {
            width: 20px;
            color: var(--primary-color);
            transition: var(--transition-fast);
        }

        .category-list a:hover {
            background: linear-gradient(90deg, rgba(220, 0, 0, 0.05) 0%, transparent 100%);
            color: var(--primary-color);
            padding-left: 2rem;
        }

    .category-list li.active a {
        background: linear-gradient(90deg, rgba(220, 0, 0, 0.1) 0%, transparent 100%);
        color: var(--primary-color);
        font-weight: 600;
        border-left: 3px solid var(--primary-color);
    }

        .category-list li.active a i {
            transform: scale(1.2);
        }

/* Sticky Sidebar */
@media (min-width: 992px) {
    .sidebar-widget.sticky-top {
        top: 100px;
    }
}

/*===========================================
  PRODUCT CARDS - MODERN TASARIM
===========================================*/
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

/* Product Image */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: var(--light-bg);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.12);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(220, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .product-badge i {
        font-size: 0.875rem;
    }

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-quick-view {
    color: var(--white);
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-red);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.938rem;
    transform: translateY(15px);
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(220, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card:hover .product-quick-view {
    transform: translateY(0);
}

.product-quick-view:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Product Card Body */
.product-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

    .product-meta .badge {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.4rem 0.75rem;
        border-radius: 4px;
    }

    .product-meta .bg-primary {
        background: var(--gradient-red) !important;
    }

    .product-meta .bg-secondary {
        background: var(--gradient-dark) !important;
    }

/* Product Title */
.product-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

    .product-title a {
        color: var(--secondary-color);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .product-title a:hover {
            color: var(--primary-color);
        }

/* Product Description */
.product-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.938rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Product Button */
.product-card-body .btn {
    margin-top: auto;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.938rem;
}

/*===========================================
  EMPTY STATE
===========================================*/
.empty-state {
    background: var(--light-bg);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-icon {
    margin-bottom: 1.5rem;
}

    .empty-icon i {
        font-size: 4rem;
        color: #ccc;
    }

.empty-state h3 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/*===========================================
  CTA SECTION
===========================================*/
.cta-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

.cta-card {
    background: var(--gradient-red);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(220, 0, 0, 0.3);
}

    .cta-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: pulse-glow 4s ease-in-out infinite;
        z-index: 0;
        pointer-events: none;
    }

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-icon {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

    .cta-icon i {
        font-size: 3.5rem;
        color: var(--white);
        opacity: 0.9;
    }

.cta-card h2 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.cta-card .d-flex {
    position: relative;
    z-index: 1;
}

.cta-card .btn-light {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    position: relative;
    z-index: 1;
}

    .cta-card .btn-light:hover {
        background: transparent;
        color: var(--white);
        transform: translateY(-2px);
    }

.cta-card .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    position: relative;
    z-index: 1;
}

    .cta-card .btn-outline-light:hover {
        background: var(--white);
        color: var(--primary-color);
        transform: translateY(-2px);
    }

/*===========================================
  RESPONSIVE
===========================================*/
@media (max-width: 991.98px) {
    .sidebar-widget {
        position: static !important;
        margin-bottom: 2rem;
    }

    .tanks-hero {
        padding: 4rem 0 2.5rem;
    }

        .tanks-hero h1 {
            font-size: 2rem;
        }
}

@media (max-width: 767.98px) {
    .product-card-body {
        padding: 1.25rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

        .cta-card h2 {
            font-size: 1.75rem;
        }

        .cta-card p {
            font-size: 1rem;
        }

    .tanks-hero h1 {
        font-size: 1.75rem;
    }

    .hero-icon-wrapper {
        width: 70px;
        height: 70px;
    }

        .hero-icon-wrapper i {
            font-size: 2rem;
        }
}

/*===========================================
  PAGINATION (Opsiyonel)
===========================================*/
.pagination {
    gap: 0.5rem;
}

.page-item .page-link {
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.625rem 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

    .page-item .page-link:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
        background: rgba(220, 0, 0, 0.05);
    }

.page-item.active .page-link {
    background: var(--gradient-red);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-item.disabled .page-link {
    opacity: 0.5;
}
