/* ==========================================================================
   CS:GO Ultimate Hub - Volledige, samengevoegde CSS
   ========================================================================== */

/* --- 1. GLOBALE WEBSITE STYLING --- */
body {
    background-color: #0b0c10;
    background-image: radial-gradient(circle at 50% -20%, #2b3245 0%, #0b0c10 80%);
    background-attachment: fixed;
    color: #e2e8f0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

a { text-decoration: none; }

/* --- 2. CASE OPENER STYLING --- */
.csgo-opener-wrapper {
    text-align: center;
    margin: 40px auto;
    max-width: 850px;
    padding: 0 20px;
}

.csgo-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(145deg, #16161e, #0d0d12);
    border: 1px solid #2a2a35;
    border-radius: 12px;
    padding: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.csgo-winning-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 4px;
    background: #facc15; z-index: 10; transform: translateX(-50%);
    box-shadow: 0 0 15px #facc15, 0 0 30px rgba(250, 204, 21, 0.4);
    border-radius: 2px;
}

.csgo-viewport {
    width: 100%; overflow: hidden; position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.csgo-track { display: flex; gap: 12px; transform: translateX(0); will-change: transform; }

.csgo-item {
    min-width: 160px; width: 160px; background: #1f1f2e; border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 15px; box-sizing: border-box; position: relative; overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.csgo-item::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 6px;
    background: var(--item-color, #4b69ff); box-shadow: 0 -2px 15px var(--item-color, #4b69ff);
}

.csgo-item img {
    width: 100%; height: 90px; object-fit: contain; margin-bottom: 15px;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); transition: transform 0.3s ease;
}

.csgo-item:hover img { transform: scale(1.05); }

.csgo-item-name {
    color: #e2e8f0; font-size: 14px; text-align: center; font-weight: 600;
    letter-spacing: 0.5px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.csgo-btn {
    display: inline-block; margin-top: 30px; padding: 16px 40px; font-size: 18px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #15803d); color: #ffffff; border: none;
    border-radius: 8px; box-shadow: 0 6px 20px rgba(21, 128, 61, 0.5); transition: all 0.2s ease-in-out; text-align: center;
}

.csgo-btn:hover:not(:disabled) {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(21, 128, 61, 0.7);
    background: linear-gradient(135deg, #4ade80, #16a34a);
}

.csgo-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 10px rgba(21, 128, 61, 0.5); }
.csgo-btn:disabled { background: #334155; color: #64748b; cursor: not-allowed; box-shadow: none; transform: none; }

.csgo-result { margin-top: 25px; font-size: 24px; min-height: 36px; color: #f8fafc; font-weight: 500; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); }

/* --- 3. MARKET & WINKELMANDJE STYLING --- */
#csgo-market-wrapper { display: flex; gap: 30px; align-items: flex-start; margin: 40px auto; max-width: 1200px; padding: 0 20px; }
#csgo-products-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.csgo-product-card {
    background: #16161e; border: 1px solid #2a2a35; border-radius: 12px; padding: 25px 20px; text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column; justify-content: space-between;
}

.csgo-product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6); }
.csgo-product-card img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); }
.csgo-product-title { font-size: 16px; margin: 0 0 10px 0; color: #e2e8f0; }
.csgo-product-price { font-size: 20px; color: #4ade80; font-weight: bold; margin: 0 0 20px 0; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }

.csgo-add-to-cart-btn {
    background: #3b82f6; color: #ffffff; border: none; padding: 12px; border-radius: 6px; cursor: pointer;
    font-weight: bold; font-size: 15px; width: 100%; text-transform: uppercase; letter-spacing: 1px; transition: background 0.2s ease;
}
.csgo-add-to-cart-btn:hover { background: #2563eb; }

#csgo-cart-sidebar { width: 340px; background: #16161e; border: 1px solid #2a2a35; border-radius: 12px; padding: 25px; position: sticky; top: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); flex-shrink: 0; }
#csgo-cart-sidebar h2 { margin-top: 0; font-size: 22px; border-bottom: 1px solid #2a2a35; padding-bottom: 15px; margin-bottom: 20px; }
#csgo-cart-items-list { list-style: none; padding: 0; margin: 0 0 20px; max-height: 400px; overflow-y: auto; }
#csgo-cart-items-list::-webkit-scrollbar { width: 6px; }
#csgo-cart-items-list::-webkit-scrollbar-track { background: #0b0c10; border-radius: 3px; }
#csgo-cart-items-list::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: 3px; }

.csgo-cart-item { display: flex; justify-content: space-between; align-items: center; background: #1f1f2e; margin-bottom: 12px; padding: 12px 15px; border-radius: 6px; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2); }
.csgo-cart-item-name { flex: 1; font-size: 14px; font-weight: 500; }
.csgo-cart-item-price { margin: 0 15px; color: #4ade80; font-weight: bold; font-size: 14px; }

.csgo-remove-item-btn { background: #ef4444; color: white; border: none; border-radius: 4px; width: 26px; height: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; transition: background 0.2s ease; }
.csgo-remove-item-btn:hover { background: #dc2626; }
.csgo-empty-cart { color: #64748b; text-align: center; font-style: italic; padding: 30px 0; }
.csgo-cart-footer { border-top: 1px solid #2a2a35; padding-top: 20px; }
.csgo-cart-total { font-size: 18px; margin-bottom: 20px; display: flex; justify-content: space-between; color: #e2e8f0; }
.csgo-cart-total strong { color: #facc15; font-size: 22px; }

#csgo-checkout-btn { width: 100%; background: linear-gradient(135deg, #22c55e, #15803d); color: #ffffff; border: none; padding: 15px; border-radius: 8px; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; box-shadow: 0 6px 15px rgba(21, 128, 61, 0.4); transition: all 0.2s ease; }
#csgo-checkout-btn:hover { background: linear-gradient(135deg, #4ade80, #16a34a); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21, 128, 61, 0.6); }

/* --- 4. HOMEPAGE STYLING --- */
#csgo-homepage-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.csgo-hero-section { background: linear-gradient(rgba(11, 12, 16, 0.8), rgba(11, 12, 16, 0.9)), url('https://placehold.co/1200x400/16161e/2a2a35?text=CS:GO+Background') center/cover; border-radius: 12px; padding: 80px 20px; text-align: center; margin-bottom: 50px; border: 1px solid #2a2a35; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.csgo-hero-title { font-size: 42px; margin-bottom: 15px; color: #facc15; text-shadow: 0 0 20px rgba(250, 204, 21, 0.3); }
.csgo-hero-subtitle { font-size: 18px; color: #94a3b8; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.csgo-hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.csgo-btn-secondary { background: #334155; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.csgo-btn-secondary:hover { background: #475569; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); }
.csgo-section-title { text-align: center; font-size: 32px; margin-bottom: 40px; border-bottom: 2px solid #2a2a35; padding-bottom: 15px; }
.csgo-featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.csgo-featured-card { background: #1f1f2e; border-radius: 12px; padding: 30px 20px; text-align: center; border-bottom: 6px solid var(--item-color); box-shadow: 0 10px 20px rgba(0,0,0,0.4); transition: transform 0.3s ease; }
.csgo-featured-card:hover { transform: translateY(-10px); }
.csgo-featured-img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 8px 8px rgba(0,0,0,0.7)); }
.csgo-featured-name { font-size: 20px; margin-bottom: 10px; }
.csgo-featured-price { font-size: 24px; font-weight: bold; color: #4ade80; margin: 0; }
.csgo-featured-footer { text-align: center; margin-top: 40px; margin-bottom: 60px; }
.csgo-link-more { color: #3b82f6; font-size: 18px; font-weight: bold; text-transform: uppercase; transition: color 0.2s; }
.csgo-link-more:hover { color: #60a5fa; }

/* --- 5. COMMUNITY SLIDESHOW & GALLERY STYLING --- */
#csgo-community-wrapper { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.csgo-community-header { text-align: center; margin-bottom: 40px; }
.csgo-community-header h2 { font-size: 36px; color: #facc15; margin-bottom: 10px; }
.csgo-community-header p { color: #94a3b8; font-size: 18px; }
.csgo-slideshow-container { position: relative; max-width: 100%; height: 450px; background: #16161e; border: 1px solid #2a2a35; border-radius: 12px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.csgo-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease-in-out; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle, #2b3245 0%, #0b0c10 100%); }
.csgo-slide.active { opacity: 1; z-index: 5; }
.csgo-slide img { max-width: 80%; max-height: 70%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8)); }
.csgo-slide-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(11, 12, 16, 0.85); color: #ffffff; padding: 15px 20px; font-size: 18px; font-weight: bold; text-align: center; box-sizing: border-box; backdrop-filter: blur(5px); }
.csgo-slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(22, 22, 30, 0.7); color: white; border: 1px solid #2a2a35; cursor: pointer; padding: 15px 20px; font-size: 24px; border-radius: 8px; z-index: 10; transition: background 0.3s, transform 0.2s; }
.csgo-slide-btn:hover { background: #3b82f6; transform: translateY(-50%) scale(1.1); }
.csgo-slide-btn.prev { left: 15px; }
.csgo-slide-btn.next { right: 15px; }
.csgo-slide-dots { text-align: center; margin-bottom: 50px; }
.csgo-dot { display: inline-block; width: 12px; height: 12px; background: #334155; margin: 0 5px; border-radius: 50%; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.csgo-dot.active, .csgo-dot:hover { background: #facc15; transform: scale(1.2); box-shadow: 0 0 10px rgba(250, 204, 21, 0.5); }
.csgo-gallery-section h3 { border-bottom: 2px solid #2a2a35; padding-bottom: 10px; margin-bottom: 25px; font-size: 24px; }
.csgo-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.csgo-gallery-item { background: #1f1f2e; border: 1px solid #2a2a35; border-radius: 8px; padding: 20px; text-align: center; transition: transform 0.2s; }
.csgo-gallery-item:hover { transform: scale(1.05); border-color: #3b82f6; }
.csgo-gallery-item img { width: 100%; height: 100px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6)); }
.csgo-gallery-user { color: #94a3b8; font-size: 14px; font-weight: bold; }

/* --- 6. INVENTARIS & SALDO STYLING --- */
#csgo-inventory-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.csgo-inventory-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #2a2a35; padding-bottom: 15px; margin-bottom: 30px; }
.csgo-inventory-header h2 { margin: 0; font-size: 32px; }
.csgo-balance-display { background: #16161e; border: 1px solid #3b82f6; padding: 10px 20px; border-radius: 8px; font-size: 18px; color: #e2e8f0; box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }
.csgo-balance-display strong { color: #4ade80; font-size: 22px; margin-left: 10px; }
.csgo-inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.csgo-inventory-card { background: #1f1f2e; border: 1px solid #2a2a35; border-radius: 8px; padding: 20px 15px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 4px solid var(--item-color); box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform 0.2s; }
.csgo-inventory-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.csgo-inventory-card img { width: 100%; height: 100px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.6)); }
.csgo-inventory-card-info h4 { margin: 0 0 10px 0; font-size: 15px; color: #f8fafc; }
.csgo-inventory-price { color: #94a3b8; font-size: 14px; margin-bottom: 15px; }
.csgo-sell-btn { background: #334155; color: white; border: none; padding: 10px; border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; transition: background 0.2s, color 0.2s; }
.csgo-sell-btn:hover { background: #4ade80; color: #0b0c10; }
#csgo-inventory-empty { text-align: center; padding: 50px 20px; background: #16161e; border-radius: 12px; border: 1px dashed #334155; color: #94a3b8; font-size: 18px; }

/* Responsive fixes */
@media (max-width: 850px) {
    #csgo-market-wrapper { flex-direction: column; }
    #csgo-cart-sidebar { width: 100%; position: static; box-sizing: border-box; }
    .csgo-slideshow-container { height: 300px; }
    .csgo-hero-title { font-size: 32px; }
    .csgo-inventory-header { flex-direction: column; gap: 20px; text-align: center; }
}