/* Alapstílusok és Reset */
:root {
    --gold-main: #FFD700;
    --gold-darker: #B8860B;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --gold-transparent: rgba(255, 215, 0, 0.1);
    --dark-bg: #121212;
    --dark-bg-secondary: #1a1a1a;
    --text-light: #f0f0f0;
    --text-medium: #cccccc;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --transition-fast: 0.3s ease-out;
    --transition-medium: 0.5s ease-out;
    --header-height: 70px; /* Alapértelmezett, JS frissíti */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}
body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}
body.loading { overflow: hidden; }

/* === NYELVVÁLTÁS VILLANÁSÁNAK MEGAKADÁLYOZÁSA === */
body.is-translating [data-translate-key],
body.is-translating [data-translate-alt] {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* === PRELOADER STÍLUSOK === */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark-bg); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.7s ease-out 0.3s, visibility 0.7s ease-out 0.3s; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-icon { font-size: 5rem; color: var(--gold-main); text-shadow: 0 0 15px var(--gold-glow); animation: pulseGold 1.5s infinite ease-in-out; }
#preloader p { margin-top: 20px; color: var(--text-medium); font-size: 1.1rem; letter-spacing: 1px; }
@keyframes pulseGold { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }

/* Konténer és Alapok */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--gold-main); margin-bottom: 0.8em; text-shadow: 0 0 5px var(--gold-glow); }
h2 { font-size: 2rem; text-align: center; margin-bottom: 1.5em; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; color: var(--gold-darker); margin-top: 0.5em; }
p { margin-bottom: 1em; color: var(--text-medium); }
a { color: var(--gold-main); text-decoration: none; transition: color var(--transition-fast), text-shadow var(--transition-fast); }
a:hover { color: white; text-shadow: 0 0 8px var(--gold-glow); }
section { padding: 80px 0; border-bottom: 1px solid var(--gold-transparent); }
section:last-of-type { border-bottom: none; }

/* === Fejléc === */
.site-header {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.6);
    transition: top 0.3s ease-in-out;
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: 12px;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between;}
.logo-only { display: flex; align-items: center; flex-shrink: 0; }
.logo-only .tournament-icon { font-size: 2.3rem; color: var(--gold-main); text-shadow: 0 0 8px var(--gold-glow); }

.nav-toggle { display: none; background: transparent; border: none; padding: 0.5em; margin: 0; cursor: pointer; z-index: 1001; }
.hamburger-icon { display: block; position: relative; width: 28px; height: 3px; background-color: var(--gold-main); border-radius: 3px; transition: all 0.3s ease-in-out;}
.hamburger-icon::before,
.hamburger-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background-color: var(--gold-main); border-radius: 3px; transition: all 0.3s ease-in-out;}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px;  }
.nav-open .hamburger-icon { background-color: transparent; }
.nav-open .hamburger-icon::before { transform: translateY(8px) rotate(45deg); }
.nav-open .hamburger-icon::after { transform: translateY(-8px) rotate(-45deg); }

.site-header nav.site-navigation { flex-grow: 1; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gold-darker) var(--dark-bg-secondary); margin: 0 10px; }
.site-header nav.site-navigation::-webkit-scrollbar { height: 5px; }
.site-header nav.site-navigation::-webkit-scrollbar-thumb { background-color: var(--gold-darker); border-radius: 10px; }
.site-header nav.site-navigation::-webkit-scrollbar-track { background: var(--dark-bg-secondary); }

.site-header nav.site-navigation ul { list-style: none; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; flex-wrap: nowrap; width: 100%; }
.site-header nav.site-navigation ul li { margin: 0 5px; }
.site-header nav.site-navigation ul li a { font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; font-size: 0.85rem; position: relative; padding: 10px 12px; white-space: nowrap; display: block; }
.site-header nav.site-navigation ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--gold-main); transition: width var(--transition-fast); }
.site-header nav.site-navigation ul li a:hover::after { width: 100%; }

/* === HERO SZEKCIÓ (JAVÍTOTT) === */
#hero { 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: center; 
    position: relative; 
    padding-top: var(--header-height);
    padding-bottom: 20px;
    border-bottom: none; 
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2c1e00 30%, #1a0f00 70%, var(--dark-bg) 100%); 
    background-size: 400% 400%; 
    animation: animatedGradient 20s ease infinite; 
    overflow: hidden; 
}
#hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('chess.jpg'); background-size: cover; background-position: center; opacity: 0.35; z-index: 1; }
@keyframes animatedGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)); z-index: 2; }
.hero-content { 
    position: relative; 
    z-index: 3;
}
.hero-main-title { font-family: var(--font-heading); font-size: 3.8rem; font-weight: 700; color: white; text-shadow: 0 0 25px var(--gold-main), 0 0 12px rgba(0,0,0,0.8); margin-bottom: 0.1em; line-height: 1.15; letter-spacing: 1px; text-transform: uppercase; padding: 0 10px; }
.hero-subtitle { font-family: var(--font-heading); font-size: 2.2rem; color: var(--gold-main); text-shadow: 0 0 10px rgba(0,0,0,0.5); margin-bottom: 0.8em; letter-spacing: 0.5px; text-transform: uppercase; }
.hero-content .date { font-size: 1.8rem; color: var(--text-light); margin-bottom: 1.5em; font-weight: 400; }
#countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; font-size: 1.5rem; color: var(--text-light); }
#countdown div { background-color: rgba(0,0,0,0.6); padding: 10px 15px; border-radius: 5px; border: 1px solid var(--gold-darker); box-shadow: 0 0 10px rgba(0,0,0,0.3) inset; min-width: 90px; text-align: center; }
#countdown span:first-child { font-size: 2.5rem; font-family: var(--font-heading); color: var(--gold-main); display: block; font-weight: 700; }
.hero-prize-info { font-size: 1.4rem; font-weight: 700; color: var(--gold-main); background-color: rgba(0, 0, 0, 0.5); padding: 10px 20px; border-radius: 5px; display: inline-block; margin: 2em auto; text-shadow: 0 1px 3px rgba(0,0,0,0.7); border: 1px solid var(--gold-transparent); }
.hero-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.hero-cta-buttons .cta-button { margin-bottom: 10px; }
.cta-button { display: inline-block; background-color: var(--gold-main); color: var(--dark-bg); padding: 15px 35px; font-size: 1.2rem; font-weight: bold; text-transform: uppercase; border-radius: 5px; text-decoration: none; transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); box-shadow: 0 5px 20px rgba(255, 215, 0, 0.35); letter-spacing: 1px; display: inline-flex; align-items: center; justify-content: center; }
.cta-button:hover { background-color: var(--gold-darker); color: white; transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.55); }
.cta-button.secondary { background-color: transparent; border: 2px solid var(--gold-main); color: var(--gold-main); box-shadow: none; }
.cta-button.secondary:hover { background-color: var(--gold-main); color: var(--dark-bg); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
.cta-button i { margin-right: 8px; font-size: 1.05em; }
.hero-cta-buttons .social-cta.facebook-cta { background-color: #3b5998; color: white; border: 2px solid #3b5998; }
.hero-cta-buttons .social-cta.facebook-cta:hover { background-color: #2d4373; color: white; border-color: #2d4373; box-shadow: 0 5px 15px rgba(59, 89, 152, 0.4); }
.hero-gm-info { font-size: 0.95rem; color: var(--text-light); margin-top: 25px; padding: 0 20px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; font-style: italic; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.animate-on-load { opacity: 0; transform: translateY(30px); }
.animate-on-load.start-animation { animation: fadeInUp 0.8s var(--transition-medium) forwards; }
.animate-on-load.delay-1.start-animation { animation-delay: 0.3s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Táblázatok (Program) */
#schedule table { width: 100%; border-collapse: collapse; margin-bottom: 1em; box-shadow: 0 0 15px rgba(0,0,0,0.3); border-radius: 5px; overflow: hidden; }
#schedule th, #schedule td { padding: 12px 15px; text-align: center; border-bottom: 1px solid var(--gold-transparent); }
#schedule th { background-color: rgba(184, 134, 11, 0.25); color: var(--gold-main); font-family: var(--font-heading); text-transform: uppercase; font-weight: 700; }
#schedule tbody tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.02); }
#schedule tbody tr:hover { background-color: rgba(184, 134, 11, 0.15); }
.small-print { font-size: 0.9rem; color: var(--text-medium); text-align: center; margin-top:1em; }

/* KÁRTYA STÍLUSOK */
.info-card { background: var(--dark-bg-secondary); padding: 25px; border-radius: 10px; border: 1px solid var(--gold-transparent); box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); position: relative; display: flex; flex-direction: column; }
.info-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 25px rgba(0,0,0,0.3), 0 0 20px var(--gold-glow); border-color: var(--gold-darker); }
.info-card::after { content: ''; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, rgba(255,215,0,0) 60%); border-radius: 50%; transform: translate(-50%, -50%) scale(0); transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1); opacity: 0; z-index: 0; pointer-events: none; }
.info-card > * { position: relative; z-index: 1; }

/* === ÚJ, MODERNEBB ABOUT SZEKCIÓ STÍLUSOK === */
.about-layout.modern-about-layout { display: flex; background-color: var(--dark-bg-secondary); padding: 25px; border-radius: 10px; border: 1px solid var(--gold-transparent); box-shadow: 0 5px 15px rgba(0,0,0,0.2); gap: 25px; margin-top: 1.5rem; align-items: flex-start; }
.modern-about-layout .image-column { flex: 0 0 250px; position: relative; }
.modern-about-layout .image-wrapper { position: relative; border-radius: 8px; overflow: hidden; width: 100%; }
.modern-about-layout .image-wrapper::before { content: ''; position: absolute; top: -10px; left: -10px; width: 70px; height: 70px; background-color: var(--gold-main); opacity: 0.2; border-radius: 6px; transform: rotate(15deg); z-index: 0; transition: transform 0.3s ease-out, opacity 0.3s ease-out; }
.modern-about-layout .image-column:hover .image-wrapper::before { transform: rotate(8deg) scale(1.1); opacity: 0.35; }
.modern-about-layout .jolanta-portrait { display: block; width: 100%; height: auto; border-radius: 8px; position: relative; z-index: 1; }
.modern-about-layout .text-column { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.modern-about-layout .text-column p { font-size: 1rem; color: var(--text-medium); line-height: 1.7; margin-bottom: 1em; text-align: justify; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }
@media (max-width: 860px) { .about-layout.modern-about-layout { flex-direction: column; align-items: center; padding: 20px; } .modern-about-layout .image-column { flex-basis: auto; width: 100%; max-width: 300px; margin-bottom: 25px; } .modern-about-layout .text-column { text-align: left; } .modern-about-layout .text-column h3 { text-align: center; } }

/* === VERSENYRÉSZLETEK SZEKCIÓ (JAVÍTOTT GRID) === */
.details-grid { display: grid; gap: 20px; align-items: stretch; grid-template-columns: 1fr; }
#details .info-card { padding: 20px; }
#details .map-card { padding: 15px; display: flex; flex-direction: column; justify-content: space-between; }
#details .map-card h4 { margin-bottom: 0.5em; }
#details-leaflet-map { height: 250px; width: 100%; border-radius: 8px; border: 1px solid var(--gold-transparent); background-color: #333; margin-bottom: 1em; }
.map-route-button { padding: 10px 15px !important; font-size: 0.9rem !important; width: auto; align-self: center; margin-top: 0; }
.map-route-button i { margin-right: 8px; }
#details .details-card h4 { margin-bottom: 0.8em; text-align: center; font-size: 1.15rem; }
.styled-list { list-style: none; padding-left: 0; margin-top: 0.3em; }
.styled-list li { display: flex; align-items: baseline; padding: 6px 0; color: var(--text-medium); font-size: 0.9rem; line-height: 1.6; border-bottom: 1px dashed var(--gold-transparent); }
.styled-list li:last-child { border-bottom: none; }
.styled-list li i { color: var(--gold-main); margin-right: 10px; font-size: 1em; width: 18px; text-align: center; padding-top: 1px; flex-shrink: 0; }
.styled-list li strong { margin-right: 0.4em; flex-shrink: 0; color: var(--text-light); }
.tiebreak-heading { font-family: var(--font-main); color: var(--gold-main); font-size: 0.95rem; font-weight: bold; margin-top: 1em; margin-bottom: 0.4em; text-align: left; }
.tiebreak-sublist { margin-top: 0.1em; padding-left: 0; }
.location-info-card .air-conditioned-info { margin-top: 1em; font-size: 0.85rem; font-style: italic; color: var(--text-medium); text-align: left; padding-left: calc(18px + 10px); }

/* === NEVEZÉS ÉS DÍJAZÁS SZEKCIÓ - KÁRTYÁK TARTALMA === */
#registration .info-card { padding: 20px; display: flex; flex-direction: column; }
#registration .info-card h4 { text-align: center; margin-bottom: 1em; font-size: 1.15rem; flex-shrink: 0; }
.registration-intro-card { justify-content: space-between; }
.registration-intro-card p { font-size: 0.9rem; text-align: center; margin-bottom: 1em; }
.registration-intro-card .cta-button { align-self: stretch; margin-top: auto; margin-bottom: auto; max-width: 250px; margin-left: auto; margin-right: auto; }
#registration .prize-category { font-family: var(--font-main); color: var(--gold-main); font-size: 0.95rem; font-weight: bold; margin-top: 0.8em; margin-bottom: 0.4em; text-align: center; }
#registration .info-card > div > .prize-category:first-of-type { margin-top: 0; }
#registration .entry-fees ul.styled-list, #registration .main-prizes ul.styled-list, #registration .special-prizes ul.styled-list { display: flex; flex-direction: column; align-items: center; padding-left: 0; width: 100%; margin-top: 0.3em; }
#registration .entry-fees .styled-list li, #registration .main-prizes .styled-list li, #registration .special-prizes .styled-list li { width: max-content; min-width: 220px; max-width: 100%; }
#registration .entry-fees .styled-list li span, #registration .main-prizes .styled-list li span, #registration .special-prizes .styled-list li span { text-align: left; }
#registration .special-prizes ul.styled-list li:not(:has(strong)) { justify-content: center; text-align: center; min-width: auto; }
#registration .entry-fees p { margin-top: 1.5em; font-size: 0.9rem; text-align: center; }
#registration .registration-grid { display: grid; gap: 20px; align-items: stretch; grid-template-columns: 1fr; }

/* HASZNOS INFORMÁCIÓK - GRID LAYOUT */
#practicalities .practicalities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
#practicalities .info-card { padding: 20px; }
#practicalities .info-card h4 { font-size: 1.15rem; display: flex; align-items:center; justify-content: center; }
#practicalities .info-card h4 i { margin-right: 10px; font-size: 1em; color: var(--gold-main); }

/* Partnerek */
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 25px; }
.interactive-logo.partner-cta { background-color: var(--dark-bg-secondary); color: var(--gold-main); padding: 15px 20px; border: 1px solid var(--gold-transparent); min-width: 200px; max-width: 260px; text-align: center; transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast); border-radius: 5px; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; }
.interactive-logo.partner-cta:hover { transform: translateY(-5px) scale(1.03); background-color: var(--gold-main); color: var(--dark-bg); border-color: var(--gold-darker); box-shadow: 0 6px 18px rgba(255, 215, 0, 0.3); }
.interactive-logo.partner-cta img { max-width: 100%; height: 60px; object-fit: contain; margin-bottom: 10px; }
.interactive-logo.partner-cta span { font-size: 0.9rem; font-weight: 500; line-height: 1.3; display: block; }

/* === KAPCSOLAT SZEKCIÓ - ÚJ STRUKTÚRA === */
#contact h2 { margin-bottom: 1.2em; }
.contact-details-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-bottom: 2.5em; }
.contact-person { background-color: var(--dark-bg-secondary); padding: 25px; border-radius: 8px; border: 1px solid var(--gold-transparent); flex: 1; min-width: 280px; max-width: 400px; text-align: center; }
.contact-person .contact-role { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gold-main); margin-bottom: 0.3em; display: flex; align-items: center; justify-content: center; }
.contact-person .contact-role i { margin-right: 10px; font-size: 1.2em; }
.contact-person .contact-name { font-size: 1.3rem; color: var(--text-light); font-weight: bold; margin-bottom: 0.8em; }
.contact-person .contact-info { display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: var(--text-medium); margin-bottom: 0.5em; line-height: 1.5; }
.contact-person .contact-info:last-of-type { margin-bottom: 0; }
.contact-person .contact-info i { color: var(--gold-darker); margin-right: 10px; width: 18px; text-align: center; }
.contact-person .contact-info i.whatsapp-icon { color: #25D366; font-size: 1.1em; }
.contact-person .contact-info a { color: var(--text-light); word-break: break-all; }
.contact-person .contact-info a:hover { color: var(--gold-main); }
.contact-actions { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.contact-actions .cta-button { min-width: 200px; padding: 12px 25px; font-size: 1.1rem; }
#contact .contact-actions .cta-button.social-cta.facebook-cta { background-color: #3b5998; color: white; border: 2px solid #3b5998; }
#contact .contact-actions .cta-button.social-cta.facebook-cta:hover { background-color: #2d4373; color: white; border-color: #2d4373; box-shadow: 0 5px 15px rgba(59, 89, 152, 0.4); }

/* === GALLERY (with Nav Arrows) === */
#gallery { background-color: var(--dark-bg); }
.gallery-wrapper { position: relative; padding: 0 40px; }
.gallery-container { display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 15px; padding: 5px 0; -ms-overflow-style: none; scrollbar-width: none; }
.gallery-container::-webkit-scrollbar { display: none; }
.gallery-item { display: block; overflow: hidden; border-radius: 8px; border: 2px solid var(--gold-transparent); transition: transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out; cursor: pointer; flex-shrink: 0; width: 250px; height: 180px; }
.gallery-item:hover { transform: scale(1.05); border-color: var(--gold-main); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease-out; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background-color: rgba(0, 0, 0, 0.6); color: white; border: none; border-radius: 50%; width: 45px; height: 45px; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.2s, opacity 0.2s; opacity: 0.7; }
.gallery-nav-btn:hover { background-color: var(--gold-main); color: var(--dark-bg); transform: translateY(-50%) scale(1.1); opacity: 1; }
.gallery-prev { left: -10px; }
.gallery-next { right: -10px; }

/* === LIGHTBOX === */
#lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 2000; display: none; justify-content: center; align-items: center; padding: 20px; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { position: relative; text-align: center; max-width: 90vw; max-height: 90vh; }
#lightbox-image { max-width: 100%; max-height: 85vh; border-radius: 5px; box-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
#lightbox-caption { color: var(--text-light); margin-top: 15px; font-size: 1rem; font-style: italic; }
.lightbox-close, #lightbox-overlay .lightbox-prev, #lightbox-overlay .lightbox-next { position: absolute; color: white; font-size: 3rem; font-weight: bold; cursor: pointer; transition: color 0.2s; user-select: none; z-index: 2001; }
.lightbox-close:hover, #lightbox-overlay .lightbox-prev:hover, #lightbox-overlay .lightbox-next:hover { color: var(--gold-main); }
.lightbox-close { top: 15px; right: 35px; }
#lightbox-overlay .lightbox-prev, #lightbox-overlay .lightbox-next { top: 50%; transform: translateY(-50%); background: none; border:none; }
#lightbox-overlay .lightbox-prev { left: 20px; }
#lightbox-overlay .lightbox-next { right: 20px; }

/* === FLOATING LANGUAGE SELECTOR (JAVÍTOTT) === */
.floating-lang-selector { position: fixed; top: 85px; left: 25px; z-index: 1005; }
.floating-lang-toggle-btn { background-color: var(--dark-bg-secondary); color: var(--gold-main); border: 1px solid var(--gold-transparent); border-radius: 25px; height: 45px; padding: 0 18px; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,0.3); transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease-out, color 0.2s ease-out; }
.floating-lang-toggle-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.4); background-color: var(--gold-main); color: var(--dark-bg); }
.floating-lang-toggle-btn .fas.fa-globe { font-size: 1.1rem; margin-right: 8px; }
.floating-lang-toggle-btn .lang-code-display { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.floating-lang-menu { position: absolute; top: calc(100% + 8px); left: 0; background-color: var(--dark-bg-secondary); border: 1px solid var(--gold-darker); border-radius: 8px; box-shadow: 0px 5px 15px rgba(0,0,0,0.3); padding: 8px; width: max-content; min-width: 160px; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98); transform-origin: top left; transition: opacity 0.25s ease-out, visibility 0s linear 0.25s, transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1.2); z-index: 1004; }
.floating-lang-selector.open .floating-lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s, 0s, 0s; }
.floating-lang-menu .lang-btn { display: block; width: 100%; text-align: left; padding: 10px 15px; margin: 0; background-color: transparent; color: var(--text-light); border: none; border-radius: 5px; font-size: 0.9rem; cursor: pointer; transition: background-color 0.2s ease-out, color 0.2s ease-out; }
.floating-lang-menu .lang-btn + .lang-btn { border-top: 1px solid var(--gold-transparent); }
.floating-lang-menu .lang-btn:hover, .floating-lang-menu .lang-btn.active { background-color: var(--gold-main); color: var(--dark-bg); }
.floating-lang-menu .lang-btn.active { font-weight: bold; }
.floating-lang-menu .lang-btn.active::after { content: '✔'; float: right; color: var(--dark-bg); margin-left: 10px; }

/* Lábléc */
.site-footer-inner { background-color: #101010; color: var(--text-medium); text-align: center; font-size: 0.9rem; border-top: 3px solid var(--gold-darker); padding-top: 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-footer-inner p { margin-bottom: 0.5em; }
.site-footer-inner a { color: var(--gold-darker); font-weight: bold; }
.site-footer-inner a:hover { color: var(--gold-main); }

/* SCROLL ANIMÁCIÓK (CSS Alapú) */
.scroll-animate { opacity: 0; transform: translateY(60px); transition: opacity 0.8s var(--transition-medium), transform 0.8s var(--transition-medium); }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }

/* Reszponzivitás - ÁLTALÁNOS */
@media (max-width: 1200px) { .hero-main-title { font-size: 3rem; } .hero-subtitle { font-size: 1.8rem; } .site-header nav.site-navigation ul li a { padding: 10px 8px; font-size: 0.8rem;} }

@media (min-width: 768px) and (max-width: 1023px) { 
    .registration-grid { grid-template-columns: repeat(2, 1fr); } 
    .gallery-prev { left: 10px; } 
    .gallery-next { right: 10px; } 
    
    #details .details-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "location license"
            "map map"
            "format rules";
    }
    #details .location-info-card { grid-area: location; }
    #details .info-card:nth-child(5) { grid-area: license; }
    #details .map-span-two { grid-area: map; }
    #details .info-card:nth-child(3) { grid-area: format; }
    #details .info-card:nth-child(4) { grid-area: rules; }
}

@media (min-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .details-grid > .info-card:first-child { grid-column: 1 / 2; } 
    .details-grid .map-span-two { grid-column: 2 / span 2; }
    #registration .registration-grid { grid-template-columns: repeat(3, 1fr); } 
}

@media (max-width: 991px) { 
    .site-header .container { flex-wrap: wrap; } 
    .site-header nav.site-navigation { display: none; order:3; width:100%; margin:10px 0 0 0; position: absolute; top: calc(100% - 12px); left: 0; right: 0; background-color: rgba(18, 18, 18, 0.98); backdrop-filter: blur(5px); flex-direction: column; align-items: center; padding: 0; border-top: 1px solid var(--gold-transparent); box-shadow: 0 5px 10px rgba(0,0,0,0.3); max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out, padding 0.35s ease-out, opacity 0.3s ease-out 0.05s; opacity: 0; } 
    .site-header nav.site-navigation.nav-active { display: flex; max-height: calc(100vh - var(--header-height)); opacity: 1; padding: 15px 0; overflow-y: auto; } 
    .site-header nav.site-navigation ul { flex-direction: column; width: 100%; gap: 0; } 
    .site-header nav.site-navigation ul li { margin: 0; width: 100%; text-align: center; border-bottom: 1px solid var(--gold-transparent); } 
    .site-header nav.site-navigation ul li:last-child { border-bottom: none; } 
    .site-header nav.site-navigation ul li a { padding: 12px 20px; font-size: 0.95rem; width: 100%; } 
    .site-header nav.site-navigation ul li a:hover::after { width: 0; } 
    .nav-toggle { display: block; margin-left: auto; } 
    #details .details-grid { grid-template-columns: 1fr; }
    #details .map-span-two, #details .location-info-card, #details .info-card:nth-child(5) { grid-area: auto; order: 0; grid-column: auto; }
}

@media (max-width: 767px) { 
    h2 { font-size: 1.8rem; } 
    section { padding: 50px 0; } 
    .hero-main-title { font-size: 2.3rem; } 
    .hero-subtitle { font-size: 1.4rem; } 
    .hero-content .date { font-size: 1.2rem; } 
    #countdown div { min-width: 65px; padding: 6px 8px;} 
    #countdown span:first-child { font-size: 1.8rem; } 
    .hero-prize-info { font-size: 1.1rem; padding: 8px 15px; } 
    .cta-button { font-size: 0.95rem; padding: 10px 20px; } 
    .partner-logos { gap: 15px; } 
    .interactive-logo.partner-cta { padding: 12px 15px; min-width: auto; max-width:180px; } 
    .interactive-logo.partner-cta img { height: 45px; margin-bottom: 8px;} 
    .interactive-logo.partner-cta span { font-size: 0.8rem;} 
    #details .info-card, #registration .info-card, #practicalities .info-card {padding: 15px;} 
    #details .details-card h4, #registration .info-card h4 { font-size: 1.1rem;} 
    .styled-list li, #registration .entry-fees ul.styled-list li {font-size: 0.85rem;} 
    #registration .main-prizes ul.styled-list li, #registration .special-prizes ul.styled-list li { font-size: 0.85rem; } 
    .tiebreak-heading, #registration .prize-category {font-size: 0.9rem;} 
    .tiebreak-sublist li {font-size: 0.8rem;} 
    #registration .registration-grid { grid-template-columns: 1fr; } 
    .contact-details-wrapper { gap: 20px; } 
    .contact-person { padding: 20px; min-width: 100%; } 
    
    .floating-lang-selector { top: 80px; left: 15px; bottom: auto; right: auto; }
    .floating-lang-toggle-btn { width: auto; min-width: 50px; height: 45px; font-size: 1rem; padding: 0 15px; }
    .floating-lang-menu { top: 55px; } 

    .gallery-wrapper { padding: 0; } 
    .gallery-nav-btn { width: 35px; height: 35px; font-size: 1rem; opacity: 1; } 
    .gallery-prev { left: 5px; } 
    .gallery-next { right: 5px; } 
    
    #schedule table { border: 0; box-shadow: none; } 
    #schedule table thead { display: none; } 
    #schedule table tr { display: block; margin-bottom: 1.5em; border: 1px solid var(--gold-transparent); border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,0.2); overflow: hidden; } 
    #schedule table td { display: block; text-align: right !important; padding-left: 45%; position: relative; border-bottom: 1px dashed var(--gold-transparent); padding-top: 10px; padding-bottom: 10px; } 
    #schedule table tr td:first-child { border-top-left-radius: 7px; border-top-right-radius: 7px; } 
    #schedule table tr td:last-child { border-bottom: none; border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; } 
    #schedule table td::before { content: attr(data-label); position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: calc(45% - 25px); padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; color: var(--gold-main); font-size: 0.8rem; } 
    #schedule .small-print { margin-top: 0; } 
}
@media (max-width: 576px) { 
    .container { width: 95%; padding: 0 10px; } 
    .hero-main-title { font-size: 1.8rem; } 
    .hero-subtitle { font-size: 1.2rem; } 
    .logo-only .tournament-icon { font-size: 1.8rem; } 
    .nav-toggle { margin-left: 10px;} 
    #countdown { gap: 8px; } 
    #countdown div { padding: 4px 6px; font-size: 0.75rem;} 
    #countdown span:first-child { font-size: 1.5rem; } 
    .modern-about-layout .image-column { width: 90%; max-width: 220px; } 
    .modern-about-layout .text-column p { font-size: 0.85rem; } 
    .hero-cta-buttons .cta-button, .contact-actions .cta-button { min-width: 100%; font-size:0.9rem; padding: 10px 15px;} 
    .hero-cta-buttons .cta-button:not(:last-child), .contact-actions .cta-button:not(:last-child) { margin-bottom: 10px; } 
    .hero-gm-info {font-size: 0.85rem; margin-top: 15px;} 
    #details-leaflet-map { height: 200px; } 
    .location-info-card .air-conditioned-info { padding-left: 0; text-align: center;} 
    #registration .entry-fees .styled-list li, #registration .main-prizes .styled-list li, #registration .special-prizes .styled-list li { min-width: 90%; } 
    .floating-lang-toggle-btn { height: 40px; font-size: 0.9rem; padding: 0 12px; } 
    .floating-lang-toggle-btn .fas.fa-globe { font-size: 1rem; margin-right: 5px;} 
    .floating-lang-toggle-btn .lang-code-display { font-size: 0.8rem;} 
    .floating-lang-menu { top: 50px; left:15px; right:auto; min-width: 120px;} 
    .floating-lang-menu .lang-btn { padding: 8px 10px; font-size: 0.85rem;} 
}