﻿/* ============================
   Netflix ULTRA – Tiles Menu
   Perfect 1:1 Square Images
   ============================ */

body {
    background-color: #000;
    color: #fff;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Grid layout */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* Tile wrapper */
.tile {
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden; /* ⭐ תוספת חשובה */
    transition: 0.25s ease-in-out;
}

    /* Square image */
    .tile img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 12px;
        display: block; /* ⭐ מונע רווחים מוזרים מתחת לתמונה */
    }

    /* Title overlay */
    .tile span {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 8px 6px;
        background: rgba(0,0,0,0.55);
        color: #fff;
        font-size: 1.15rem;
        font-weight: bold;
        text-align: center;
        z-index: 5;
    }

    /* Hover glow */
    .tile:hover {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgba(0,255,255,0.6), 0 0 24px rgba(0,255,255,0.35), 0 0 38px rgba(0,255,255,0.25);
    }

/* RESPONSIVE */
@media (max-width: 1400px) {
    .tiles-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .tiles-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .tiles-container {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* ======================================================
   LIGHT THEME OVERRIDES
====================================================== */

body[data-theme="light"] {
    background-color: #f5f5f5;
    color: #222;
}

    body[data-theme="light"] .tile:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
    }

    body[data-theme="light"] .page-title {
        color: #222;
        text-shadow: none;
    }
