/* =========================================================
   VEROLX — TELJES STYLE.CSS
   Light mode + Dark mode + Xmas mode
   Hóesés, fényfüzér, stabil karácsonyi keret
   ========================================================= */

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- LIGHT MODE (DEFAULT) ---------- */
:root {
    --bg-main: #f1f5f9;
    --bg-alt: #e5e7eb;
    --card-bg: #ffffff;
    --accent-orange: #f97316;
    --accent-blue: #2563eb;
    --text-main: #0f172a;
    --text-muted: #4b5563;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --header-bg: rgba(241, 245, 249, 0.9);
    --hero-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.1));
    --page-bg: linear-gradient(180deg, #f1f5f9 0%, #e5e7eb 40%, #f8fafc 100%);
}

/* ---------- DARK MODE VÁLTOZÓK ---------- */
body.dark-mode {
    --bg-main: #020617;
    --bg-alt: #020617;
    --card-bg: #020617;
    --accent-orange: #f97316;
    --accent-blue: #3b82f6;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --header-bg: rgba(15, 23, 42, 0.9);
    --hero-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(249, 115, 22, 0.2));
    --page-bg: radial-gradient(circle at top, #0f172a 0%, #020617 60%, #000 100%);
}

/* Háttér-animáció dark módban */
@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 100%;
    }
}

/* Hero overlay enyhe pulzálás */
@keyframes heroPulse {
    0% {
        opacity: 0.85;
    }
    50% {
        opacity: 0.96;
    }
    100% {
        opacity: 0.9;
    }
}

/* Scroll reveal animáció (ha használod JS-ben) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- BODY ---------- */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--page-bg);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.7s ease, color 0.3s ease;
}

body.dark-mode {
    background-size: 200% 200%;
    animation: gradientShift 24s ease-in-out infinite alternate;
}

/* ---------- NAVBAR ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    position: relative; /* kell a Mikulás sapkának */
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--accent-orange);
}

/* ---------- Santa Hat a logón ---------- */
.santa-hat {
    position: absolute;
    width: 28px;
    top: -12px;
    left: 58px;
    transform: rotate(-18deg);
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.45));
}

/* ---------- Téma váltó gomb ---------- */

.theme-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
    background: rgba(148, 163, 184, 0.16);
    transform: translateY(-1px);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* alap: light */
.theme-toggle[data-theme="light"] .icon-sun {
    opacity: 1;
    transform: scale(1);
}
.theme-toggle[data-theme="light"] .icon-moon {
    opacity: 0;
    transform: scale(0.3);
}

/* dark */
.theme-toggle[data-theme="dark"] .icon-sun {
    opacity: 0;
    transform: scale(0.3);
}
.theme-toggle[data-theme="dark"] .icon-moon {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Xmas toggle gomb ---------- */

.xmas-toggle {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    background: rgba(248, 250, 252, 0.85);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.dark-mode .xmas-toggle {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.xmas-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15,23,42,0.35);
}

/* ---------- Hamburger ---------- */

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
    margin: 4px 0;
    transition: background 0.3s ease;
}

/* ---------- Nav linkek ---------- */

.nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.16);
}

/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.2rem;
    overflow: hidden;

    /* IDE TEDD A SAJÁT BANNERED ÚTJÁT */
    background-image: url("images/verolex-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    backdrop-filter: blur(2px);
    animation: heroPulse 18s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--text-main);
}

body.dark-mode .hero h1 {
    color: #f9fafb;
}

.hero h1 span {
    color: var(--accent-orange);
}

.hero-subtitle {
    max-width: 650px;
    margin: 0 auto 1.8rem auto;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* ---------- LIVE STATUS ---------- */

.status-pill {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.status-online .status-dot {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.status-offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
}

.status-extra {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- GOMBOK ---------- */

.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn.primary {
    background: var(--accent-blue);
    color: #f9fafb;
    border: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.5);
}

.btn.secondary {
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.7);
}

body.dark-mode .btn.secondary {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.btn.secondary:hover {
    background: rgba(148, 163, 184, 0.25);
}

/* ---------- SECTIONS ---------- */

.section {
    padding: 3.5rem 1.2rem;
}

.section-alt {
    background: var(--bg-alt);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}

.section-intro {
    max-width: 650px;
    color: var(--text-muted);
    margin: 0 auto 2rem auto;
}

/* ---------- CARDS ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 0.9rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    text-align: left;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-orange);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.5);
}

.card h3 {
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* News meta (index News szekcióhoz) */
.news-meta {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

/* STAFF GRID */
.card-grid-staff {
    margin-top: 0.5rem;
}

/* KAPCSOLAT */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FOOTER */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    padding: 1rem;
}

.footer-inner {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- BLOG OLDAL ---------- */

/* Blog hero */
.blog-hero {
    padding: 4rem 1.2rem 2.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-subtle);
}

.blog-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(148, 163, 184, 0.08);
    margin-bottom: 0.9rem;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.blog-hero-subtitle {
    max-width: 650px;
    margin: 0.5rem auto 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Blog lista */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.blog-post {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.25s ease;
}

.blog-post:hover {
    transform: translateY(-3px);
    border-color: var(--accent-orange);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.blog-post-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--accent-blue);
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.post-separator {
    opacity: 0.6;
}

.post-tag {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-post-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.blog-post-content p:last-child {
    margin-bottom: 0;
}

/* Mobil finomítások a bloghoz */
@media (max-width: 900px) {
    .section {
        padding: 3rem 1.1rem;
    }
}

/* ---------- MOBIL NAV, HERO, BLOG ---------- */

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 0.5rem 1.2rem 0.8rem;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 0.45rem 0.4rem;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 5rem;
    }

    .contact-actions .btn {
        width: 100%;
    }

    .blog-hero {
        padding-top: 3.5rem;
        padding-bottom: 2rem;
    }

    .blog-post {
        padding: 1.1rem 1.1rem;
    }
}

/* ========================================================= */
/*     🎄 KARÁCSONYI DESIGN (HÓ, FÉNYFÜZÉR, KERET, BANNER)   */
/* ========================================================= */

/* Karácsonyi glow fő elemekre */
.nav-logo,
.section h2,
.btn.primary,
.xmas-banner {
    text-shadow:
        0 0 12px rgba(255, 80, 80, 0.6),
        0 0 24px rgba(255, 150, 40, 0.5);
}

/* 🎄 Stabil karácsonyi keret */
.christmas-frame {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;

    /* Keret mögötti fény */
    box-shadow:
        inset 0 0 22px rgba(255, 0, 80, 0.35),
        inset 0 0 44px rgba(255, 180, 40, 0.25),
        inset 0 0 10px rgba(255, 255, 255, 0.25);

    /* Keret szélek */
    border: 12px solid transparent;
    border-image: linear-gradient(
        90deg,
        #ff4d4d,
        #ffb84d,
        #ff4d4d
    ) 1;

    animation: christmasFramePulse 3s infinite alternate;
    opacity: 0.8;
}

/* Finom pulzálás */
@keyframes christmasFramePulse {
    0% { opacity: 0.75; box-shadow: inset 0 0 24px rgba(255, 0, 70, 0.3); }
    100% { opacity: 1; box-shadow: inset 0 0 28px rgba(255, 150, 40, 0.4); }
}

/* Mobil barát keret */
@media (max-width: 600px) {
    .christmas-frame {
        border-width: 8px;
    }
}

/* ============================== */
/*     ❄️ HÓESÉS ANIMÁCIÓ        */
/* ============================== */

.snow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 9997;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    opacity: 0.9;
    font-size: 0.8rem;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    user-select: none;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
}

@keyframes snowfall {
    from {
        transform: translateY(-10vh) translateX(0);
    }
    to {
        transform: translateY(110vh) translateX(35px);
    }
}


/* ---------- Fényfüzér a lap tetején ---------- */
.lightrope {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.4rem 0.8rem 0.8rem;
    margin: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 9999;
}

.lightrope li {
    list-style: none;
    width: 12px;
    height: 24px;
    background: red;
    border-radius: 50%;
    margin: 0 6px;
    animation: blink 1.4s infinite alternate;
    box-shadow: 0 0 12px rgba(255,50,50,0.8);
}

.lightrope li:nth-child(3n) {
    background: yellow;
    box-shadow: 0 0 12px rgba(255,255,100,0.8);
}
.lightrope li:nth-child(3n+1) {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(80,255,80,0.8);
}
.lightrope li:nth-child(3n+2) {
    background: #38bdf8;
    box-shadow: 0 0 12px rgba(80,255,255,0.8);
}

@keyframes blink {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ---------- Karácsonyi Banner a hero tetején ---------- */
.xmas-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 20, 60, 0.85);
    padding: 0.45rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(6px);
    animation: bannerPulse 3s infinite alternate;
    border: 1px solid rgba(255,255,255,0.55);
    z-index: 2;
}

@keyframes bannerPulse {
    0% { box-shadow: 0 0 12px rgba(255,80,80,0.4); }
    100% { box-shadow: 0 0 24px rgba(255,120,120,0.75); }
}

/* Karácsonyi plusz glow kártyákra */
.card:hover {
    box-shadow:
        0 0 22px rgba(255, 0, 80, 0.4),
        0 0 30px rgba(255, 180, 40, 0.35);
}

/* ---------- Zene gomb (kis csengő) ---------- */
.music-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(15,23,42,0.85);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(15,23,42,0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.2s ease;
}

.music-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(15,23,42,0.9);
    background: rgba(30,64,175,0.95);
}

/* ---------- Xmas Mode – extra háttér és fagyos effekt ---------- */
body.xmas-mode:not(.dark-mode) {
    background-image: radial-gradient(circle at center, #ffeedb 0%, #ffcab0 40%, #ffb08c 80%);
}

body.xmas-mode .hero-overlay {
    backdrop-filter: blur(4px) brightness(1.3);
    background: linear-gradient(
        180deg,
        rgba(15,23,42,0.85),
        rgba(220, 38, 38, 0.75),
        rgba(249,115,22,0.8)
    );
}

/* Hero tartalom kis ünnepi „fény” */
body.xmas-mode .hero-content {
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* Mobilon finomabb fényfüzér / keret / csengő */
@media (max-width: 600px) {
    .christmas-frame {
        border-width: 9px;
    }

    .lightrope {
        padding: 0.2rem 0.5rem 0.4rem;
    }

    .lightrope li {
        width: 10px;
        height: 18px;
        margin: 0 4px;
    }

    .music-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Dark módban kicsit visszafogottabb keret */
body.dark-mode .christmas-frame {
    box-shadow:
        inset 0 0 22px rgba(255, 0, 80, 0.2),
        inset 0 0 44px rgba(255, 180, 40, 0.15);
    opacity: 0.65;
}

body.dark-mode .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.45)
    ) !important;
}
