/* ===================== CUSTOM PROPERTIES ===================== */
:root {
    --gold:       #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark:  #9A7530;
    --green:      #1A3C2B;
    --green-mid:  #245238;
    --green-light:#2E6B49;
    --white:      #FFFFFF;
    --off-white:  #F8F5EE;
    --text-dark:  #111111;
    --text-muted-custom: #888888;
}

/* ===================== BASE ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

/* ===================== TOPBAR ===================== */
.topbar {
    background-color: var(--green);
    border-bottom: 1px solid var(--gold-dark);
}
.topbar a,
.topbar span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.3s;
}
.topbar a:hover { color: var(--gold-light); }
.topbar .gold-icon { color: var(--gold); }

/* ===================== NAVBAR ===================== */
.navbar-custom {
    background: transparent;
    position: absolute;
    width: 100%;
    top: 41px;
    left: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s;
}
.navbar-custom.sticky {
    position: fixed;
    top: 0;
    background: var(--green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.navbar-custom .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white) !important;
    text-decoration: none;
}
.navbar-custom .navbar-brand span { color: var(--gold); }
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}
.navbar-custom .nav-link:hover { color: var(--gold-light) !important; }
.navbar-custom .navbar-toggler {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===================== BUTTONS ===================== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white) !important;
    border: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 0.55rem 1.6rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.5);
    transform: translateY(-1px);
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold) !important;
    border: 2px solid var(--gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 0.55rem 1.6rem;
    transition: all 0.3s;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--white) !important;
}

/* ===================== HERO ===================== */
#hero {
    min-height: 100vh;
    background:
        linear-gradient(160deg, rgba(10, 25, 18, 0.88) 0%, rgba(26, 60, 43, 0.75) 60%, rgba(0, 0, 0, 0.6) 100%),
        url('../img/hero-pickleball.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(201, 168, 76, 0.03) 40px,
        rgba(201, 168, 76, 0.03) 80px
    );
}
.hero-edition-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-title .gold { color: var(--gold-light); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    /*max-width: 580px;*/
    line-height: 1.7;
}
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 1.3rem; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===================== SECTION TITLES ===================== */
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--green);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.section-title.light { color: var(--white); }
.gold-bar {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 1rem auto;
}
.gold-bar.left { margin: 1rem 0; }

/* ===================== STATS BAR ===================== */
.stats-bar {
    background: var(--green);
    padding: 2.5rem 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.3rem;
}
.stat-divider {
    width: 1px;
    background: rgba(201, 168, 76, 0.3);
    align-self: stretch;
}

/* ===================== SECTIONS ===================== */
.section-light  { background: var(--off-white); }
.section-dark   { background: var(--green); }
.section-white  { background: var(--white); }

/* ===================== PHASE CARDS ===================== */
.phase-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
    cursor: default;
}
.phase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 60, 43, 0.18);
}
.phase-card .phase-header {
    background: linear-gradient(135deg, var(--green), var(--green-mid));
    padding: 2rem;
    position: relative;
}
.phase-card .phase-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.phase-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}
.phase-card .phase-body {
    background: var(--white);
    padding: 2rem;
    padding-top: 1.5rem;
}
.phase-card .phase-title {
    color: var(--green);
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.phase-card .phase-desc {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===================== SKILL ITEMS ===================== */
.skill-item {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: all 0.35s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.skill-item:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 60, 43, 0.12);
}
.skill-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: var(--gold);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(26, 60, 43, 0.25);
    transition: transform 0.35s;
}
.skill-item:hover .skill-icon { transform: scale(1.1) rotate(-5deg); }
.skill-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.skill-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}
.skill-points {
    display: inline-block;
    margin-top: 0.8rem;
    background: var(--off-white);
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
}

/* ===================== CHAMPIONSHIP / SKILLS MASTER ===================== */
.championship-section {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
    position: relative;
    overflow: hidden;
}
.championship-section::before {
    content: '🏆';
    position: absolute;
    font-size: 20rem;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.04;
    pointer-events: none;
}
.trophy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--gold-dark);
    color: var(--gold-light);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.ranking-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    border-left: 3px solid var(--gold);
    margin-bottom: 0.75rem;
    transition: background 0.3s;
}
.ranking-row:hover { background: rgba(255, 255, 255, 0.12); }
.ranking-pos {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    width: 30px;
}
.ranking-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}
.ranking-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
}

/* ===================== REGISTRATION ===================== */
.registration-section { background: var(--off-white); }
.reg-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26, 60, 43, 0.1);
    overflow: hidden;
}
.reg-card .reg-header {
    background: linear-gradient(135deg, var(--green), var(--green-mid));
    padding: 2.5rem;
    text-align: center;
}
.reg-card .reg-body { padding: 2.5rem; }
.form-control-custom {
    border: 2px solid #e8e3d8;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}
.form-control-custom:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
    outline: none;
}
.form-label-custom {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.4rem;
    display: block;
}

/* ===================== HALL OF FAME — PLAYER CARDS ===================== */
.hof-player-card {
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.35s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.hof-player-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(201, 168, 76, 0.55);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.hof-skill-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--white);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 10px rgba(201, 168, 76, 0.35);
}
.hof-silhouette {
    position: relative;
    width: 80px;
    height: 110px;
    margin: 0 auto 0.75rem;
}
.hof-silhouette svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.hof-silhouette-lg {
    width: 110px;
    height: 150px;
}
.hof-question {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(201, 168, 76, 0.5);
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
    pointer-events: none;
    animation: pulse-question 3s ease-in-out infinite;
}
@keyframes pulse-question {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 0.9; }
}
.hof-player-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}
.hof-record-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

/* Master card special */
.hof-master-card {
    border: 1px solid rgba(201, 168, 76, 0.45);
    background: rgba(201, 168, 76, 0.06);
    padding: 2rem 2.5rem;
    border-radius: 20px;
}
.hof-master-card:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.15);
}
.hof-master-crown {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: float-crown 3s ease-in-out infinite;
}
@keyframes float-crown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.hof-section {
    background: var(--green);
    position: relative;
    overflow: hidden;
}
.hof-section::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.06);
}
.hof-card {
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}
.hof-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
}
.hof-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hof-card h5 { color: var(--gold-light); font-size: 1rem; }
.hof-card p  { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }
.coming-soon-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.2);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    margin-top: 0.5rem;
}

/* ===================== CLUB STRIP ===================== */
.club-strip {
    background: var(--white);
    border-top: 1px solid #e8e3d8;
    border-bottom: 1px solid #e8e3d8;
    padding: 1.5rem 0;
}

/* ===================== FOOTER ===================== */
.footer-main {
    background: var(--text-dark);
    padding: 4rem 0 2rem;
}
.footer-main .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--white);
}
.footer-main .footer-logo span { color: var(--gold); }
.footer-main p  { color: rgba(255, 255, 255, 0.5); font-size: 0.88rem; line-height: 1.8; }
.footer-main h6 {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.footer-main a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.88rem;
    display: block;
    line-height: 2.2;
    transition: color 0.3s;
}
.footer-main a:hover { color: var(--gold-light); }
.footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--white) !important;
}
.footer-divider { border-color: rgba(255, 255, 255, 0.08); }
.footer-bottom {
    background: #0a0a0a;
    padding: 1.2rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}
.footer-bottom a { color: var(--gold-dark); text-decoration: none; }

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.5);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green); color: var(--gold); }

/* ===================== UTILITIES ===================== */
.gold-text   { color: var(--gold); }
.green-text  { color: var(--green); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .navbar-custom { position: relative; top: 0; background: var(--green); }
    .navbar-custom.sticky { position: sticky; }
    #hero { min-height: 85vh; padding-top: 2rem; }
    .stat-divider { display: none; }
}