/* =========================================
   MODERN DASHBOARD HERO (Obsidian Theme)
   ========================================= */

/* Fix: Allow shadows to bleed out naturally */
.main-content {
    overflow: visible !important;
}

.dashboard-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 60px;
}

/* --- 1. HERO BANNER --- */
.dash-hero {
    position: relative;
    width: 100%;
    height: 380px; 
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #050505;
    border: 1px solid #333; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    margin-bottom: 2rem;
}

.dash-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/dark-matter.png");
    opacity: 0.4;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(203, 178, 106, 0.08) 0%, rgba(0,0,0,0) 60%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge Style */
.hero-badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #cbb26a;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 6px 16px;
    border: 1px solid rgba(203, 178, 106, 0.3);
    background: rgba(203, 178, 106, 0.05);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(203, 178, 106, 0.1);
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.hero-title .text-gold {
    background: linear-gradient(to bottom, #fff, #cbb26a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 0 2px 4px #000;
    max-width: 550px;
}



/* --- 2. STATS TICKER --- */
.stats-ticker {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.ticker-item { text-align: center; flex: 1; }
.ticker-item .t-label { display: block; font-size: 10px; text-transform: uppercase; color: #666; letter-spacing: 1.5px; margin-bottom: 5px; font-weight: 700; }
.ticker-item .t-val { font-family: 'Cinzel', serif; font-size: 1.2rem; color: #eee; text-shadow: 0 2px 2px #000; }
.text-rare { color: #bf5af2; text-shadow: 0 0 10px rgba(191, 90, 242, 0.3); }
.ticker-sep { width: 1px; height: 30px; background: #333; }

/* --- 3. DASHBOARD GRID --- */
.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.dash-main { display: flex; flex-direction: column; gap: 25px; }

/* Spotlight Card */
.spotlight-card {
    background: radial-gradient(circle at top right, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #333; 
    border-top: 3px solid #4facfe;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.spotlight-content { position: relative; z-index: 2; max-width: 80%; }
.tag-new { background: #4facfe; color: #000; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 2px; letter-spacing: 1px; }
.spotlight-content h3 { margin: 15px 0 10px 0; font-size: 1.6rem; color: #fff; font-family: 'Cinzel', serif; }
.spotlight-content p { color: #ccc; line-height: 1.6; margin: 0; font-size: 14px; }
.visual-circle { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 172, 254, 0.15), transparent 70%); position: absolute; top: -50px; right: -50px; z-index: 1; filter: blur(20px); }

.dash-section-header h3 { font-size: 14px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 15px 0; border-bottom: 1px solid #222; padding-bottom: 10px; }

/* Activity Feed */
.activity-feed { display: flex; flex-direction: column; gap: 15px; }
.feed-item { display: flex; align-items: flex-start; gap: 15px; padding: 20px; background: #111; border: 1px solid #2a2a2a; border-radius: 6px; transition: transform 0.2s, border-color 0.2s; }
.feed-item:hover { border-color: #555; transform: translateX(5px); }
.feed-icon { font-size: 20px; background: #1a1a1a; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #333; flex-shrink: 0; }
.feed-body { flex: 1; }
.feed-body strong { display: block; color: #eee; font-size: 14px; margin-bottom: 5px; }
.feed-body p { margin: 0; font-size: 13px; color: #888; line-height: 1.4; }
.feed-date { font-size: 11px; color: #555; white-space: nowrap; font-weight: bold; }

/* --- RIGHT COLUMN (Sidebar) --- */
.dash-sidebar { background: #0f0f0f; border: 1px solid #2a2a2a; border-radius: 8px; padding: 20px; height: fit-content; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 15px; }
.sidebar-header h3 { margin: 0; font-family: 'Cinzel', serif; font-size: 13px; color: #cbb26a; text-transform: uppercase; letter-spacing: 1px; }
.live-dot { width: 6px; height: 6px; background: #4fa84f; border-radius: 50%; box-shadow: 0 0 5px #4fa84f; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

.leaderboard-modern { display: flex; flex-direction: column; gap: 8px; }
.lb-card { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 4px; background: #161616; border: 1px solid #222; transition: transform 0.2s; }
.lb-card:hover { transform: translateX(3px); background: #1a1a1a; border-color: #444; }
.rank-1 { background: linear-gradient(90deg, rgba(203, 178, 106, 0.1), #161616); border: 1px solid rgba(203, 178, 106, 0.3); }
.rank-1 .lb-pos { color: #cbb26a; text-shadow: 0 0 10px rgba(203, 178, 106, 0.5); }
.rank-1 .lb-name { color: #fff; }
.lb-left { display: flex; align-items: center; gap: 12px; }
.lb-pos { font-family: 'Cinzel', serif; font-size: 14px; color: #555; font-weight: bold; width: 20px; text-align: center; }
.lb-details { display: flex; flex-direction: column; }
.lb-name { font-weight: bold; font-size: 13px; color: #bbb; }
.lb-sub { font-size: 10px; color: #666; margin-top: 2px; }
.crown-icon { font-size: 14px; }

/* FIX: VIEW RANKINGS BUTTON (Matches Search Button Style) */
.lb-footer {
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.btn-rankings {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a); 
    border: 1px solid #cbb26a; /* Gold Border */
    color: #cbb26a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.btn-rankings:hover {
    background: linear-gradient(to bottom, #2a2a2a, #151515);
    color: #fff;
    box-shadow: 0 4px 15px rgba(203, 178, 106, 0.1);
    transform: translateY(-2px);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .dash-hero { height: auto; padding: 50px 20px; }
    .hero-title { font-size: 2.5rem; }
    .dash-grid { grid-template-columns: 1fr; } 
    
    /* MOBILE SEARCH FIX: 
       We create two equal-sized blocks.
       The Input gets a background and border to match the button visually.
    */
    .input-artifact { 
        flex-direction: column; 
        height: auto; 
        border: none; /* Remove container border */
        background: transparent; /* Remove container bg */
        box-shadow: none; /* Remove container shadow */
        padding: 0; 
        gap: 12px; /* Distinct gap between the two 'blocks' */
    }
    
    .input-artifact input { 
        width: 100%; 
        text-align: center; 
        height: 55px !important; /* Taller touch target */
        background: #080808; /* Solid background */
        border: 1px solid #333; /* Distinct border */
        border-radius: 8px; /* Rounded corners */
        font-size: 16px;
        padding: 15px;
        color: #fff;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    }
    
    .input-artifact button { 
        width: 100%; 
        height: 55px !important; /* Exact match to input height */
        border-radius: 8px; 
        font-size: 16px; /* Larger text for mobile button */
    }
    
    .artifact-icon { display: none; }
}