/* /static/matches.css */

/* --- Alap stílusok és változók --- */
:root {
    --color-background: #111827; /* Világosabb, kékesebb sötét háttér */
    --color-surface: #1f2937;    /* Világosabb felületi szín a kontraszthoz */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text-primary: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-primary: #3b82f6;    /* Eredeti élénk kék */
    --color-accent: #0ea5e9;     /* Élénkebb, világosabb cián */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --font-family-primary: 'Inter', sans-serif;
    --font-family-mono: 'JetBrains Mono', monospace;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family-primary);
    background: var(--color-background);
    color: var(--color-text-primary);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Új stílusok a robusztusabb lábléc pozicionáláshoz */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigáció --- */
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

/* --- Hero Szekció --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    /* A flex-grow biztosítja, hogy a hero kitöltse a rendelkezésre álló helyet */
    flex-grow: 1;
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.btn svg {
    transition: all var(--transition-base);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2)); /* Finom ragyogás az ikonoknak */
}

.btn:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3)); /* Erősebb ragyogás hover-re */
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-text-primary);
    color: var(--color-background);
    border-color: var(--color-text-primary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out forwards;
}

.lunge-image {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.3));
    transition: transform var(--transition-base);
}

.hero-visual:hover .lunge-image {
    transform: scale(1.05);
}

/* --- Háttér animációk --- */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.animated-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

.floating-elements .floating-element {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.floating-elements .floating-element:nth-child(1) { width: 100px; height: 100px; top: 10%; left: 15%; animation-duration: 12s; }
.floating-elements .floating-element:nth-child(2) { width: 50px; height: 50px; top: 30%; left: 80%; animation-duration: 18s; }
.floating-elements .floating-element:nth-child(3) { width: 80px; height: 80px; top: 70%; left: 10%; animation-duration: 15s; }
.floating-elements .floating-element:nth-child(4) { width: 120px; height: 120px; top: 80%; left: 90%; animation-duration: 20s; }
.floating-elements .floating-element:nth-child(5) { width: 60px; height: 60px; top: 50%; left: 50%; animation-duration: 10s; }

/* --- Footer --- */
.footer {
    /* A position:absolute eltávolítva a jobb elrendezésért */
    padding: 1.5rem 0;
    background: transparent;
    z-index: 5; /* Maradhat, ha esetleg más elemek fölé kell kerülnie */
}

.footer .container {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.copyright {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* --- Animációk --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- Reszponzivitás --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem; /* Kisebb padding tableten és mobilon */
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none; /* Mobil menü esetén ezt tovább lehet fejleszteni */
    }

    .nav-container {
        justify-content: center; /* Középre igazítja a logót, ha a linkek eltűnnek */
    }
}

/* Kifejezetten telefonos nézetre (kisebb képernyők) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem; /* Még kisebb padding telefonon */
    }

    .hero-actions {
        flex-direction: column; /* Gombok egymás alá rendezése */
        align-items: center; /* Gombok középre igazítása a konténerben */
        gap: 1rem;
    }
}
