/* ============================================================
   balboa.index.css
   index.cfm page-specific styles.
   Bootstrap 3 base; mobile-first.
   Extracted from inline <style> block in index.cfm.
   Versioned via REQUEST.pageCSS + ?jscv=appVersionID cache-buster.
   ============================================================ */

/* ---- Events panel (left sidebar) ------------------------- */
.hp-events-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}
.hp-events-footer {
    padding: 10px 12px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

/* ---- Inner section headers (Recently Completed / Upcoming) */
.hp-inner-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 7px;
    border-bottom: 1px solid #e8e8e8;
    background: #f9f9f9;
}
.hp-inner-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.hp-inner-section-label .fa {
    margin-right: 4px;
}
.hp-inner-section-count {
    font-size: 11px;
    color: #aaa;
}

/* ---- Recently Completed section -------------------------- */
.hp-recent-completed {
    border-left: 3px solid #3a8a5c;
}
.hp-recent-completed .hp-inner-section-header {
    background: #f5fbf7;
    border-bottom-color: #c8e6d4;
}
.hp-recent-completed .hp-inner-section-label {
    color: #2a6644;
}
.hp-recent-completed .event-card-row:hover {
    background: #f2faf5;
}

/* Divider between Recently Completed and Upcoming sections */
.hp-panel-section-divider {
    height: 6px;
    background: #f0f4f7;
    border-top: 1px solid #e4e8eb;
    border-bottom: 1px solid #e4e8eb;
}

/* ---- Event card row -------------------------------------- */
.hp-events-panel .event-card-row {
    display: flex;
    align-items: center;
    padding: 9px 10px 9px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    transition: background 0.1s;
}
.hp-events-panel .event-card-row:hover {
    background: #f4f8fc;
    color: inherit;
}
.hp-events-panel .event-card-row:last-child {
    border-bottom: none;
}

/* Date badge */
.hp-events-panel .event-date-badge {
    flex: 0 0 46px;
    min-width: 46px;
    text-align: center;
    background: #2c5f8a;
    color: #fff;
    border-radius: 6px;
    padding: 5px 4px 4px;
    margin: 0 10px 0 10px;
    line-height: 1;
}
.hp-events-panel .past-events .event-date-badge {
    background: #7a8c9a;
}
.hp-recent-completed .past-events .event-date-badge {
    background: #4a7c59;
}
.hp-events-panel .edb-month {
    display: block;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
    font-weight: 600;
}
.hp-events-panel .edb-day {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
    margin: 1px 0;
}
.hp-events-panel .edb-dow {
    display: block;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
    font-weight: 600;
}

/* Info column */
.hp-events-panel .event-info-col {
    flex: 1 1 auto;
    min-width: 0;
}
.hp-events-panel .event-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c5f8a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.hp-events-panel .past-events .event-card-title {
    color: #4a5a6a;
}
.hp-events-panel .event-card-meta {
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.hp-events-panel .event-card-label {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.hp-events-panel .event-rounds-secondary {
    font-size: 10px;
    color: #aaa;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Type pill */
.hp-events-panel .event-type-pill {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    background: #e2e3e5;
    color: #555;
}
.hp-events-panel .etp-weekday-event    { background: #d4edda; color: #155724; }
.hp-events-panel .etp-weekend-event    { background: #cce5ff; color: #004085; }
.hp-events-panel .etp-major-tournament { background: #fff3cd; color: #7c5c00; }
.hp-events-panel .etp-away-event       { background: #e2d9f3; color: #5a3e85; }
.hp-events-panel .etp-board-meeting    { background: #e2e3e5; color: #3d454d; }
.hp-events-panel .etp-happy-hour       { background: #ffe5d0; color: #7c4000; }
.hp-events-panel .etp-banquets         { background: #d0f0ea; color: #0a5040; }
.hp-events-panel .etp-scga-team-event  { background: #d6e0ea; color: #1a3a5c; }
.hp-events-panel .etp-course-maintenance { background: #f5e6cc; color: #6b4a00; }

/* Status badge (open / closed / today / not-open) */
.hp-events-panel .event-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.hp-events-panel .esb-today    { background: #fff3cd; color: #7c5c00; }
.hp-events-panel .esb-open     { background: #d4edda; color: #155724; }
.hp-events-panel .esb-closed   { background: #e9ecef; color: #6c757d; }
.hp-events-panel .esb-not-open { background: #e8f0f8; color: #2c5f8a; }

/* Attendee count column */
.hp-events-panel .event-attendees-col {
    flex: 0 0 38px;
    text-align: right;
    color: #555;
    font-size: 12px;
    padding-right: 6px;
    white-space: nowrap;
}
.hp-events-panel .event-attendees-col i { color: #888; }

/* Chevron arrow */
.hp-events-panel .event-arrow-col {
    flex: 0 0 14px;
    color: #bbb;
    font-size: 11px;
}

/* ---- RSVP quick-action strip ----------------------------- */
.hp-rsvp-strip {
    padding: 5px 10px 7px 66px;
    border-bottom: 1px solid #f0f0f0;
}
.hp-rsvp-strip form { margin: 0; }
.hp-rsvp-strip .btn { margin-right: 4px; }

/* ---- Member quick-links tile strip ----------------------- */
.hp-member-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.hp-member-tile {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px 12px;
    background: #f4f8fc;
    border: 1px solid #dce8f4;
    border-radius: 7px;
    text-decoration: none !important;
    color: #2c5f8a;
    transition: background 0.12s, border-color 0.12s, transform 0.1s;
    line-height: 1.2;
}
.hp-member-tile:hover {
    background: #e3edf8;
    border-color: #2c5f8a;
    color: #1a3f60;
    transform: translateY(-1px);
}
.hp-member-tile .hmt-icon {
    font-size: 22px;
    margin-bottom: 7px;
    color: #2c5f8a;
}
.hp-member-tile .hmt-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
/* Highlight tile for primary action (e.g. My Account) */
.hp-member-tile.hmt-primary {
    background: #2c5f8a;
    border-color: #2c5f8a;
    color: #fff;
}
.hp-member-tile.hmt-primary:hover {
    background: #1a3f60;
    border-color: #1a3f60;
    color: #fff;
}
.hp-member-tile.hmt-primary .hmt-icon { color: #fff; }

/* ---- Guest hero card (not logged in) --------------------- */
.hp-guest-hero {
    background: linear-gradient(135deg, #1a3f60 0%, #2c5f8a 60%, #3a7ab5 100%);
    border-radius: 8px;
    padding: 28px 24px 24px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* Subtle watermark golf flag behind the content */
.hp-guest-hero::before {
    content: "\f11e";
    font-family: FontAwesome;
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 120px;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    pointer-events: none;
}
.hp-guest-hero-body {
    display: flex;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
}
.hp-guest-hero-login {
    flex: 1 1 260px;
    min-width: 220px;
}
.hp-guest-hero-divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
    align-self: stretch;
    min-height: 160px;
}
.hp-guest-hero-pitch {
    flex: 1 1 260px;
    min-width: 220px;
}

/* Hero headline above the two columns */
.hp-guest-hero-headline {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    line-height: 1.25;
}
.hp-guest-hero-headline small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
    letter-spacing: 0;
}

/* Login sub-section inside hero */
.hp-guest-hero-login-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
}
/* Force the inline login partial to fit the dark hero */
.hp-guest-hero .hp-inline-login-wrap > div {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* Lighten label text inside the hero */
.hp-guest-hero .hp-inline-login-wrap label,
.hp-guest-hero .hp-inline-login-wrap .help-block {
    color: rgba(255,255,255,0.85);
}
/* Give inputs a slight contrast lift on the dark background */
.hp-guest-hero .hp-inline-login-wrap input.form-control {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.hp-guest-hero .hp-inline-login-wrap input.form-control::placeholder {
    color: rgba(255,255,255,0.45);
}
.hp-guest-hero .hp-inline-login-wrap input.form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    box-shadow: none;
}
/* Login button — white on dark background */
.hp-guest-hero .hp-inline-login-wrap .btn-primary {
    background: #fff;
    border-color: #fff;
    color: #2c5f8a;
    font-weight: 700;
}
.hp-guest-hero .hp-inline-login-wrap .btn-primary:hover {
    background: #e8f0f8;
    border-color: #e8f0f8;
    color: #1a3f60;
}

/* Pitch sub-section inside hero */
.hp-guest-hero-pitch-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}
.hp-guest-hero-pitch-title .fa {
    margin-right: 6px;
    opacity: 0.85;
}
.hp-guest-hero-pitch p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}
.hp-guest-hero .hp-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.hp-guest-hero .hp-benefits-list li {
    padding: 3px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
}
.hp-guest-hero .hp-benefits-list li::before {
    content: "\f00c";
    font-family: FontAwesome;
    color: #7ddc9a;
    margin-right: 7px;
    font-size: 11px;
}
.hp-guest-hero .hp-cost-block {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}
.hp-guest-hero .hp-cost-block strong {
    color: #fff;
}
.hp-guest-hero .btn-join {
    background: #4cae4c;
    border-color: #3e9a3e;
    color: #fff;
    font-weight: 700;
    width: 100%;
}
.hp-guest-hero .btn-join:hover {
    background: #3e9a3e;
    border-color: #357a35;
    color: #fff;
}

/* ---- YouTube + About section ----------------------------- */
.hp-yt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}
.hp-yt-header h3 {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    color: #333;
}
.hp-yt-channel-link {
    font-size: 12px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    color: #2c5f8a;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}
.hp-yt-channel-link:hover { color: #900; }
.hp-yt-channel-link .fa { margin-right: 4px; }

/* ---- Info column (right sidebar) ------------------------- */
.hp-info-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 12px;
    padding-bottom: 5px;
    border-top: 2px solid #c8e6c9;
}
.hp-course-dl dt {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-top: 8px;
    white-space: nowrap;
}
.hp-course-dl dd {
    font-size: 11px;
    color: #666;
    margin-left: 0;
    margin-bottom: 4px;
}
.hp-section-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 14px 0;
}

/* ---- CTA tile strip (Golf Genius / SCGA / Local Rules) --- */
.hp-cta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hp-cta-tile {
    flex: 1 1 calc(33.3333% - 12px);
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px 10px;
    border-radius: 7px;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: background 0.12s, border-color 0.12s, transform 0.1s;
    line-height: 1.2;
    font-family: var(--font-ui, 'Inter', 'Helvetica Neue', Arial, sans-serif);
}
.hp-cta-tile:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
}
.hp-cta-tile .hct-icon {
    font-size: 22px;
    margin-bottom: 6px;
    display: block;
}
.hp-cta-tile .hct-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
}
.hp-cta-tile.hct-success {
    background: var(--bs-success-btn, #2e7d32);
    border-color: var(--bs-success-btn, #2e7d32);
    color: #fff;
}
.hp-cta-tile.hct-success .hct-icon { color: #fff; }
.hp-cta-tile.hct-success:hover {
    background: var(--bs-success-btn-hover, #1b5e20);
    border-color: var(--bs-success-btn-hover, #1b5e20);
    color: #fff;
}
.hp-cta-tile.hct-info {
    background: var(--bs-info-btn, #17a2b8);
    border-color: var(--bs-info-btn, #17a2b8);
    color: #fff;
}
.hp-cta-tile.hct-info .hct-icon { color: #fff; }
.hp-cta-tile.hct-info:hover {
    background: var(--bs-info-btn-hover, #138496);
    border-color: var(--bs-info-btn-hover, #138496);
    color: #fff;
}
.hp-cta-tile.hct-warning {
    background: var(--bs-warning-btn, #d4970a);
    border-color: var(--bs-warning-btn, #d4970a);
    color: #fff;
}
.hp-cta-tile.hct-warning .hct-icon { color: #fff; }
.hp-cta-tile.hct-warning:hover {
    background: var(--bs-warning-btn-hover, #b07d08);
    border-color: var(--bs-warning-btn-hover, #b07d08);
    color: #fff;
}
.hp-cta-tile.hct-default {
    background: var(--bs-default-btn-bg, #eeeeee);
    border-color: #d0d0d0;
    color: var(--bs-default-btn-text, #333333);
}
.hp-cta-tile.hct-default .hct-icon { color: #555; }
.hp-cta-tile.hct-default:hover {
    background: var(--bs-default-btn-hover-bg, #d6d6d6);
    border-color: #bbb;
    color: var(--bs-default-btn-text, #333333);
}

/* ---- YouTube facade (deferred iframe load) --------------- */
.hp-yt-facade {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    background-color: #000;
}
.hp-yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(204,0,0,0.88);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.hp-yt-play-btn:hover,
.hp-yt-facade:hover .hp-yt-play-btn { background: rgba(170,0,0,1); }
.hp-yt-play-icon {
    display: block;
    width: 0; height: 0;
    border-style: solid;
    border-width: 11px 0 11px 22px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

/* ---- Responsive tweaks ----------------------------------- */
@media (max-width: 991px) {
    .hp-guest-hero-divider { display: none; }
    .hp-guest-hero-body { gap: 20px; }
    .hp-member-tile { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 767px) {
    .hp-guest-hero { padding: 20px 16px 18px; }
    .hp-guest-hero-headline { font-size: 17px; }
    .hp-member-tile { flex: 1 1 calc(50% - 10px); }
    .hp-events-panel .event-card-label { display: none; }
}


/* ---- Load-more button -------------------------------------------- */
.hp-event-hidden {
    display: none;
}
.hp-load-more-wrap {
    padding: 6px 10px 8px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.hp-load-more-btn {
    display: block;
    width: 100%;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid #dce8f4;
    border-radius: 4px;
    color: #2c5f8a;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    font-family: var(--font-ui, 'Inter', 'Helvetica Neue', Arial, sans-serif);
}
.hp-load-more-btn:hover {
    background: #e3edf8;
    border-color: #2c5f8a;
    color: #1a3f60;
}
.hp-load-more-btn .fa {
    margin-right: 5px;
}

/* ---- Championship highlight video grid (logged-in members) ------- */
.hp-champ-section {
    margin-bottom: 18px;
}
.hp-champ-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
    border-top: 2px solid #c8e6c9;
}
.hp-champ-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}
.hp-champ-section-label .fa {
    margin-right: 4px;
}
.hp-champ-yt-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2c5f8a;
    text-decoration: none !important;
    white-space: nowrap;
}
.hp-champ-yt-link:hover { color: #900; }
.hp-champ-yt-link .fa   { margin-right: 4px; }
.hp-champ-video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hp-champ-video-item {
    flex: 1 1 calc(25% - 10px);
    min-width: 140px;
}
.hp-champ-video-meta {
    margin-top: 5px;
}
.hp-champ-video-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c5f8a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-champ-video-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

/* Smaller play button for the championship video grid */
.hp-yt-play-btn-sm {
    width: 42px;
    height: 42px;
}
.hp-yt-play-btn-sm .hp-yt-play-icon {
    border-width: 8px 0 8px 16px;
    margin-left: 4px;
}

/* ---- Responsive: championship grid -------------------------------- */
@media (max-width: 767px) {
    .hp-champ-video-item { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 480px) {
    .hp-champ-video-item { flex: 1 1 100%; }
}
