/* hero-showcase.css
 *
 * Animated landscape backdrop + rotating "what's happening in Vitare right now"
 * card cycler. Loaded by index.php (login) and register.html.
 *
 * The .hero panel becomes a full-bleed scene: layered SVG hills, a moving sun,
 * drifting clouds. On top, the existing logo + online badge stay, and a card
 * showing a single live lot fades in/out every few seconds.
 */

.hero {
    position: relative;
    overflow: hidden;
}

/* Sky backdrop. Multi-layer gradient that mirrors the vitaregame.com
   homepage hero: a deeper cyan core, a paler top-left highlight, and a
   warm peach glow tucked into the bottom-right so the whole panel feels
   atmospheric rather than a flat washed-out swatch. */
.scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 80% at 95% 100%, rgba(255, 198, 162, 0.40) 0%, transparent 60%),
        radial-gradient(ellipse 80% 70% at 0% 0%,    rgba(255, 255, 255, 0.85) 0%, transparent 65%),
        linear-gradient(160deg, #b6dffa 0%, #9fd1f6 38%, #c6e3f5 70%, #f4dcc8 100%);
}

/* Sun — slowly drifts left to right, gently fading at the edges */
.scene .sun {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #fff7c2 0%, #ffe27a 50%, rgba(255,226,122,0) 80%);
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(0.4px);
    animation: sun-drift 60s ease-in-out infinite alternate;
}
@keyframes sun-drift {
    0%   { left: 25%; }
    100% { left: 75%; }
}

/* Clouds — three layers moving at different speeds for parallax */
.scene .cloud {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.85;
    box-shadow: 24px 8px 0 -4px #ffffff,
                48px -2px 0 -6px #ffffff,
                -22px 4px 0 -2px #ffffff;
    filter: blur(0.5px);
}
.scene .cloud.c1 { width:70px; height:24px; top:18%; left:-15%; animation: drift-1 80s linear infinite; }
.scene .cloud.c2 { width:50px; height:18px; top:32%; left:-15%; animation: drift-2 110s linear infinite; opacity:0.6; }
.scene .cloud.c3 { width:90px; height:30px; top:25%; left:-15%; animation: drift-3 140s linear infinite; opacity:0.75; }
@keyframes drift-1 { from { left:-15%; } to { left:115%; } }
@keyframes drift-2 { from { left:-15%; } to { left:115%; } }
@keyframes drift-3 { from { left:-15%; } to { left:115%; } }

/* Distant ridge — single soft blue silhouette to give the sky a horizon
   without the cartoony green hills crowding the foreground. */
.scene .hill {
    position: absolute;
    left: 0; right: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
}
.scene .hill.back  { bottom: 0%; opacity: 0.45; }

/* Existing .hero-* elements are repositioned to layer above the scene */
.hero-logo, .online-badge, .hero-showcase, .hero-tagline {
    position: relative;
    z-index: 2;
}

/* ── Showcase card carousel ─────────────────────────────────────────────── */
/* Stage is the centred slot for the main card; side cards translate beyond
   it. Overflow stays visible so the peek-cards aren't clipped at the slot
   edge (the .hero parent clips them at the panel edge, which is fine). */
.hero-showcase {
    margin-top: 28px;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4/3;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.showcase-card {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border, #c8e4f4);
    box-shadow: 0 12px 36px rgba(56,182,255,0.18);
    opacity: 0;
    transform: translateX(0) scale(0.7);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
    z-index: 1;
}
.showcase-card.is-center {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
    pointer-events: auto;
}
.showcase-card.is-prev {
    opacity: 0.45;
    transform: translateX(-78%) scale(0.82);
    z-index: 2;
    filter: blur(0.5px);
}
.showcase-card.is-next {
    opacity: 0.45;
    transform: translateX(78%) scale(0.82);
    z-index: 2;
    filter: blur(0.5px);
}
.showcase-card .thumb {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a2740;
}
.showcase-card .thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,24,52,0.78) 100%);
}
.showcase-card .meta {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 18px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}
.showcase-card .meta .name {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.showcase-card .meta .owner {
    font-size: 12px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.showcase-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.showcase-card .badge.populated { background: #1aa078; }
.showcase-card .badge.hot       { background: #ef5e3a; }
.showcase-card .badge.ranked    { background: #38b6ff; }

.showcase-card .badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.hero-showcase-fallback {
    color: var(--text-muted, #5a6b80);
    font-size: 13px;
    text-align: center;
    padding: 18px;
    font-style: italic;
}
