/* ============================================
   KEZDŐOLDAL STÍLUSA — mezofiuk.hu
   Csak a kezdőlap saját elemei (kezdo- előtag), nem nyúl a
   nav/footer/#content-hez, azokat az index.css adja.
   ============================================ */

/* ===== HERO / ÜDVÖZLŐ SZÖVEG ===== */
.kezdo-hero {
    text-align: center;
    padding: 30px 20px 50px;
}

/* Képernyőolvasóknak/SEO-nak látható cím, vizuálisan rejtve
   (a tényleges cím a kartya.png grafikán jelenik meg) */
.kezdo-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Kártya-köntös a hero grafikára, a te .card / .spotify-card receptedből */
.kezdo-hero-card {
    max-width: 820px;
    margin: 10px auto 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid rgba(120,120,120,0.4);
    transform: perspective(900px) rotateX(6deg) rotateY(-3deg);
    transition: 0.5s ease;
    box-shadow:
        0 25px 45px rgba(0,0,0,0.8),
        0 0 35px rgba(0, 140, 255, 0.4),
        inset 0 0 25px rgba(255,255,255,0.05),
        inset 0 0 10px rgba(0,0,0,0.6);
}
.kezdo-hero-card:hover {
    transform: perspective(900px) rotateX(2deg) rotateY(1deg) scale(1.02);
    box-shadow:
        0 35px 55px rgba(0,0,0,0.9),
        0 0 55px rgba(0, 140, 255, 0.7),
        inset 0 0 35px rgba(255,255,255,0.08);
}
.kezdo-hero-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== LEGFRISSEBB KÉPEK ===== */
.kezdo-recent {
    margin: 70px auto;
    max-width: 1300px;
}

.kezdo-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.kezdo-recent-grid a {
    display: block;
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(120,120,120,0.3);
    position: relative;
    box-shadow:
        0 10px 22px rgba(0,0,0,0.7),
        0 0 18px rgba(0,140,255,0.2);
    transition: 0.3s ease;
}

.kezdo-recent-grid a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 18px 32px rgba(0,0,0,0.8),
        0 0 32px rgba(0,140,255,0.6);
}

.kezdo-recent-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kezdo-recent-grid a::after {
    content: '↗';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(5,5,5,0.75);
    color: #6aaaff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.kezdo-recent-grid a:hover::after { opacity: 1; }

/* ===== KÉP-FADER (egyszerre egy kép, 5mp-enként váltva) ===== */
.kezdo-fader {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 4/3;
    margin: 25px auto 0;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(120,120,120,0.35);
    background: #0a0a0a;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.8),
        0 0 35px rgba(0,140,255,0.35);
}

.kezdo-fader-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 1.2s ease;
}
.kezdo-fader-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

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

.kezdo-fader-slide::after {
    content: '↗';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(5,5,5,0.75);
    color: #6aaaff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.kezdo-fader-slide:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .kezdo-fader-slide { transition-duration: 0.01ms; }
}

.kezdo-recent-more {
    text-align: center;
    margin-top: 25px;
}
.kezdo-recent-more a {
    color: #6aaaff;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: 0.25s ease;
}
.kezdo-recent-more a:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(0,140,255,0.7);
}

/* ============================================
   MOBIL FINOMÍTÁS (<=760px)
   ============================================ */
@media (max-width: 760px) {
    .kezdo-hero {
        padding: 20px 14px 35px;
    }

    /* A hero-kártya döntése telefonon lapítva, hogy semmi
       ne vágódjon le a képernyő szélén */
    .kezdo-hero-card {
        transform: none;
        max-width: 100%;
        margin: 0 auto;
    }
    .kezdo-hero-card:hover {
        transform: scale(1.01);
    }

    .kezdo-recent {
        margin: 45px auto;
    }

    .kezdo-recent-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
    }

    .kezdo-fader {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kezdo-hero-card { transition-duration: 0.01ms; }
}
