/* OPTIMIZED NEW HOME CSS - PROFESSIONAL DASHBOARD VERSION */

.ticker-wrapper { width: 100%; height: 50px; overflow: hidden; background: var(--surface-bg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; position: relative; }
.ticker-content { display: flex; align-items: center; white-space: nowrap; height: 100%; position: absolute; }
.ticker-content.animate { animation: ticker-scroll 160s linear infinite; } /* Slower duration: 160s */
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; height: 100%; padding: 0 1.5rem; border-right: 1px solid rgba(0,0,0,0.05); }
.ticker-item-image { width: auto; height: 30px; margin-right: 10px; object-fit: contain; }
.ticker-item-name { font-weight: 600; font-size: 0.85rem; margin-right: 8px; color: var(--text-primary); }
.ticker-item-change { font-size: 0.85rem; font-weight: 700; }
.pos { color: #27ae60; } .neg { color: #c0392b; } .new { color: #2980b9; }

/* FULL WIDTH BANNER UPDATE */
.banner-section { 
    width: 100%; 
    max-width: 100%; 
    margin: 0; 
    padding: 0; 
    text-align: center; 
    position: relative; 
    z-index: 1; 
}

/* CINEMATIC FADE TO WHITE */
.banner-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; 
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.9) 100%);
    pointer-events: none;
    z-index: 2; 
}

.full-width-banner { 
    width: 100%; 
    display: block; 
    border-radius: 0;
    aspect-ratio: 4.236 / 1;
    object-fit: cover;
    object-position: center;
}

/* --- ADVERTENTIE LAYOUT GRID --- */
.home-layout-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 20px;
    padding-bottom: 60px;
}

.main-content-area {
    width: 100%;
    max-width: 1100px; /* Behoudt de originele max-breedte van dashboard */
    flex: 1;
    min-width: 0; /* Voorkomt flexbox overflow issues */
}

.ad-sidebar {
    width: 160px; /* Standaard Skyscraper breedte */
    flex-shrink: 0;
    display: none; /* Standaard verborgen op mobiel/tablet */
    padding-top: 40px; /* Beetje ruimte vanaf de banner */
    z-index: 10;
}

.ad-sticky-container {
    position: sticky;
    top: 100px; /* Blijft hangen als je scrollt (rekening houdend met header) */
    width: 160px;
    min-height: 600px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Tijdelijke styling om de plek te zien - mag later weg of transparant */
    /* border: 1px dashed #e0e0e0; */
}

.ad-placeholder-text {
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Pas weergeven op schermen breed genoeg (1100px content + 2x 180px sidebar ruimte = ~1460px) */
@media (min-width: 1460px) {
    .ad-sidebar {
        display: block;
    }
}

/* PREMIUM INTRO SECTION */
.intro-container {
    position: relative;
    padding: 40px 20px 30px; 
    background: transparent; 
    text-align: center;
    max-width: 100%; 
    box-sizing: border-box;
}

.intro-badge {
    display: inline-block;
    background: #38b6ff; 
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 18px;
    border-radius: 100px;
    margin-bottom: 25px;
}

.intro-heading {
    font-size: 2.8rem; 
    font-weight: 900;
    color: #111;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.highlight-text { color: #555; }

.intro-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
}

/* ========================================================= */
/* MARKET PULSE DASHBOARD (MAGAZINE COVER STYLE)             */
/* ========================================================= */
.market-dashboard-section {
    width: 100%;
    /* max-width is nu geregeld door .main-content-area, maar laten we zorgen dat het fit */
    max-width: 100%; 
    margin: 0 auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

.pulse-dashboard {
    background: transparent;
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 30px;
    align-items: stretch; 
}

/* HEADER STYLE (Biggest Mover & Top Movers by Game) */
.pl-header-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.pl-header-badge {
    background: #38b6ff; /* New Brand Color */
    color: #fff;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(56, 182, 255, 0.25); /* Colored shadow */
}


/* --- LINKER KANT: THE ALPHA (TOP MOVER CARD - MAGAZINE COVER) --- */
/* The container for the card itself (below the header) */
.pulse-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column; 
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Container Styling */
    background: #fff;
    border-radius: 24px;
    padding: 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid #f0f0f0;
    text-align: center;
    overflow: hidden; 
    height: 100%; 
    flex: 1; 
}

/* Ensure the parent container (#pulse-hero-container) is flex column to allow flex:1 to work */
#pulse-hero-container {
    display: flex;
    flex-direction: column;
}

.pulse-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

/* Wrapper inside the card */
.magazine-cover-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out content */
    background: #fff; /* White background */
    padding: 20px;
    box-sizing: border-box;
}

/* TOP CONTENT: Title & Tag */
.mag-content-top {
    margin-bottom: 20px;
    width: 100%;
}

.mag-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #111; /* Dark text */
    line-height: 1.1;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.mag-game-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* KLEUREN PER GAME VOOR TAGS */
.bg-pokemon { background-color: #ffcc00; color: #333; }
.bg-one-piece { background-color: #e74c3c; }
.bg-lorcana { background-color: #3498db; }
.bg-magic { background-color: #27ae60; }
.bg-yugioh { background-color: #9b59b6; }


/* MIDDLE: Image */
.mag-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 200px; /* Ensure some space for image */
    position: relative;
}

/* Static Image (In Flow) */
.ph-img-static {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)); /* Nice shadow on card */
    transition: transform 0.3s ease;
}

.pulse-hero:hover .ph-img-static {
    transform: scale(1.05) rotate(2deg);
}

/* BOTTOM: Stats */
.mag-stats-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5; /* Separator */
}

.mag-stat-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.mag-stat-group:last-child {
    text-align: right;
}

.mag-stat-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: #111;
    line-height: 1;
    white-space: nowrap;
}

.mag-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: 1px;
}

.mag-change-val {
    color: #27ae60; 
}


/* --- RECHTER KANT: CHALLENGERS (PREMIUM LIST CARDS) --- */
.pulse-list-panel {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    border: none;
    padding: 0;
}

#pulse-list-container {
    display: flex;
    flex-direction: column;
}

.pulse-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    flex: 1; 
}

.pulse-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

/* GAME COLOR ACCENT STRIP (Links) */
.pulse-item::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: #ccc;
}

/* Game Colors Classes */
.pulse-item.game-pokemon::before { background: #ffcc00; }
.pulse-item.game-one-piece::before { background: #e74c3c; }
.pulse-item.game-lorcana::before { background: #3498db; }
.pulse-item.game-magic::before { background: #27ae60; }
.pulse-item.game-yugioh::before { background: #9b59b6; }

.pi-game-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    color: #fff;
}

.pi-visual-wrapper {
    position: relative;
    width: 70px;
    flex-shrink: 0;
}

.pi-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    display: block;
}

/* Mini Holo Effect op List Items */
.pi-visual-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 6px;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.pulse-item:hover .pi-visual-wrapper::after {
    opacity: 1;
}

.pi-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.pi-name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
    line-height: 1.2;
    max-width: 100%;
}

.pi-stats-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.pi-rank {
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
}

.pi-change-badge {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.pi-price {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}


/* ========================================= */
/* GAME GRID & TABS (Clean)                  */
/* ========================================= */
.game-grid-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.game-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.game-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px 15px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.game-grid-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #38b6ff;
}

.gg-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.gg-icon {
    font-size: 1.2rem;
    color: #38b6ff;
    transition: transform 0.2s ease;
}

.game-grid-btn:hover .gg-icon {
    transform: translateX(4px);
}

.trending-tabs-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 80px; 
    padding: 0 20px;
    box-sizing: border-box;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid #eee;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
}

.tab-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.daily-report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per rij op desktop */
    gap: 30px;
    width: 100%;
}

.report-column {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Belangrijk voor flex-item met ellipsen */
}

.rc-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111; /* Donkerder voor beter contrast */
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #38b6ff; /* Huisstijl blauw */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.rc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(56, 182, 255, 0.1); /* Zachtere blauwe schaduw */
    border-color: #38b6ff; /* Huisstijl blauw */
}

.rc-img {
    width: 44px;
    height: auto;
    border-radius: 6px;
    background: #f4f4f4;
    flex-shrink: 0;
}

.rc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.rc-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.rc-rank {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

.rc-stat {
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    padding-left: 10px;
    flex-shrink: 0;
    color: #38b6ff; /* Default Huisstijl blauw */
}

.rc-stat.pos {
    color: #27ae60; /* Groen voor stijging */
}

.rc-stat.neg {
    color: #c0392b; /* Rood voor daling */
}

.how-it-works-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 650px;
    margin: 0 auto 30px; /* Reduced margin-bottom from 60px to 30px */
}

.how-it-works-text {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- MEDIA QUERIES (CRUCIAAL) --- */
@media (max-width: 1100px) {
    .pulse-dashboard {
        gap: 20px;
    }
}

@media (max-width: 1000px) {
    .game-grid-container { grid-template-columns: repeat(3, 1fr); }
    /* Daily report blijft 2 per rij op tablet */
}

@media (max-width: 768px) {
    .full-width-banner { aspect-ratio: 16 / 9; }
    .banner-section::after { height: 50px; }
    
    .intro-container { padding: 30px 15px; }
    .intro-heading { font-size: 2rem; }

    /* DASHBOARD MOBILE */
    .market-dashboard-section {
        padding: 0 15px;
    }

    .pulse-dashboard {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .pulse-hero {
        padding: 0; 
        gap: 0;
        width: 100%;
        height: auto;
        min-height: 350px;
    }
    
    .ph-img-static {
        padding: 20px;
    }
    
    .pulse-list-panel {
        gap: 12px;
        width: 100%;
    }
    
    .pulse-item {
        padding: 12px;
        background: #fff; 
        width: 100%;
    }

    /* Game Grid Mobile */
    .game-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .game-grid-btn { padding: 15px; min-height: 60px; }
    
    /* Daily Report Grid: 1 column on mobile */
    .daily-report-grid { grid-template-columns: 1fr; gap: 20px; }
    

    .tab-btn { white-space: nowrap; }

    .home-ad-container { margin: 15px 0 !important; padding: 0 10px; }
}

@media (max-width: 480px) {
    .game-grid-container {
        grid-template-columns: 1fr;
    }
    .intro-heading { font-size: 1.7rem; }
    .mag-title { font-size: 1.5rem; }
}
