/* =========================================================
   OUR CLUB - HERO
   Modern Club Hero
========================================================= */


/* =========================================================
   HERO BASE
========================================================= */

.club-hero {
    position: relative;

    width: 100%;
    min-height: 350px;

    overflow: hidden;
    isolation: isolate;

    background:
        linear-gradient(
            135deg,
            var(--club-primary),
            var(--club-secondary)
        );

    color: var(--club-white);
}


/* =========================================================
   HERO BACKGROUND IMAGE
========================================================= */

.club-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image:
        var(--club-hero-background-image, none);

    background-size: cover;

    background-position:
        var(
            --club-hero-background-position,
            center center
        );

    background-repeat: no-repeat;

    opacity:
        var(
            --club-hero-background-opacity,
            1
        );

    pointer-events: none;

    transform: scale(1.02);
}


/* =========================================================
   ATMOSPHERIC OVERLAY
========================================================= */

.club-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(0, 0, 0, 0.03) 0%,
            rgba(0, 0, 0, 0.30) 55%,
            rgba(0, 0, 0, 0.58) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.05) 45%,
            rgba(0, 0, 0, 0.30) 100%
        );

    opacity:
        var(
            --club-hero-overlay-opacity,
            0.35
        );
}


/* =========================================================
   LIGHT RAYS
========================================================= */

.club-hero::after {
    content: "";

    position: absolute;

    top: -20%;
    right: 8%;

    width: 520px;
    height: 880px;

    z-index: 1;

    pointer-events: none;

    opacity: 0.20;

    transform: rotate(14deg);

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.10) 42%,
            transparent 74%
        );

    filter: blur(12px);
}


/* =========================================================
   DECORATION LAYER
========================================================= */

.club-hero-decoration {
    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;

    overflow: hidden;
}


/* =========================================================
   LARGE WATERMARK LOGO
========================================================= */

.club-hero-logo {
    position: absolute;

    top: -80px;
    right: -50px;

    z-index: 3;

    width: clamp(
        460px,
        42vh,
        620px
    );

    height: clamp(
        460px,
        42vh,
        620px
    );

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    opacity: 0.22;

    transform: rotate(4deg);
}


/* =========================================================
   LOGO IMAGE WRAPPER
========================================================= */

.club-hero-logo-image {
    width: 50%;
    height: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
}


/* =========================================================
   WATERMARK LOGO IMAGE
========================================================= */

.club-hero-logo-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    opacity: 0.95;

    filter:
        saturate(0.85)
        contrast(1.05)
        drop-shadow(
            0 18px 38px rgba(0, 0, 0, 0.22)
        );
}


/* =========================================================
   LOGO GLOW
   Intentionally empty / transparent.
========================================================= */

.club-hero-logo::after {
    content: "";

    position: absolute;
    inset: 0;

    background: transparent;

    box-shadow: none;

    filter: none;

    pointer-events: none;
}

/* =========================================================
   HERO INNER
========================================================= */

.club-hero .club-container {
    position: relative;
    z-index: 5;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.club-hero-content {
    position: relative;
    z-index: 6;

    width: min(100%, 920px);

    padding: 20px 0 54px;
}


/* =========================================================
   HERO LABEL
========================================================= */

.club-hero-label {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 42px;

    padding: 0 20px;

    border: 1px solid var(--club-accent);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.08)
        );

    color: var(--club-white);

    font-size: 0.82rem;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   HERO TITLE
========================================================= */

.club-hero h1 {
    position: relative;

    max-width: 900px;

    margin: 6px 0 0;

    color: var(--club-white);

    font-size:
        clamp(
            3rem,
            var(--club-hero-title-size, 80px),
            6.5rem
        );

    font-weight: 900;

    line-height: 0.95;

    letter-spacing: -0.045em;

    text-wrap: balance;

    text-shadow:
        0 8px 30px rgba(0, 0, 0, 0.26);
}


/* =========================================================
   NEXT MATCH
========================================================= */

.club-hero-match {
    position: relative;

    width: min(100%, 580px);

    margin-top: 20px;

}


/* =========================================================
   MATCH LABEL
========================================================= */

/* =========================================================
   MATCH LABEL
========================================================= */

.club-hero-match-label {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    min-height: 30px;

    padding: 0 22px 0 17px;

    margin-left: 0;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 0;

    border-radius: 18px 18px 0 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 88, 57, 0.68),
            rgba(0, 44, 29, 0.66)
        );

    color: var(--club-white);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18);

    font-size: 0.95rem;
    font-weight: 900;

    letter-spacing: 0.02em;
}

/* =========================================================
   MATCH LABEL ICON
========================================================= */

.club-hero-match-label-icon {
    display: inline-flex;

    width: 26px;
    height: 26px;

    align-items: center;
    justify-content: center;

    flex: 0 0 26px;
}

.club-hero-match-label-icon svg {
    width: 23px;
    height: 23px;

    display: block;
}


/* =========================================================
   MATCH LAYOUT
========================================================= */

.club-hero-match-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        200px;

    gap: 12px;

    align-items: stretch;
}


/* =========================================================
   MATCH MAIN
========================================================= */

.club-hero-match-main {
    min-width: 0;
    height: 100%;
}


/* =========================================================
   MATCH CARD
========================================================= */

.club-hero-match-card {
    position: relative;

    min-height: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    align-items: center;

    padding: 0;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.16);

    border-radius: 0 20px 20px 20px;

    background:
        linear-gradient(
            180deg,
            rgba(0, 88, 57, 0.68),
            rgba(0, 44, 29, 0.66)
        );

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   LEAGUE HEADER
========================================================= */

.club-hero-match-league {
    grid-column: 1 / -1;

    min-height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    padding: 0 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);

    background:
        linear-gradient(
            180deg,
            rgba(0, 144, 92, 0.40),
            rgba(0, 92, 61, 0.22)
        );

    color: var(--club-white);

    text-align: center;
}

.club-hero-match-league strong {
    display: inline-block;

    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 900;

    letter-spacing: 0.01em;
}

.club-hero-match-league-line {
    display: block;

    width: min(170px, 18%);
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.72),
            transparent
        );
}


/* =========================================================
   MATCH TEAMS
========================================================= */

.club-hero-match-teams {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        120px
        minmax(0, 1fr);

    align-items: center;

    gap: 6px;

    min-width: 0;
}


/* =========================================================
   TEAM
========================================================= */

.club-hero-team {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    text-align: center;
}


/* =========================================================
   TEAM LOGO
========================================================= */

.club-hero-team-logo {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: transparent;
}

.club-hero-team-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 10px 16px rgba(0, 0, 0, 0.20)
        );
}


/* =========================================================
   TEAM NAME
========================================================= */

.club-hero-team strong {
    width: 100%;
    min-width: 0;

    display: block;

    color: var(--club-white);

    font-size: 0.8rem;
    line-height: 1.15;
    font-weight: 900;

    letter-spacing: -0.01em;

    text-align: center;

    text-shadow:
        0 5px 18px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   MATCH CENTER
========================================================= */

.club-hero-match-center {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 0 14px;

    text-align: center;
}

.club-hero-match-center::before,
.club-hero-match-center::after {
    content: "";

    position: absolute;

    top: 6px;
    bottom: 6px;

    width: 1px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.48),
            transparent
        );
}

.club-hero-match-center::before {
    left: 0;
}

.club-hero-match-center::after {
    right: 0;
}


/* =========================================================
   VS
========================================================= */

.club-hero-vs {
    color: var(--club-white);

    font-size:
        clamp(
            2rem,
            4vw,
            1.75rem
        );

    line-height: 1;

    font-weight: 900;

    letter-spacing: -0.05em;

    text-shadow:
        0 8px 18px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   MATCH DATE
========================================================= */

.club-hero-match-date {
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.95);

    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 700;
}


/* =========================================================
   MATCH TIME
========================================================= */

.club-hero-match-time {
    margin-top: 6px;

    color: var(--club-white);

    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 800;
}


/* =========================================================
   VENUE
========================================================= */

.club-hero-match-venue {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px 20px 12px;

    color: rgba(255, 255, 255, 0.80);

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    background:
        rgba(0, 0, 0, 0.10);

    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 700;

    text-align: center;
}

.club-hero-match-venue[hidden] {
    display: none;
}

.club-hero-match-venue-icon {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;
}

.club-hero-match-venue-icon svg {
    width: 22px;
    height: 22px;

    display: block;
}


/* =========================================================
   COUNTDOWN AREA
========================================================= */

.club-hero-countdown-area {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-content: space-around;
    padding-top: 10px;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.club-hero-countdown {
    width: min(100%, 760px);

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}


/* =========================================================
   COUNTDOWN ITEM
========================================================= */

.club-hero-countdown-item {
    min-width: 0;
    min-height: 34px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 6px 8px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.16),
            rgba(0, 0, 0, 0.28)
        );

    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.club-hero-countdown-item strong {
    display: block;

    color: var(--club-accent);

    font-size: 1.45rem;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -0.04em;

    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.18);
}


.club-hero-countdown-item span {
    display: block;

    margin-top: 4px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.68rem;

    line-height: 1;

    font-weight: 700;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .club-hero {
        min-height: 0;
    }

    .club-hero-inner {
        min-height: 0;
    }

    .club-hero-content {
        padding-top: 15px;
        padding-bottom: 34px;
    }

    .club-hero-match-league {
        min-height: 30px;
    }

    .club-hero-match-teams {
        grid-template-columns:
            minmax(0, 1fr)
            100px
            minmax(0, 1fr);

        gap: 10px;

        padding: 10px 20px 8px;
    }

    .club-hero-team-logo {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .club-hero-team {
        gap: 12px;
    }

    .club-hero-team strong {
        font-size: 0.8rem;
    }

    .club-hero-match-date {
        margin-top: 8px;
    }

    .club-hero-match-time {
        margin-top: 4px;
    }

    .club-hero-match-venue {
        padding: 7px 16px 8px;

        font-size: 0.74rem;
    }

    .club-hero-countdown {
        gap: 14px;
    }

    .club-hero-countdown-item {
        min-height: 35px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .club-hero {
        min-height: auto;
    }

    .club-hero-inner {
        min-height: auto;
        display: block;
    }

    .club-hero-content {
        width: 100%;

        padding-top: 30px;
        padding-bottom: 48px;
    }

    .club-hero-logo {
        top: -110px;
        right: -160px;

        width: 500px;
        height: 500px;

        opacity: 0.18;
    }

    .club-hero h1 {
        max-width: 720px;
    }

    .club-hero-match {
        width: 100%;
    }

    .club-hero-team-logo {
        width: 82px;
        height: 82px;

        flex-basis: 82px;
    }

    .club-hero-team {
        gap: 12px;
    }

    .club-hero-team strong {
        font-size: 1.05rem;
    }

    .club-hero-match-teams {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .club-hero {
        min-height: auto;
    }

    .club-hero::after {
        right: -20px;

        width: 280px;
        height: 520px;

        opacity: 0.11;
    }

    .club-hero-content {
        padding-top: 46px;
        padding-bottom: 34px;
    }

    .club-hero-label {
        min-height: 38px;

        padding: 0 15px;

        font-size: 0.72rem;
    }

    .club-hero h1 {
        margin-top: 14px;

        font-size:
            clamp(
                2.7rem,
                11vw,
                4rem
            );

        line-height: 0.98;
    }

    .club-hero-match {
        margin-top: 24px;
    }

    .club-hero-match-label {
        min-height: 44px;

        padding-right: 17px;

        font-size: 0.83rem;

        border-radius: 15px 15px 0 0;
    }

    .club-hero-match-layout {
		grid-template-columns: 1fr;
		gap: 12px;
	}

    .club-hero-match-card {
        border-radius: 0 16px 16px 16px;
    }

    .club-hero-match-league {
        min-height: 48px;

        gap: 10px;

        padding-left: 12px;
        padding-right: 12px;
    }

    .club-hero-match-league strong {
        font-size: 0.86rem;
    }

    .club-hero-match-league-line {
        width: 20%;
    }

    .club-hero-match-teams {
        grid-template-columns:
            minmax(0, 1fr)
            64px
            minmax(0, 1fr);

        gap: 6px;

        padding: 18px 12px 16px;
    }

    .club-hero-team {
        gap: 8px;
    }

    .club-hero-team-logo {
        width: 64px;
        height: 64px;

        flex-basis: 64px;
    }

    .club-hero-team strong {
        font-size: 0.84rem;
        line-height: 1.15;
    }

    .club-hero-match-center {
        padding: 0 8px;
    }

    .club-hero-vs {
        font-size: 1.8rem;
    }

    .club-hero-match-date {
        margin-top: 8px;

        font-size: 0.78rem;
    }

    .club-hero-match-time {
        margin-top: 4px;

        font-size: 0.84rem;
    }

    .club-hero-match-venue {
        min-height: 42px;

        padding: 8px 12px 10px;

        font-size: 0.69rem;
    }

    .club-hero-match-venue-icon svg {
        width: 19px;
        height: 19px;
    }

    .club-hero-countdown {
        width: 100%;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 7px;
    }

    .club-hero-countdown-item {
        min-height: 55px;

        padding: 12px 5px;

        border-radius: 14px;
    }

    .club-hero-countdown-item strong {
        font-size: 1.65rem;
    }

    .club-hero-countdown-item span {
        margin-top: 7px;

        font-size: 0.68rem;
    }

    .club-hero {
        height: auto;
        min-height: 0;
    }

    .club-hero-logo {
        top: -55px;
        right: -95px;

        width: clamp(
            220px,
            58vw,
            310px
        );

        height: clamp(
            220px,
            58vw,
            310px
        );

        opacity: 0.42;
    }

    .club-hero-content {
        width: 100%;
        height: auto;

        padding-top: 42px;
        padding-bottom: 30px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .club-hero-content {
        padding-top: 38px;
        padding-bottom: 28px;
    }

    .club-hero h1 {
        font-size: 2.45rem;

        letter-spacing: -0.035em;
    }

    .club-hero-match-label {
        min-height: 42px;

        padding-left: 12px;
        padding-right: 14px;

        font-size: 0.77rem;
    }

    .club-hero-match-label-icon {
        width: 23px;
        height: 23px;

        flex-basis: 23px;
    }

    .club-hero-match-label-icon svg {
        width: 21px;
        height: 21px;
    }

    .club-hero-match-teams {
        grid-template-columns:
            minmax(0, 1fr)
            54px
            minmax(0, 1fr);

        padding-left: 9px;
        padding-right: 9px;
    }

    .club-hero-team {
        gap: 6px;
    }

    .club-hero-team-logo {
        width: 54px;
        height: 54px;

        flex-basis: 54px;
    }

    .club-hero-team strong {
        font-size: 0.72rem;
    }

    .club-hero-vs {
        font-size: 1.5rem;
    }

    .club-hero-match-date {
        font-size: 0.70rem;
    }

    .club-hero-match-time {
        font-size: 0.76rem;
    }

    .club-hero-match-venue {
        font-size: 0.64rem;
    }

    .club-hero-countdown {
        gap: 5px;
    }

    .club-hero-countdown-item {
        min-height: 55px;

        border-radius: 12px;
    }

    .club-hero-countdown-item strong {
        font-size: 1.35rem;
    }

    .club-hero-countdown-item span {
        font-size: 0.62rem;
    }

    .club-hero-logo {
        top: -65px;
        right: -130px;

        width: 320px;
        height: 320px;

        opacity: 0.075;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .club-hero,
    .club-hero * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}