/* === HOMEPAGE SPECIFIC STYLES === */
.homepage
{
    display: grid;
    grid-template-rows: 50% auto; /* top = carousel, bottom = featured */
    height: 100%;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* === HERO CAROUSEL === */
.hero-carousel
{
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.carousel
{
    height: 100%;
    position: relative;
}

.slide
{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active
{
    opacity: 1;
    z-index: 2;
}

.slide img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Navigation Arrows */
.prev, .next
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    padding: 0.4rem;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    user-select: none;
    transition: background 0.3s ease;
    z-index: 3;
}

.prev:hover, .next:hover
{
    background: rgba(0,0,0,0.6);
}

.prev
{
    left: 12px;
}

.next
{
    right: 12px;
}

/* Dots */
.dots
{
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.dot
{
    height: 8px;
    width: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active, .dot:hover
{
    background: #00aaff;
}

/* === FEATURED GAMES === */
.featured-games
{
    background: #111;
    width: 100%;
    margin: 0;
    padding: 1rem 0;
    text-align: center;
}

.featured-games h2
{
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: #fff;
}

/* Icon grid */
.featured-games .games-list
{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* always 3 equal slots */
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0 0.5rem; /* breathing space so glow not clipped */
    box-sizing: border-box;
}

/* Card wrapper */
.featured-games .game-card
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: none;
    box-shadow: none;
}

/* Icon image */
.featured-games .game-card img
{
    display: block;
    width: 100%;
    max-width: 140px;   /* keeps icons neat on desktop */
    height: auto;
    object-fit: contain; /* full icon visible */
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.8);
    margin-bottom: 0.4rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.featured-games .game-card:hover img
{
    box-shadow: 0 0 20px rgba(0, 170, 255, 1);
    transform: scale(1.05);
}

/* Icon label */
.featured-games .game-card h3
{
    font-size: 1rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
}
