/* =========================================================
   Greenbushes Cricket Club
   Home Page
   ========================================================= */


/* =========================================================
   Page
   ========================================================= */

.home-page {
    background: #f5f7f8;
    flex: 1;
}


/* =========================================================
   General Container
   ========================================================= */

.home-container {
    width: min(1100px, 92%);
    margin: 0 auto;
}


/* =========================================================
   Hero
   ========================================================= */

.home-hero {
    min-height: 420px;

    background:
        linear-gradient(
            rgba(11, 61, 46, 1),
            rgba(0, 14, 39, 0.65),
            rgba(0, 14, 39, 0.4)
        ),
        url("/assets/images/club-hero.jpg")
        center center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


.home-hero-overlay {
    width: 100%;
}


.home-hero-content {
    width: min(850px, 92%);
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    padding: 70px 0;
}


.home-hero-label {
    display: block;
    margin-bottom: 14px;

    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #ffffff;
}


.home-hero h1 {
    margin: 0;

    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;

    color: #ffffff;
}


.home-hero p {
    max-width: 650px;
    margin: 20px auto 30px;

    font-size: 1.1rem;
    line-height: 1.6;

    color: #ffffff;
}


.home-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 10px 0 18px;
}

.home-hero-logo {
    width: 210px;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.home-hero-title h1 {
    margin: 0;
    text-align: left;
}

/* =========================================================
   Buttons
   ========================================================= */

.home-button {
    display: inline-block;

    min-height: 20px;
    padding: 10px 22px;

    border-radius: 8px;

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}


.home-button:hover {
    transform: translateY(-1px);
}


.home-button-primary {
    background: #142d3d;
    color: #ffffff;
}


.home-button-primary:hover {
    background: #162b46;
}


.home-button-secondary {
    background: #ffffff;
    color: #0b3d2e;
}


.home-button-secondary:hover {
    opacity: 0.9;
}


.home-button-dark {
    background: #142d3d;
    color: #ffffff;
}


.home-button-dark:hover {
    opacity: 0.85;
}


/* =========================================================
   Sections
   ========================================================= */

.home-section {
    padding: 60px 0;
}


.home-section-alt {
    background: #ffffff;
}


.home-section-header {
    margin-bottom: 28px;
}


.home-section-header h2 {
    margin: 4px 0 0;

    color: #0b3d2e;
    font-size: 1.8rem;
}


.home-section-header p {
    margin: 8px 0 0;

    color: #666666;
}


.home-section-label {
    display: block;

    color: #1f3a5f;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   Next Fixture
   ========================================================= */

.home-fixture-card {
    background: #ffffff;

    border-radius: 14px;
    padding: 30px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    column-gap: 30px;
}


.home-fixture-team {
    text-align: center;
}


.home-fixture-team-label {
    display: block;

    margin-bottom: 7px;

    color: #666666;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.home-fixture-team h3 {
    margin: 0;

    color: #0b3d2e;

    font-size: 1.3rem;
    line-height: 1.3;
}


.home-fixture-vs {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #f5f7f8;
    border: 1px solid #e6e9eb;

    color: #555555;

    font-size: 0.8rem;
    font-weight: 700;
}


.home-fixture-details {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid #eeeeee;
}


.home-fixture-detail {
    text-align: center;
}


.home-fixture-detail span {
    display: block;

    margin-bottom: 6px;

    color: #666666;

    font-size: 0.78rem;
}


.home-fixture-detail strong {
    display: block;

    color: #222222;

    font-size: 0.92rem;
}


.home-fixture-action {
    grid-column: 1 / -1;

    text-align: center;

    margin-top: 24px;
}


.home-empty {
    background: #ffffff;

    border-radius: 14px;
    padding: 30px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    text-align: center;
}


.home-empty p {
    margin: 0 0 20px;

    color: #666666;
}


/* =========================================================
   Announcement
   ========================================================= */

.home-announcement {
    background: #ffffff;

    border-radius: 14px;
    padding: 28px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.home-announcement-content {
    min-width: 0;
}


.home-announcement-date {
    display: block;

    margin-bottom: 8px;

    color: #666666;

    font-size: 0.8rem;
}


.home-announcement h3 {
    margin: 0 0 10px;

    color: #0b3d2e;

    font-size: 1.3rem;
}


.home-announcement p {
    margin: 0;

    color: #555555;

    line-height: 1.6;
}


.home-announcement-action {
    flex: 0 0 auto;
}


/* =========================================================
   About
   ========================================================= */

.home-about {
    background: #ffffff;

    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;
}


.home-about-content {
    padding: 40px;
}


.home-about-content h2 {
    margin: 6px 0 18px;

    color: #0b3d2e;

    font-size: 1.8rem;
}


.home-about-content p {
    margin: 0 0 16px;

    color: #555555;

    line-height: 1.7;
}


.home-about-content .home-button {
    margin-top: 8px;
}


.home-about-image {
    min-height: 350px;
}


.home-about-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   Gallery
   ========================================================= */

.home-gallery {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}


.home-gallery-item {
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 10px;

    background: #e6e9eb;
}


.home-gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.25s ease;
}


.home-gallery-item:hover img {
    transform: scale(1.03);
}


.home-centered-action {
    text-align: center;

    margin-top: 24px;
}


/* =========================================================
   Registration
   ========================================================= */

.home-registration {
    background: #ffffff;

    border-radius: 14px;

    padding: 32px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.home-registration h2 {
    margin: 6px 0 8px;

    color: #0b3d2e;

    font-size: 1.7rem;
}


.home-registration p {
    margin: 0;

    max-width: 650px;

    color: #666666;

    line-height: 1.6;
}


/* =========================================================
   Sponsors
   ========================================================= */

.home-sponsors {
    padding: 25px 0;
    background: #ffffff;
    border-top: 1px solid #e6e9eb;
}


.home-sponsors-label {
    margin: 0 0 22px;

    text-align: center;

    color: #666666;

    font-size: 0.85rem;
    font-weight: 600;
}


.home-sponsor-logos {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 45px;

    flex-wrap: wrap;
}


.home-sponsor-logos a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 60px;
}


.home-sponsor-logos img {
    max-width: 180px;
    max-height: 70px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 900px) {

    .home-fixture-details {
        grid-template-columns: repeat(2, 1fr);
    }


    .home-about {
        grid-template-columns: 1fr;
    }


    .home-about-image {
        min-height: 280px;
        order: -1;
    }


    .home-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .home-container {
        width: 94%;
    }


    .home-hero {
        min-height: 460px;
    }


    .home-hero-content {
        padding: 55px 0;
    }


    .home-hero h1 {
        font-size: 2.2rem;
    }


    .home-hero p {
        font-size: 1rem;
    }


    .home-section {
        padding: 40px 0;
    }


    .home-section-header h2 {
        font-size: 1.55rem;
    }


    .home-fixture-card {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 24px 18px;
    }


    .home-fixture-vs {
        margin: 0 auto;
    }


    .home-fixture-details {
        grid-template-columns: 1fr 1fr;

        margin-top: 12px;
    }


    .home-fixture-action {
        margin-top: 12px;
    }


    .home-announcement {
        flex-direction: column;

        align-items: stretch;

        padding: 24px;
    }


    .home-announcement-action {
        text-align: left;
    }


    .home-about-content {
        padding: 26px 22px;
    }


    .home-about-content h2 {
        font-size: 1.55rem;
    }


    .home-about-image {
        min-height: 230px;
    }


    .home-gallery {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }


    .home-registration {
        flex-direction: column;

        align-items: stretch;

        padding: 26px 22px;
    }


    .home-registration .home-button {
        width: 100%;

        box-sizing: border-box;

        text-align: center;
    }


    .home-sponsor-logos {
        gap: 25px;
    }


    .home-sponsor-logos img {
        max-width: 145px;
    }

}


@media (max-width: 700px) {

    .home-hero-title {
        flex-direction: column;
        gap: 14px;
        margin: 10px 0 18px;
    }

    .home-hero-logo {
        width: 110px;
        height: 110px;
    }

    .home-hero-title h1 {
        text-align: center;
    }

}



/* =========================================================
   Live Match Banner
   ========================================================= */

.home-live-banner {
    position: sticky;
    top: 0;
    z-index: 900;

    background: #080c10;

    border-bottom: 1px solid #263139;
}


.home-live-banner-container {
    width: 100%;
}


.home-live-match {
    min-height: 72px;

    display: grid;

    grid-template-columns:
        120px
        minmax(220px, 1fr)
        minmax(260px, 1.15fr)
        minmax(220px, 1fr);

    align-items: stretch;

    color: #ffffff;

    text-decoration: none;

    border-bottom: 1px solid #263139;

    transition:
        background 0.2s ease;
}


.home-live-match:last-child {
    border-bottom: 0;
}


.home-live-match:hover {
    background: #101820;
}


.home-live-match-status {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px 14px;

    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 1.1px;
}


.home-live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d94b4b;

    box-shadow:
        0 0 0 3px rgba(217, 75, 75, 0.12);
}


.home-live-section {
    min-width: 0;

    padding: 9px 18px;

    border-left: 1px solid #263139;
}


.home-live-batters {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 3px;
}


.home-live-batter {
    display: flex;

    align-items: center;

    min-width: 0;

    font-size: 0.82rem;
}


.home-live-striker {
    width: 12px;

    color: #ffffff;

    font-weight: 700;
}


.home-live-player-name {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.home-live-player-score {
    margin-left: auto;

    padding-left: 12px;

    font-weight: 700;

    white-space: nowrap;
}


.home-live-player-score small {
    color: #aeb7bd;

    font-size: 0.72rem;

    font-weight: 500;
}


.home-live-score {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 4px;

    text-align: center;
}


.home-live-score-main {
    display: flex;

    align-items: baseline;
    justify-content: center;

    gap: 9px;
}


.home-live-team {
    max-width: 130px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #b8c1c7;

    font-size: 0.75rem;
}


.home-live-score-main strong {
    font-size: 1.35rem;

    line-height: 1;
}


.home-live-score-main strong span {
    font-weight: 500;
}


.home-live-overs {
    color: #b8c1c7;

    font-size: 0.8rem;
}


.home-live-score-secondary {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #aeb7bd;

    font-size: 0.68rem;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.home-live-score-secondary strong {
    color: #ffffff;

    font-size: 0.75rem;
}


.home-live-bowler {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 5px;
}


.home-live-bowler-main {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 0.75rem;
}


.home-live-bowler-name {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #ffffff;
}


.home-live-bowler-main strong {
    margin-left: auto;

    white-space: nowrap;

    font-size: 0.78rem;
}


.home-live-bowler-main > span:last-child {
    color: #aeb7bd;

    white-space: nowrap;
}


.home-live-balls {
    display: flex;

    align-items: center;

    gap: 5px;

    overflow: hidden;
}


.home-live-ball {
    min-width: 20px;
    height: 20px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 4px;

    box-sizing: border-box;

    border-radius: 4px;

    background: #151c22;

    border: 1px solid #263139;

    color: #dce2e6;

    font-size: 0.64rem;
    font-weight: 600;

    white-space: nowrap;
}


.home-live-ball-wicket {
    background: #542126;

    border-color: #743038;

    color: #ffffff;
}


.home-live-waiting {
    color: #7f8a91;

    font-size: 0.72rem;
}


.home-live-match-complete {
    min-height: 58px;

    grid-template-columns:
        150px
        minmax(220px, 1fr)
        minmax(260px, 1.15fr)
        minmax(220px, 1fr);
}


.home-complete-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #315d48;

    color: #ffffff;

    font-size: 0.65rem;
}


.home-live-completed-teams {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    font-size: 0.78rem;
}


.home-live-completed-vs {
    color: #68737a;

    font-size: 0.65rem;

    text-transform: uppercase;
}


.home-live-completed-result {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 9px 18px;

    border-left: 1px solid #263139;

    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 600;

    text-align: center;
}


.home-live-match-heading {
    text-align: left;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-live-match-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-live-match-vs {
    color: #7f8a92;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.home-live-match-venue {
    margin-top: 5px;
    color: #9aa5ad;
    font-size: 0.78rem;
    font-weight: 500;
}



/* =========================================================
   Live Match Banner Responsive
   ========================================================= */

@media (max-width: 900px) {

    .home-live-match-teams {
        gap: 7px;
        font-size: 0.95rem;
    }

    .home-live-match-venue {
        font-size: 0.74rem;
    }
    
    .home-live-match {
        grid-template-columns:
            105px
            minmax(180px, 1fr)
            minmax(230px, 1.2fr)
            minmax(190px, 1fr);
    }


    .home-live-section {
        padding-left: 12px;
        padding-right: 12px;
    }


    .home-live-player-score {
        padding-left: 6px;
    }

}


@media (max-width: 700px) {

    .home-live-match-teams {
        gap: 7px;
        font-size: 0.95rem;
    }

    .home-live-match-venue {
        font-size: 0.74rem;
    }
    
    .home-live-banner {
        position: relative;
    }


    .home-live-match {
        min-height: 0;

        grid-template-columns:
            1fr
            1fr;
    }


    .home-live-match-status {
        grid-column: 1 / -1;

        justify-content: flex-start;

        padding: 7px 14px;

        border-bottom: 1px solid #263139;
    }


    .home-live-batters {
        grid-column: 1;

        border-left: 0;
    }


    .home-live-score {
        grid-column: 2;
    }


    .home-live-bowler {
        grid-column: 1 / -1;

        border-left: 0;

        border-top: 1px solid #263139;
    }


    .home-live-bowler-main {
        justify-content: space-between;
    }


    .home-live-balls {
        justify-content: flex-start;
    }


    .home-live-match-complete {
        grid-template-columns: 1fr;
    }


    .home-live-completed-teams {
        padding-top: 8px;
        padding-bottom: 8px;

        border-left: 0;
    }


    .home-live-completed-result {
        min-height: 42px;

        border-left: 0;

        border-top: 1px solid #263139;
    }

}


@media (max-width: 450px) {

    .home-live-player-name {
        max-width: 95px;
    }


    .home-live-score-main {
        gap: 5px;
    }


    .home-live-score-main strong {
        font-size: 1.15rem;
    }


    .home-live-team {
        display: none;
    }


    .home-live-score-secondary {
        gap: 4px;

        font-size: 0.62rem;
    }


    .home-live-ball {
        min-width: 18px;
        height: 18px;

        font-size: 0.58rem;
    }

}


/* =====================================================
   Upcoming Fixtures
====================================================== */

.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fixture-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.fixture-date {
    text-align: left;
    margin-bottom: 10px;
    color: #0b3d2e;
    font-size: .9rem;
    font-weight: 700;
}

.fixture-teams {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #142d3d;
    font-size: 1.15rem;
    font-weight: 700;
}

.fixture-vs {
    color: #777;
    font-size: .85rem;
    font-weight: 500;
}

.fixture-time {
    margin-top: 12px;
    color: #1f3a5f;
    font-size: .95rem;
    font-weight: 700;
}

.fixture-venue {
    margin-top: 6px;
    color: #666;
    font-size: .9rem;
}

.home-empty-state {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    color: #666;
    text-align: center;
}


/* =====================================================
   Mobile
====================================================== */

@media (max-width: 700px) {

    .fixture-card {
        padding: 20px;
    }

    .fixture-teams {
        flex-wrap: wrap;
        font-size: 1rem;
    }

    .fixture-vs {
        font-size: .8rem;
    }

}