/* Site-wide customisations for Hymans Golf */

.hero-landing {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 1.75rem;
    min-height: 18.5rem;
    margin-bottom: 3rem;
    color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.35)), url("../images/golf1.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.hero-landing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-landing .hero-content {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem);
    max-width: 60rem;
    z-index: 1;
}

.hero-landing .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 0.3rem 1.2rem rgba(0, 0, 0, 0.85);
}

.hero-landing .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    text-shadow: 0 0.25rem 0.9rem rgba(0, 0, 0, 0.85);
}

.hero-landing .hero-user-label {
    position: absolute;
    top: 1.25rem;
    right: 1.75rem;
    z-index: 2;
    font-weight: 500;
    text-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.55);
}

/* Mobile-friendly stacked table layout for the home page league tables. */
.table-stacked td[data-label]::before {
    content: attr(data-label);
    display: none;
}

@media (max-width: 767.98px) {
    /* Avoid horizontal scrolling once the table becomes card-like. */
    .home-tournament-table-wrapper {
        overflow-x: visible;
    }

    .table-stacked thead {
        display: none;
    }

    .table-stacked,
    .table-stacked tbody,
    .table-stacked tr,
    .table-stacked td {
        display: block;
        width: 100%;
    }

    .table-stacked tbody tr {
        background-color: #fff;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 0.85rem;
        padding: 0.6rem 0.85rem;
        margin-bottom: 0.85rem;
        box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.08);
    }

    .table-stacked tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.4rem 0;
        border: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        min-height: 2.75rem;
    }

    /* Remove Bootstrap striping so stacked rows read as plain white cards. */
    .table-stacked.table-striped {
        --bs-table-bg: #fff;
        --bs-table-striped-bg: #fff;
        --bs-table-accent-bg: #fff;
    }

    /* Emphasize the course name in the mobile stacked cards. */
    .table-stacked tbody td.home-course-cell {
        font-weight: 600;
    }

    .table-stacked td[data-label]::before {
        display: inline-block;
        font-weight: 600;
        color: #6c757d;
    }

    .table-stacked tbody td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .table-stacked tbody td.text-nowrap {
        white-space: normal !important;
    }

    .table-stacked .btn {
        padding: 0.35rem 0.8rem;
    }
}

/* Shared scorecard widgets */
.scorecard-table-wrapper {
    border-radius: 0.85rem;
    background: #f8f9fa;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
}

.scorecard-input {
    width: 2.35rem;
    text-align: center;
    font-weight: 600;
    border-radius: 0.45rem;
    border-color: rgba(148, 163, 184, 0.6);
    background-color: #fff;
    box-shadow: 0 0.15rem 0.5rem rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-size: 0.88rem;
    padding-inline: 0.3rem;
    padding-block: 0.24rem;
    margin-inline: auto;
}

.scorecard-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0.35rem 1rem rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.scorecard-input::-webkit-inner-spin-button,
.scorecard-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.scorecard-input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

@media (max-width: 1400px) and (min-width: 992px) {
    .scorecard-input {
        width: 2.05rem;
        font-size: 0.75rem;
        padding-inline: 0.2rem;
        padding-block: 0.16rem;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .scorecard-input {
        width: 2.15rem;
    }
}

@media (max-width: 767.98px) {
    .scorecard-input {
        width: 1.95rem;
    }
}

/* Scorecard tables */
.scorecard-entry-table,
.scorecard-builder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.scorecard-entry-table th,
.scorecard-builder-table th,
.scorecard-entry-table td,
.scorecard-builder-table td {
    border: 1px solid #d9e3f5;
    padding: 0.28rem;
    text-align: center;
    vertical-align: middle;
}

.scorecard-entry-table thead th,
.scorecard-builder-table thead th {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.scorecard-entry-table .row-label,
.scorecard-builder-table .row-label {
    text-align: left;
    font-weight: 600;
    background-color: #f7f9ff;
    min-width: 7rem;
    white-space: nowrap;
}

.scorecard-entry-table input[type="number"] {
    width: 1.5rem;
    text-align: center;
    margin: 0.08rem auto;
    padding: 0.08rem;
}

.scorecard-builder-table input[type="number"] {
    width: 2.25rem;
    text-align: center;
    margin: 0.12rem auto;
    padding: 0.12rem;
}

.scorecard-total-header {
    min-width: 3rem;
    width: 3rem;
}

.scorecard-total-cell {
    background-color: #eef2ff;
    min-width: 3rem;
    width: 3rem;
}

.scorecard-entry-table input[readonly],
.scorecard-builder-table .scorecard-total {
    width: 2.35rem;
    text-align: center;
    background-color: #f0f4ff;
    margin: 0.08rem auto;
    display: block;
    font-weight: 700;
    border-color: rgba(99, 102, 241, 0.4);
    color: #1f2937;
    pointer-events: none;
    user-select: none;
}

/* Highlight active tournament rows with a subtle blue tint for quick scanning */
.current-tournament-row td,
.current-tournament-row th {
    background-color: #e6f2ff !important;
}

/* Games Tables */
.hole-col { 
    width: 2rem; 
    min-width: 2rem; 
    text-align: center; }

/* Outline key values in a compact pill for emphasis */
.outlined-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(13, 110, 253, 0.45);
    border-radius: 999px;
    /* background-color: rgba(13, 110, 253, 0.08); */
    /*  color: #0b4f9c;  */
    /*  font-weight: 600;  */
    line-height: 1.1;
}
