/* =============================================================
   HUB_STYLE.CSS (FULL THEME_V2 INTEGRATION)
   ============================================================= */

body {
    font-family: 'Cairo', sans-serif;
    
    /* 1. UNIFIED GRADIENT BACKGROUND */
    /* This color shows through where the image fades out */
    background: radial-gradient(circle at center, #ffffff 0%, #eaeeda 100%);
    
    color: #0a0c00; 
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}


header {
    flex-shrink: 0;
    width: 100%;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 400px;
    margin: 0 auto;
}

.logo img, 
.logo-40 img { 
    width: 80px; 
    height: auto;
    display: block;
    margin-left: auto;
}


main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    min-height: 85vh;
    min-width: max-content;

}

/* BACKGROUND IMAGE WITH MELTING EDGES */
main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: url('../images/1000003465.webp');
    background-position: center top;
    background-repeat: no-repeat;
    /* 'contain' keeps the whole portrait visible */
    background-size: contain; 
    z-index: -1; 
    aspect-ratio: 9 / 16;

    
    /* THE FIX:
       1. 'closest-side': Ensures the gradient respects the narrow width of a portrait image.
       2. 'black 75%': Keeps the inner 75% of the image TOTALLY SOLID (No blur/fade).
       3. 'transparent 100%': Fades to invisible only in the last 25% of space.
    
    -webkit-mask-image: radial-gradient(ellipse closest-side at center, black 95%, transparent 100%);
    mask-image: radial-gradient(ellipse closest-side at center, black 95%, transparent 100%);*/
    
    /* Optional: Adds a very slight real blur to the pixels if supported, 
       but creates a softer 'dreamy' edge combined with the mask */
    filter: blur(0px); 
    
    pointer-events: none;
}



/* 5. GLASSMORPHISM CARD (Exact from Theme_V2) */
.game-list-container {
    position: relative;
    z-index: 1;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}
/* === Delayed appearance for the game container === */


/* Make the internal container invisible as per Hub requirements */
.game-list {
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 25px;
    
    /* Big Size */
    width: 50%;
    max-width: 300px;
    min-width: 250px;
    height: auto;
    
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.2));
    display: block;
    /*cursor: pointer;*/
}

.game-list {
    opacity: 0;
    transform: scale(0.95);
    
    animation: hubReveal 0.6s ease forwards;
    animation-delay: 0.8s; /* ⬅️ Adjust delay here */
}

@keyframes hubReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 6. HUB TITLES (Visible on the background) */
.game-list-container h1 {
    font-family: 'Cairo';
    font-weight: 700;
    font-size: 24px;
    color: rgb(26, 7, 7);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: 0;
}
.container .subtitle {
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

/* 7. GAME CARDS (Layout from Hub + Visuals from Theme_V2) */
.game-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.game-card {
    direction: ltr;
    display: flex;
    justify-content: flex-start;
    align-items: center; 

    width: 100%;
    height: 65px;
    padding: 0 20px;
    box-sizing: border-box;
    text-decoration: none;
    transition: all 0.3s ease;

    /* Visuals from Theme_V2 Game Cards */
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.6);
}

.game-card:hover {
    /* Hover from Theme_V2 */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #d4af37; /* Gold secondary color */
}

.game-title {
    order: 2;
    direction: rtl;
    font-family: 'Cairo';
    font-size: 16px;
    font-weight: 700;
    color: #008080; /* Primary Teal */
    text-align: right;
    white-space: nowrap;
    margin-left: auto;
}

.game-img {
    order: 1;
    max-height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
    margin-right: 15px;
}

/* --- FOOTER --- */
footer {
    flex-shrink: 0;
    text-align: center;
    z-index: 2;
    width: 100%;
}

.foot {
    background: transparent;
    font-size: 12px;
    color: #0a0c00;
}

.social {
    margin: 0;
}
.social span {
    display: block;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
}

.social-items {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
}

.social-items img {
    width: 32px;
    transition: transform 0.3s ease;
}

.social-items a:hover img {
    transform: translateY(-5px);
}