/* styles/header-footer.css */
/* Központi CSS a header.html és footer.html stílusozásához */

/* ===== ALAPOK ===== */
body {
    padding-top: 120px;
    font-family: var(--font-body);
}

body.animations-paused .shape,
body.animations-paused .parallax-element {
    animation-play-state: paused !important;
}

/* ===== HEADER CSS ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    transform: translateX(5px) scale(1.08);
}

.logo img {
    height: 55px;
    width: auto;
}

.right-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== ANIMÁCIÓ VEZÉRLŐ GOMB STÍLUS ===== */
.animation-toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-toggle-button:hover {
    opacity: 0.8;
}

/* Play és Pause ikonok mérete */
.pause-icon,
.play-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Alapból: Pause látszik, Play rejtve */
.pause-icon {
    display: block;
}

.play-icon {
    display: none;
}

/* Pause módban: Play látszik, Pause rejtve */
body.animations-paused .pause-icon {
    display: none;
}

body.animations-paused .play-icon {
    display: block;
}

/* Hover: kicsit nagyobb */
.animation-toggle-button:hover .pause-icon,
.animation-toggle-button:hover .play-icon {
    transform: scale(1.15);
}


.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 30px;
    height: 4px;
    background: linear-gradient(135deg, #2D47FB 0%, #43C653 25%, #F7D307 40%, #F72C2C 70%, #A347D1 100%);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
}

.mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        transparent 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.95) 80%);
    border-top: none;
    padding: 1rem;
    box-shadow: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    text-align: right;
}

.mobile-menu .nav-links a {
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

/* ===== NAVIGÁCIÓS LINKEK SZÍNÁTMENETES STÍLUSAI (OSZTÁLY ALAPÚ) ===== */

/* Játék tervezés - Sárga-Piros gradiens */
.mobile-menu .nav-links a.nav-games {
    background: linear-gradient(90deg, #F7D307 0%, #F72C2C 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grafikai tervezés - Kék-Zöld gradiens */
.mobile-menu .nav-links a.nav-graphics {
    background: linear-gradient(90deg, #2D47FB 0%, #43C653 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* mechaniKAland / techniKAland - szürke szöveg, szivárvány "árnyékkal" alatta */
.mobile-menu .nav-links a.nav-rainbow {
    position: relative;
    z-index: 0;
    color: #2d3748;              /* ← ez a felül lévő, olvasható szürke szöveg */
}

.mobile-menu .nav-links a.nav-rainbow::before {
    content: attr(data-text);
    position: absolute;
    transform: translate(1px, 1px);   /* ← ennyivel "lóg ki" a szín a szürke alól */
    z-index: -1;
    background: linear-gradient(90deg,
        #2D47FB 0%,
        #43C653 20%,
        #F7D307 40%,
        #F72C2C 60%,
        #A347D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    pointer-events: none;
}

/* Rólam - Lila gradiens */
.mobile-menu .nav-links a.nav-about {
    background: linear-gradient(90deg, #691d96 0%, #ea088b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hírek - Pink-Lila gradiens */
.mobile-menu .nav-links a.nav-contact {
    background: linear-gradient(90deg, #ec1e24 0%, #ff8500 60%, #fdea00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════ */
/* FIX GOMBOK – VISSZA (bal felső), FEL (jobb alsó) */
/* ═══════════════════════════════════════════════ */
.back-button,
.back-to-mechanikaland {
    position: fixed;
    top: 23px;
    left: 63px;
    width: auto;
    height: 33px;
    cursor: pointer;
    z-index: 1005;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 28px;
    width: 33px;
    height: auto;
    cursor: pointer;
    z-index: 1005;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.back-button:hover,
.back-to-mechanikaland:hover,
.scroll-to-top:hover {
    transform: scale(1.10);
}

/* MOBIL */
@media (max-width: 768px) {
    .back-button,
    .back-to-mechanikaland {
        top: 22px;
        left: 65px;
        height: 25px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 25px;
    }
}

/* ===== FOOTER CSS ===== */
footer {
    position: relative;
    z-index: 1;
    padding: 2rem 2rem 2rem;
    text-align: center;
    background: transparent;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 2px;
    background: linear-gradient(90deg,
        #2D47FB 0%,
        #43C653 20%,
        #F7D307 40%,
        #F72C2C 60%,
        #A347D1 100%);
    opacity: 0.6;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #6B7280;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #6B7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #2D47FB;
    transform: translateY(-1px);
}

.footer-separator {
    color: #D1D5DB;
    user-select: none;
}

.footer-pipe {
    display: initial;
}

.footer-new-line-text {
    display: initial;
}

/* ===== RESPONSIVE - MOBIL ===== */
@media (max-width: 768px) {
    /* HEADER MOBIL */
    header {
        position: absolute;
    }

    .mobile-menu {
        background: #FFFFFF;
    }

    /* FOOTER MOBIL */
    .footer-separator {
        display: none;
    }

    .footer-pipe {
        display: none !important;
    }

    .footer-new-line-text {
        display: block !important;
    }

    .footer-content {
        gap: 1rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .footer-links {
        gap: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .footer-link {
        padding: 0.5rem 0;
    }

    .footer-link:last-child {
        border-bottom: none;
    }
}