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

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

    .tank-detail-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(220, 0, 0, 0.02) 10px, rgba(220, 0, 0, 0.02) 20px);
        opacity: 0.6;
    }

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

    .tank-detail-hero .lead {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.125rem;
    }

.hero-badge .badge {
    font-size: 0.938rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
}

/*===========================================
  PRODUCT GALLERY
===========================================*/
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: var(--white);
    border: 1px solid var(--border-color);
}

    .main-image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .main-image-wrapper:hover img {
        transform: scale(1.05);
    }

/* Thumbnail Gallery */
.thumbnail-gallery {
    margin-top: 1rem;
}

.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--white);
}

    .thumbnail-wrapper:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 0, 0, 0.3);
    }

.thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-wrapper:hover .thumbnail-image {
    transform: scale(1.1);
}

/*===========================================
  PRODUCT INFO
===========================================*/
.product-info {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-header h2 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-header .badge {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

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

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

.product-header .lead {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
}

/*===========================================
  FEATURES GRID
===========================================*/
.features-grid {
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.03) 0%, rgba(220, 0, 0, 0.01) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(220, 0, 0, 0.1);
}

    .features-grid h4 {
        color: var(--secondary-color);
        font-weight: 700;
        display: flex;
        align-items: center;
        margin-bottom: 1.25rem;
    }

        .features-grid h4 i {
            color: var(--primary-color);
            margin-right: 0.5rem;
        }

.feature-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

    .feature-item:hover {
        transform: translateX(5px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-color: var(--primary-color);
    }

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .feature-icon i {
        color: var(--white);
        font-size: 1.125rem;
    }

.feature-content h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.938rem;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/*===========================================
  SPECIFICATIONS TABLE
===========================================*/
.specs-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .specs-table .table {
        margin: 0;
    }

    .specs-table thead {
        background: var(--gradient-dark);
    }

        .specs-table thead th {
            color: var(--white);
            font-weight: 600;
            padding: 1rem 1.25rem;
            border: none;
        }

    .specs-table tbody tr {
        transition: var(--transition-fast);
    }

        .specs-table tbody tr:hover {
            background: rgba(220, 0, 0, 0.02);
        }

    .specs-table tbody td {
        padding: 1rem 1.25rem;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
    }

    .specs-table tbody tr:last-child td {
        border-bottom: none;
    }

    .specs-table tbody td:first-child {
        font-weight: 600;
        color: var(--secondary-color);
    }

/*===========================================
  DESCRIPTION TABS
===========================================*/
.description-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.description-tabs .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}

    .description-tabs .nav-link:hover {
        color: var(--primary-color);
        background: rgba(220, 0, 0, 0.03);
    }

    .description-tabs .nav-link.active {
        color: var(--primary-color);
        background: transparent;
        border-bottom-color: var(--primary-color);
    }

.description-tabs .tab-content {
    padding: 2rem 0;
}

.description-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

    .description-content h3 {
        color: var(--secondary-color);
        font-weight: 700;
        margin: 1.5rem 0 1rem;
    }

    .description-content p {
        margin-bottom: 1rem;
    }

    .description-content ul {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

        .description-content ul li {
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

/*===========================================
  CTA BOX
===========================================*/
.cta-box {
    background: var(--gradient-red);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(220, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

    .cta-box::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
        z-index: 0;
        pointer-events: none;
    }

.cta-box-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

    .cta-box-icon i {
        font-size: 2rem;
        color: var(--white);
    }

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

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 0.938rem;
    position: relative;
    z-index: 1;
}

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

    .cta-box .btn-light:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

/*===========================================
  RELATED PRODUCTS
===========================================*/
.related-products {
    padding: 4rem 0;
    background: var(--light-bg);
}

    .related-products .section-title {
        text-align: center;
        margin-bottom: 3rem;
    }

        .related-products .section-title h3 {
            color: var(--secondary-color);
            font-weight: 700;
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .related-products .section-title p {
            color: var(--text-light);
            font-size: 1.125rem;
        }

/* Related Product Card */
.related-product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

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

.related-product-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    background: var(--light-bg);
}

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

.related-product-card:hover .related-product-image img {
    transform: scale(1.1);
}

.related-product-body {
    padding: 1.5rem;
}

    .related-product-body .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .related-product-body h5 {
        color: var(--secondary-color);
        font-weight: 700;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

        .related-product-body h5 a {
            color: inherit;
            text-decoration: none;
            transition: var(--transition-fast);
        }

            .related-product-body h5 a:hover {
                color: var(--primary-color);
            }

    .related-product-body p {
        color: var(--text-light);
        font-size: 0.875rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .related-product-body .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

/*===========================================
  GALLERY MODAL
===========================================*/
.gallery-modal .modal-content {
    background: var(--secondary-color);
    border: none;
    border-radius: 12px;
}

.gallery-modal .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.gallery-modal .modal-title {
    color: var(--white);
}

.gallery-modal .btn-close {
    filter: invert(1);
}

.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.gallery-modal-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

    .gallery-modal-item:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(220, 0, 0, 0.4);
    }

    .gallery-modal-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

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

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

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

    .product-info {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .tank-detail-hero h1 {
        font-size: 1.75rem;
    }

    .tank-detail-hero .lead {
        font-size: 1rem;
    }

    .product-info {
        padding: 1.25rem;
    }

    .features-grid {
        padding: 1.25rem;
    }

    .feature-item {
        flex-direction: column;
        align-items: start;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .specs-table thead th,
    .specs-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .description-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .gallery-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-modal-item img {
        height: 150px;
    }
}

/*===========================================
  PRINT STYLES
===========================================*/
@media print {
    .product-gallery,
    .cta-box,
    .related-products,
    .breadcrumb {
        display: none;
    }

    .product-info {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
