/* ============================================================
   home.css
   ============================================================ */

/* --- PREMIUM PROMO BANNER --- */
.promo-top-bar {
    background: 
        radial-gradient(circle at 5% 50%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 50%),
        #0a0a0a;
    color: #e0e0e0;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0; 
    margin-top: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-link {
    color: #e0e0e0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.promo-link:hover {
    color: var(--color-cta);
}

.promo-banner i {
    display: none; 
}

.promo-banner .promo-badge {
    background: none; 
    color: var(--color-cta); 
    border: 1px solid var(--color-cta); 
    font-size: 0.85rem;    
    padding: 4px 10px;        
    border-radius: 4px;       
    display: inline-block;
    margin: 0 10px;
    font-weight: 600;
    text-transform: uppercase;
    animation: premium-pulse 3s infinite;
}

@keyframes premium-pulse {
    0%, 100% {
        box-shadow: 0 0 2px rgba(247, 214, 120, 0);
    }
    50% {
        box-shadow: 0 0 8px rgba(247, 214, 120, 0.2);
    }
}

@media (max-width: 768px) {
    .promo-top-bar {
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .promo-banner .promo-badge {
        margin-top: 1rem; 
    }
}


/* --- GRID / LAYOUT DESKTOP --- */
.home-grid-container {
    display: grid;
    grid-template-columns: 1fr 280px; 
    grid-template-rows: auto auto 1fr; 
    grid-template-areas: 
        "hero sidebar"
        "table sidebar"
        ". sidebar";
    gap: 30px;
    align-items: start;
}

.table-section { 
    grid-area: table; 
    align-self: start; 
    height: fit-content; 
}

.hero-home { grid-area: hero; }
.home-sidebar-right { grid-area: sidebar; }

.main-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; 
}

.home-sidebar-right {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-self: stretch; 
}

/* --- 5. HERO --- */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0;
    overflow: hidden; 
}

.hero-image {
    flex-shrink: 0;
    width: 250px;            
    display: flex;
    justify-content: center;
    contain: layout paint;    
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: left;
    }

    .hero-image {
        width: 250px;
    }
}

.hero-home h1 { 
    font-family: var(--font-heading);
    font-size: 3.8rem;                    
    line-height: 1.18;
    letter-spacing: -0.015em;
    font-weight: 500;
    color: var(--color-cta);
    font-synthesis: none;
    margin-bottom: 15px;
    margin-top: 8px;
}

.hero-home p {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1.15rem; 
    margin-bottom: 10px;
}

.btn-premium {
    display: inline-block;
    position: relative;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-cta) !important;
    text-decoration: none;
    
    background: linear-gradient(135deg, #1a1c23 0%, #0a0a0a 100%);
    
    border: 1px solid var(--color-cta);
    border-radius: 4px;
    
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 15px;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.btn-premium:hover {
    color: var(--color-cta) !important;
    border-color: var(--color-cta);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:active {
    transform: translateY(0);
}

/* --- TABLE --- */
.table-section {
    flex: 0 0 auto; 
    min-width: 0;   
    margin-top: 0px;
}

.fav-toggle { cursor: pointer; }

/* --- WIDGETS --- */
.home-sidebar-right .w-ranking-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1024px) {

    .home-grid-container {
	display: flex;
        flex-direction: column; 
    }

    .main-left {
        order: 1;
        width: 100%;
    }

    .home-sidebar-right {
        order: 2;
        width: 100%;
        align-self: auto;
    }

    .table-section {
        order: 3;
        width: 100%;
    }

    .hero-home h1 {
        font-size: 3.10rem;
    }

    .hero-home p {
        font-size: 1.0rem;
    }
}