/* 
    Győri PLE - Premium CSS 
    Design Aesthetic: Dark royal blue, serif headings, sans-serif body, tágas elrendezés
*/

:root {
    /* Colors */
    --color-primary: #0a1f44;
    /* Dark Royal Blue */
    --color-primary-light: #16366f;
    --color-secondary: #d4af37;
    /* Elegant Gold */
    --color-secondary-hover: #b5952f;
    --color-bg: #f8f9fa;
    --color-bg-light: #ffffff;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    --color-success: #38a169;
    --color-error: #e53e3e;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Variables */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(10, 31, 68, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(10, 31, 68, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-secondary);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-white {
    color: var(--color-white) !important;
}

.text-white::after {
    background-color: var(--color-white) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Nav */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 15px 0;
}

.desktop-nav.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* Mobile Nav is hidden, using simple scroll */
@media (max-width: 768px) {
    .desktop-nav .nav-links {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.9) 0%, rgba(10, 31, 68, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-emblem {
    width: 250px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-title {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-contact {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-contact .subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* Lehetőségek (Services) Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-top-color: var(--color-secondary);
}

.service-card.highlight {
    border-top-color: var(--color-secondary);
    background: linear-gradient(to bottom, #ffffff, #fdfbf7);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.alert-box {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--color-secondary);
    font-size: 0.9rem;
    border-radius: 0 4px 4px 0;
}

.exclusion-notice {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 40px;
}

.exclusion-notice h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.exclusion-notice a {
    color: var(--color-secondary);
    text-decoration: underline;
    font-weight: 600;
}

/* Edzések (Training) Section */
.training-schedule-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.schedule-item {
    text-align: center;
    padding: 0 40px;
}

.schedule-item .day {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.schedule-item .time {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
}

.training-schedule-banner .divider {
    width: 2px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .training-schedule-banner {
        flex-direction: column;
        gap: 20px;
    }

    .training-schedule-banner .divider {
        width: 60px;
        height: 2px;
    }

    .schedule-item {
        padding: 0 20px;
    }
}

/* Calendar Styles */
.calendar-container {
    width: 100%;
    margin-top: 30px;
}

/* Desktop Table View */
.desktop-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.desktop-table th {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
}

.desktop-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
}

.desktop-table tr:last-child td {
    border-bottom: none;
}

.desktop-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-edzes {
    background-color: #e2e8f0;
    color: #4a5568;
}

.badge-verseny {
    background-color: rgba(212, 175, 55, 0.15);
    color: #b5952f;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-szunnap {
    background-color: #fed7d7;
    color: #c53030;
}

.badge-evzaro {
    background-color: #c6f6d5;
    color: #2f855a;
}

/* Mobile Card View (Cards for Calendar) */
.mobile-cards {
    display: none;
    grid-template-columns: 1fr;
    gap: 15px;
}

.calendar-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-card.is-verseny {
    border-left-color: var(--color-secondary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.card-day {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.card-leader {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .desktop-table {
        display: none;
    }

    .mobile-cards {
        display: grid;
    }
}

/* Versenyeink Section */
.with-bg {
    position: relative;
    color: var(--color-white);
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.with-bg .overlay.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 31, 68, 0.85);
    /* Halványítás */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    /* Szemcsés hatás hozzáadása */
}

.relative-content {
    position: relative;
    z-index: 2;
}

.competitions-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary) !important;
    margin-bottom: 15px;
}

.mt-4 {
    margin-top: 2rem;
}

/* Galéria Section */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.gallery-event {
    margin-bottom: 20px;
}

.gallery-event-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Hírek (News) Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--color-secondary);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.news-date {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.news-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.news-content {
    color: var(--color-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.empty-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--color-text-light);
    font-style: italic;
}

.text-center {
    text-align: center;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Fixed Back Button for Subpages */
.fixed-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.fixed-back-btn:hover {
    background-color: var(--color-secondary);
    transform: scale(1.1);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .fixed-back-btn {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* Kapcsolat Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-link {
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-map {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-map h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 4px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* UI Elements */

/* Szezonális Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal-title {
    color: var(--color-error);
    margin-bottom: 15px;
}

.modal-ok {
    margin-top: 25px;
    width: 100%;
}

.progress-bar-container {
    height: 4px;
    background: var(--color-border);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: var(--color-secondary);
    transform-origin: left;
}

/* Mobile Call Btn */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--color-success);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.4);
    z-index: 1000;
    transition: transform 0.2s;
}

.mobile-call-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mobile-call-btn {
        display: flex;
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 0.8;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    background-color: var(--color-secondary);
}

@media (max-width: 768px) {
    .back-to-top {
        right: auto;
        left: 20px;
        /* Mobilon balra tesszük, mert jobbra ott a hívásgomb */
    }
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    color: var(--color-text-light);
    font-style: italic;
}