/* ============================================================
   FIFG Acapulco Leaderboard — Plugin Stylesheet
   File: /wp-content/plugins/fifg-leaderboard/assets/fifg-leaderboard.css
   ============================================================ */

:root {
    --fifg-green:      #1a7a5e;
    --fifg-green-dark: #155f49;
    --fifg-grey-tab:   #d6d6d6;
    --fifg-grey-text:  #555555;
    --fifg-border:     #d0d0d0;
    --fifg-white:      #ffffff;
    --fifg-heading-font: 'Bangers', cursive;
    --fifg-body-font:    'Outfit', sans-serif;
}

/* ── Wrapper ── */
.fifg-lb-wrapper {
    font-family: var(--fifg-body-font);
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    color: #222;
}

/* ── Section Heading ── */
.fifg-lb-section-heading {
    text-align: center;
    margin-bottom: 28px;
}
.fifg-lb-section-heading h2 {
    font-family: var(--fifg-heading-font);
    font-size: 2.4rem;
    letter-spacing: 1px;
    color: var(--fifg-green);
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 400; /* Bangers is naturally bold */
}
.fifg-lb-underline {
    width: 80px;
    height: 3px;
    background: var(--fifg-green);
    margin: 0 auto;
}

/* ── Leaderboard block spacing ── */
.fifg-lb-block {
    margin-bottom: 60px;
}

/* ── Group section spacing ── */
.fifg-group-section {
    margin-bottom: 40px;
}

/* ── Tab Group container ── */
.fifg-tab-group {
    /* nothing needed — children define layout */
}

/* ── Tab Bar ── */
.fifg-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.fifg-tab-btn {
    flex: 1;
    min-width: 110px;
    padding: 12px 10px;
    border: none;
    border-right: 1px solid #bbb;
    background: var(--fifg-grey-tab);
    color: var(--fifg-grey-text);
    font-family: var(--fifg-body-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    outline: none;
    line-height: 1.2;
}

.fifg-tab-btn:last-child {
    border-right: none;
}

.fifg-tab-btn.fifg-tab-active {
    background: var(--fifg-green-dark);
    color: #ffffff;
}

.fifg-tab-btn:hover:not(.fifg-tab-active) {
    background: #c5c5c5;
    color: #222;
}

/* ── iFrame Panel ── */
.fifg-iframe-panel {
    display: none;
    border: 1px solid var(--fifg-border);
    border-top: none;
    background: var(--fifg-white);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.fifg-iframe-panel.fifg-panel-active {
    display: block;
}

.fifg-iframe-panel iframe {
    display: block;
    width: 100%;
    border: none;
    min-height: 720px;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .fifg-lb-wrapper {
        padding: 24px 12px 40px;
    }

    .fifg-lb-section-heading h2 {
        font-size: 1.8rem;
    }

    .fifg-tab-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .fifg-tab-bar::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .fifg-tab-btn {
        min-width: 90px;
        font-size: 11.5px;
        padding: 10px 8px;
        flex-shrink: 0;
    }
}