/* ============================================
   CS2 ITEM DETAILS PAGE - MODERN DARK THEME
   ============================================ */

:root {
    /* Unified earn variables matching reward landing page */
    --earn-bg: #181a20;
    --earn-card-bg: #1e2329;
    --earn-primary: #38a7bb;
    --earn-primary-hover: #2c8494;
    --earn-text: #eaecef;
    --earn-text-muted: #848e9c;
    --earn-border: #2b3139;
    --earn-success: #0ecb81;
    --earn-warning: #f0b90b;
    --earn-gradient: linear-gradient(135deg, #1e2329 0%, #181a20 100%);
}

body {
    background: var(--earn-bg);
    color: var(--earn-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   HERO SECTION WITH SEARCH
   ============================================ */
.item-details-hero {
    background: var(--earn-gradient);
    border-bottom: 1px solid var(--earn-border);
    padding: 2rem 0;
}

.item-details-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.item-details-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--earn-text);
}

.item-search {
    flex: 1;
    max-width: 500px;
}

.item-search .input-group {
    background: var(--earn-bg);
    border: 1px solid var(--earn-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.item-search .form-control {
    background: transparent;
    border: none;
    color: var(--earn-text);
    padding: 0.75rem 1rem;
}

.item-search .form-control:focus {
    background: transparent;
    box-shadow: none;
    color: var(--earn-text);
}

.item-search .form-control::placeholder {
    color: var(--earn-text-muted);
}

.item-search .btn {
    background: var(--earn-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.item-search .btn:hover {
    background: #2c8494;
}

/* ============================================
   LOGGED OUT HERO (Product Main)
   ============================================ */
.cs2-product-hero {
    padding: 4rem 0;
    background: radial-gradient(circle at top right, rgba(56, 167, 187, 0.1), transparent 40%), var(--earn-bg);
    border-bottom: 1px solid var(--earn-border);
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--earn-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .item-details-hero .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-search {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-content .btn {
        width: 100%;
    }
}

/* ============================================
   PRODUCT DISPLAY
   ============================================ */
.product-section {
    padding: 3rem 0;
}

.product-image-card {
    background: var(--earn-card-bg);
    border: 1px solid var(--earn-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(56, 167, 187, 0.1), transparent 70%);
    pointer-events: none;
}

.product-image-wrapper {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1a1d24, #0f1115);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    margin-bottom: 1.5rem;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.delivery-notice {
    background: rgba(240, 185, 11, 0.1);
    border-left: 3px solid var(--earn-text-muted);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--earn-text-muted);
    text-align: left;
}

.delivery-notice em {
    font-style: normal;
}

/* ============================================
   PRODUCT INFO CARD
   ============================================ */
.product-info-card {
    background: var(--earn-card-bg);
    border: 1px solid var(--earn-border);
    border-radius: 1rem;
    padding: 2rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--earn-text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-details {
    background: var(--earn-bg);
    border: 1px solid var(--earn-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--earn-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.detail-value {
    color: var(--earn-text);
    font-size: 1rem;
}

.detail-value a {
    color: var(--earn-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: #2c8494;
}

/* ============================================
   PRICE & REDEEM SECTION
   ============================================ */
.price-section {
    background: var(--earn-gradient);
    border: 1px solid var(--earn-border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--earn-primary);
    margin-top: 0;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(56, 167, 187, 0.3);
}



/* ============================================
   SEO CONTENT SECTION
   ============================================ */
.seo-content {
    background: var(--earn-card-bg);
    border: 1px solid var(--earn-border);
    border-radius: 1rem;
    padding: 2rem;
    margin: 3rem 0;
}

.seo-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--earn-text);
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--earn-primary);
}

.seo-content p {
    color: var(--earn-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.seo-content a {
    color: var(--earn-primary);
    text-decoration: none;
}

.seo-content a:hover {
    color: #2c8494;
}

/* ============================================
   RELATED ITEMS SECTION
   ============================================ */
.related-items-section {
    padding: 3rem 0;
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
.landing-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--earn-border);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--earn-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--earn-text-muted);
}

.related-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-product-card {
    background: var(--earn-card-bg);
    border: 1px solid var(--earn-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    border-color: var(--earn-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.related-product-image {
    background: linear-gradient(135deg, #1a1d24, #0f1115);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.related-product-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.related-product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-product-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--earn-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.related-product-info h3 a {
    color: var(--earn-text);
    text-decoration: none;
}

.related-product-info h3 a:hover {
    color: var(--earn-primary);
}

.related-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--earn-primary);
    margin-top: auto;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    background: var(--earn-card-bg);
    border: 1px solid var(--earn-border);
    border-radius: 1rem;
    color: var(--earn-text);
}

.modal-header {
    border-bottom: 1px solid var(--earn-border);
    padding: 1.5rem;
    text-align: center;
    background: var(--earn-gradient);
    position: relative;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.modal-message.modal-danger .modal-header i {
    color: var(--earn-warning);
}

.modal-message.modal-info .modal-header i {
    color: var(--earn-success);
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.5;
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body h3,
.modal-body h4 {
    color: var(--earn-text);
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--earn-text-muted);
}

.modal-footer {
    border-top: 1px solid var(--earn-border);
    padding: 1.5rem 2rem;
    justify-content: center;
    gap: 1rem;
}

.modal-footer .btn {
    min-width: 120px;
}

.btn-secondary {
    background: var(--earn-border);
    border: none;
    color: var(--earn-text);
}

.btn-secondary:hover {
    background: var(--earn-text-muted);
    color: var(--earn-text);
}

.btn-success {
    background: var(--earn-success);
    border: none;
}

.btn-success:hover {
    background: #0bb870;
}

.btn-danger {
    background: var(--earn-warning);
    border: none;
}

.btn-danger:hover {
    background: #e03d52;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .product-title {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 1rem 0;
    }

    .product-image-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .product-image-wrapper {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }

    .product-image-wrapper img {
        max-height: 180px;
    }

    .product-info-card {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .price-section {
        padding: 1rem;
    }

    .product-price {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .delivery-notice,
    .product-details {
        display: none;
    }

    .related-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .related-product-image {
        min-height: 150px;
        padding: 1.5rem;
    }

    .related-product-info {
        padding: 1rem;
    }

    .product-grid,
    .showcase-grid {
        grid-template-columns: 1fr !important;
    }

    .product-item {
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .deep-dive-card {
        flex-direction: column;
        padding: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .steps-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 3rem;
    }

    .trustpilot-widget {
        margin: 0 auto 2rem;
    }

    .hero-image {
        max-width: 80%;
    }
}