/* ============================================================
   Flying Fries — Home page
   Hero video, featured products mosaic, CTA tiles
   ============================================================ */

/* =========================
   HERO (video background)
   ========================= */

.hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 340px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--ff-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 28px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    padding: 0;
}

.hero-cta {
    padding: 14px 52px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ff-radius-md);
    background: transparent;
    color: #fff;
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    border-color: var(--ff-gold);
    background: rgba(194, 153, 30, 0.08);
    color: var(--ff-gold);
}


/* =========================
   MOSAIC (featured + CTAs)
   ========================= */

.mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 320px 220px;
    gap: 3px;
    background: rgba(0, 0, 0, 0.08);
}

/* Product tile */
.mosaic-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
}

.mosaic-tile.coming-soon {
    cursor: default;
}

/* Text overlay gradient */
.mosaic-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.mosaic-tile.coming-soon::before {
    filter: grayscale(30%);
}

/* Hover overlay */
.mosaic-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2;
    pointer-events: none;
    transition: background 0.4s ease;
}

.mosaic-tile:not(.coming-soon):hover::after {
    background: rgba(194, 153, 30, 0.06);
}

/* Product image as background */
.mosaic-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge (payware/freeware/coming soon) */
.mosaic-badge {
    position: absolute;
    top: 16px;
    left: 18px;
    padding: 4px 11px;
    border-radius: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    z-index: 3;
}

.mosaic-badge.payware { background: var(--ff-blue); }
.mosaic-badge.freeware { background: var(--ff-green); }
.mosaic-badge.coming-soon { background: rgba(100, 100, 100, 0.85); }

/* Tile text content */
.mosaic-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    z-index: 3;
}

.mosaic-tagline {
    font-size: 10px;
    color: var(--ff-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    opacity: 0.65;
    transition: opacity 0.3s ease;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
}

.mosaic-tile:hover .mosaic-tagline {
    opacity: 1;
}

.mosaic-name {
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    padding: 0;
}

.mosaic-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}


/* =========================
   CTA TILES
   ========================= */

.cta-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Hover overlay */
.cta-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.3s ease;
    pointer-events: none;
}

.cta-tile:hover::after {
    background: rgba(194, 153, 30, 0.05);
}

.cta-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.cta-tile:hover .cta-icon {
    transform: scale(1.1);
}

.cta-icon svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.7);
}

.cta-title {
    position: relative;
    z-index: 1;
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 0;
}

.cta-desc {
    position: relative;
    z-index: 1;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 18px;
    max-width: 260px;
}

.cta-btn {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 8px 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.cta-btn:hover {
    border-color: var(--ff-gold);
    color: var(--ff-gold);
}


/* =========================
   HOVER EFFECTS (desktop only)
   ========================= */

@media (hover: hover) {
    /* --- Product tiles: color fill bottom-left --- */
    .mosaic-tile .tile-color-fill {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65%;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            to top,
            var(--tile-color, transparent) 0%,
            rgba(0, 0, 0, 0.15) 50%,
            transparent 100%
        );
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .mosaic-tile:not(.coming-soon):hover .tile-color-fill {
        opacity: 0.55;
    }

    /* --- CTA tiles: white shine sweep --- */
    .cta-tile .tile-shine {
        position: absolute;
        inset: 0;
        z-index: 4;
        pointer-events: none;
        overflow: hidden;
    }

    .cta-tile .tile-shine::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -80%;
        width: 60%;
        height: 200%;
        background: linear-gradient(
            105deg,
            transparent 0%,
            transparent 35%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 65%,
            transparent 100%
        );
        opacity: 0;
        transform: translateX(0);
    }

    .cta-tile .tile-shine.is-shining::before {
        animation: shineSweep 0.5s ease-out forwards;
    }
}

@keyframes shineSweep {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(350%);
    }
}


/* =========================
   MOSAIC GRID PLACEMENT
   ========================= */

.mosaic-tile.featured { grid-column: 1 / 3; grid-row: 1; }
.mosaic-tile.secondary { grid-column: 3; grid-row: 1; }
.mosaic-tile.tertiary { grid-column: 1; grid-row: 2; }
.cta-tile.cta-catalog { grid-column: 2; grid-row: 2; }
.cta-tile.cta-discord { grid-column: 3; grid-row: 2; }


/* =========================
   RESPONSIVE
   ========================= */

@media screen and (max-width: 768px) {
    .hero {
        height: 40vh;
        min-height: 280px;
    }

    .hero-title {
        letter-spacing: 4px;
    }

    .hero-cta {
        padding: 12px 36px;
    }

    .mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 200px 180px;
    }

    .mosaic-tile.featured { grid-column: 1 / 3; grid-row: 1; }
    .mosaic-tile.secondary { grid-column: 1; grid-row: 2; }
    .mosaic-tile.tertiary { grid-column: 2; grid-row: 2; }
    .cta-tile.cta-catalog { grid-column: 1; grid-row: 3; }
    .cta-tile.cta-discord { grid-column: 2; grid-row: 3; }

    .cta-tile {
        padding: 20px 20px;
    }

    .cta-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .cta-desc {
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        height: 35vh;
        min-height: 240px;
    }

    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hero-cta {
        padding: 10px 28px;
        font-size: 12px;
        width: 100%;
        max-width: 280px;
    }

    .mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 180px 180px 160px 160px;
    }

    .mosaic-tile.featured { grid-column: 1; grid-row: 1; }
    .mosaic-tile.secondary { grid-column: 1; grid-row: 2; }
    .mosaic-tile.tertiary { grid-column: 1; grid-row: 3; }
    .cta-tile.cta-catalog { grid-column: 1; grid-row: 4; }
    .cta-tile.cta-discord { grid-column: 1; grid-row: 5; }

    .mosaic-name {
        font-size: 18px;
    }

    .mosaic-tagline {
        opacity: 1;
    }

    .cta-title {
        font-size: 16px;
    }

    .cta-tile {
        padding: 16px 20px;
    }

    .cta-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .cta-desc {
        margin-bottom: 10px;
        font-size: 11px;
        line-height: 1.4;
    }

    .cta-btn {
        padding: 6px 18px;
        font-size: 11px;
    }
}
