/* Vertical Card Styles */
.deals-vertical-grid {
    display: grid;
    /* We dwingen 5 kolommen op grote schermen */
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px;
}

.vertical-deal-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #333;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.vertical-deal-card:hover {
    border-color: #107c10;
    transform: translateY(-5px);
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1; /* Square images like Loaded.com */
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-save-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ffcc00;
    color: #000;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.card-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-info h4 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-tip {
    font-size: 0.75rem;
    color: #107c10;
    margin: 8px 0;
    font-style: italic;
}

.card-price-row {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.card-old-price {
    color: #666;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.card-new-price {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

/* --- GLOBAL PAGE WRAPPER --- */
body {
    background-color: #0a0a0a; /* Matches your index background */
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.deals-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- HERO SECTION --- */
.deals-hero-section {
    padding: 40px 0;
    text-align: center;
    max-width: 800px; /* Houdt de tekst leesbaar gecentreerd */
    margin: 0 auto 40px auto;
}

.deals-hero-section h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.deals-hero-section p {
    color: #aaa;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- SIDEBAR & LAYOUT --- */
.deals-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.deals-sidebar {
    width: 250px;
    position: sticky;
    top: 100px; /* Stays in view when scrolling */
}

.deals-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

/* Style the filter dropdown to match your index.html sidebar */
.deals-sidebar select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

/* --- THE GRID --- */
.deals-results {
    flex-grow: 1;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover; /* Zorgt dat Forza art het vlak vult */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #111; /* Fallback kleur */
}

/* --- DISCLAIMER FOOTER --- */
.deals-footer-disclaimer {
    margin-top: 80px;
    padding: 40px;
    background: #111;
    border-radius: 16px;
    border: 1px dashed #333;
}

/* Kleur-logica voor de kaarten (hetzelfde als front.css) */
.vertical-deal-card.bg-ultimate { background: linear-gradient(135deg, #107c10, #062e06) !important; }
.vertical-deal-card.bg-pc-game-pass { background: linear-gradient(135deg, #808080, #333) !important; }
.vertical-deal-card.bg-essential { background: linear-gradient(135deg, #0078d4, #003e6e) !important; }
.vertical-deal-card.bg-premium { background: linear-gradient(135deg, #b400ff, #4b006b) !important; }
.vertical-deal-card.bg-default { background: #1a1a1a; }

/* Zorg dat de afbeelding-wrapper geen eigen achtergrond heeft over de kleur heen */
.vertical-deal-card .card-img-wrapper {
    background-color: transparent;
}

/* Fix voor de prijzen: zorg dat ze goed leesbaar zijn op de kleuren */
.card-new-price {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* --- RESPONSIVENESS --- */

/* Tablet: 3 naast elkaar */
@media (max-width: 1100px) {
    .deals-vertical-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobiel: 2 naast elkaar */
@media (max-width: 768px) {
    .deals-hero-section h1 {
        font-size: 2.2rem;
    }

    .deals-vertical-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; /* Iets kleinere gap voor meer ruimte voor de kaarten */
    }

    .card-info {
        padding: 10px; /* Iets compacter op mobiel */
    }

    .card-info h4 {
        font-size: 0.85rem; /* Iets kleinere titel zodat het past */
        height: 2.4em; /* Forceert 2 regels hoogte voor uitlijning */
        overflow: hidden;
    }

    .card-new-price {
        font-size: 1rem;
    }
}

/* De oude deals-layout flexbox is niet meer nodig */
.deals-layout {
    display: block; 
}