/* =========================
   RESET & ZÁKLAD
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111;
    background: #f8fafc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =========================
   HERO (FULLSCREEN)
========================= */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(
        120deg,
        #1e1b4b,
        #312e81,
        #1e3a8a
    );
    background-size: 200% 200%;
    animation: heroGradient 18s ease infinite;
    color: #fff;
    display: flex;
    align-items: center;
}

@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================
   HERO OVERLAY NAV
========================= */
.hero-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 10;
}

.hero-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGO (FINÁLNA VERZIA) ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 35px;
    width: auto;
    opacity: 0.9;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #e5e7eb;
}

.logo-domain {
    color: #22c55e;
    letter-spacing: -0.3px;
    margin-left: -2px;
}

.nav-link {
    font-size: 14px;
    opacity: 0.85;
}

.nav-link:hover {
    opacity: 1;
}

/* =========================
   HERO CONTENT
========================= */
.hero-content {
    text-align: center;
    max-width: 900px;
    animation: heroFadeUp 0.9s ease-out forwards;
    opacity: 0;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    margin: 25px 0;
}

.hero-content p {
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

/* Badge */
.badge {
    display: inline-block;
    background: #22c55e;
    color: #052e16;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* Actions */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeUp 0.9s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* =========================
   BUTTONS
========================= */
.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    background: #22c55e;
    color: #052e16;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* =========================
   LIVE BOX
========================= */
.live-box {
    padding: 80px 0;
    background: #0f172a;
    color: #fff;
}

.live-box h2 {
    font-size: 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulseLive 1.6s infinite;
}

@keyframes pulseLive {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1);   opacity: 1; }
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.live-card {
    background: linear-gradient(135deg, #1e293b, #020617);
    border-radius: 16px;
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.live-match {
    font-size: 18px;
    margin-bottom: 10px;
}

.live-match span {
    margin: 0 8px;
    opacity: 0.6;
}

.live-meta {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.live-label {
    color: #22c55e;
    font-weight: 600;
}

/* =========================
   STEPS
========================= */
.steps {
    padding: 90px 0;
    background: #fff;
}

.steps h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 60px;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.step {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.step span {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    margin-bottom: 18px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step p {
    font-size: 15px;
    color: #555;
}

.step a {
    display: inline-block;
    margin-top: 14px;
    color: #2563eb;
    font-weight: 600;
}

/* =========================
   DEMO
========================= */
.demo {
    padding: 90px 0;
    background: #eef2ff;
    text-align: center;
}

.demo h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.demo p {
    max-width: 680px;
    margin: 0 auto 30px;
    color: #444;
}

/* =========================
   AUDIENCE
========================= */
.audience {
    padding: 90px 0;
    background: #fff;
}

.audience h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 60px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.audience-grid div {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
}

.audience-grid h3 {
    margin-bottom: 10px;
}

/* =========================
   FINAL CTA
========================= */
.final-cta {
    padding: 90px 0;
    background: #1e40af;
    color: #fff;
    text-align: center;
}

.final-cta h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

/* =========================
   FOOTER
========================= */
.footer {
    padding: 30px 0;
    text-align: center;
    background: #0f172a;
    color: #cbd5f5;
    font-size: 14px;
}

/* =========================
   ODOHRANÉ TURNAJE – CTA PÁS
========================= */
.past-tournaments-cta {
    background: linear-gradient(135deg, #0f172a, #020617);
    padding: 60px 0;
    text-align: center;
}

.btn-outline-light {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}
/* =========================
   OTVORENÉ TURNAJE – GRID
========================= */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

/* tablet */
@media (max-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 640px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   EVENT CARD – ZÁKLAD
========================= */
.event-card {
    position: relative;
    display: block;

    min-height: 170px;
    width: 100%;

    padding: 0; /* padding ide do event-body */

    background: linear-gradient(135deg, #1e293b, #020617);
    border-radius: 18px;

    color: #fff;
    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform .25s ease, box-shadow .25s ease;
}



/* =========================
   EVENT CARD – BACKGROUND LOGO
========================= */
.event-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image: var(--event-logo);
    background-repeat: no-repeat;
    background-position: right 20px bottom 20px;
    background-size: 120px;

    opacity: 0.08;
    filter: grayscale(100%) blur(0.4px);

    pointer-events: none;
    z-index: 1;
}



/* =========================
   EVENT CARD – HOVER OVERLAY
========================= */
.event-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.06),
        rgba(34,197,94,0.08)
    );

    opacity: 0;
    transition: opacity .25s ease;

    z-index: 1;
    pointer-events: none;
}

/* =========================
   EVENT CARD – CONTENT
========================= */
.event-body {
    position: relative;
    z-index: 2;
    padding: 22px;
}


.event-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-meta {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 12px;
}

.event-capacity {
    font-size: 14px;
    font-weight: 600;
}

/* plné miesta */
.event-capacity.full {
    color: #ef4444;
}

/* =========================
   EVENT CARD – HOVER EFFECT
========================= */
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    filter: brightness(1.05);
}

.event-card:hover::after {
    opacity: 1;
}

.event-card:hover::before {
    opacity: 1.50;
}
