/* ============================================================
   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:   #939598;
    --fifg-grey-text:  #555555;
    --fifg-border:     #000000;
    --fifg-white:      #ffffff;
    --fifg-heading-font: 'Bangers', cursive;
    --fifg-body-font:    'Outfit', sans-serif;
}

/* ── Wrapper ── */
.fifg-lb-wrapper {
    font-family: var(--fifg-body-font);
    margin: 0 auto;
    padding: 40px 20px 0px;
    color: #222;
}

/* ── Section Heading ── */
.fifg-lb-section-heading {
    text-align: center;
    margin-bottom: 80px;
}
.fifg-lb-section-heading h2 {
    font-family: 'BYOM';
    font-size: 54px;
    letter-spacing: 1px;
    color: var(--fifg-green-dark) !important;
    line-height: 1;
    margin-bottom: 34px;
    font-weight: 700; /* Bangers is naturally bold */
}
.fifg-lb-underline {
    width: 100%;
    height: 9px;
    background: #2FAF73;
    margin: 0 auto;
}

/* ── Leaderboard block spacing ── */
.fifg-lb-block {
    margin-bottom: 60px;
}

/* ── Group section spacing ── */
.fifg-group-section {
    margin-bottom: 80px;
}

/* ── Tab Group container ── */
.fifg-tab-group {
    /* nothing needed — children define layout */
}

/* ── Tab Bar ── */
.fifg-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-left: 50px;
    padding-right: 50px;
}

.fifg-tab-btn {
    flex: 1;
    min-width: 110px;
    padding: 20px 10px;
    border: none;
    border-bottom: 6px solid #bbb;
    border-right: 1px solid #bbb;
    background: var(--fifg-grey-tab);
    color: var(--fifg-grey-text);
    font-family: var(--fifg-body-font);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    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) {
    border: 1px solid #2FAF73;
    background-color: #939598;
    padding: 10px 10px 8px 10px !important;
    border-bottom: 3px solid #2FAF73;
}

/* ── iFrame Panel ── */
.fifg-iframe-panel {
    display: none;
    border: 1px solid var(--fifg-border);
    border-radius: 20px;
    background: var(--fifg-white);
    overflow: hidden;
}

.fifg-iframe-panel.fifg-panel-active {
    display: block;
    border: 1px solid black;
    padding: 10px;
}
.fifg-tab-active {
    background-color: #005B50 !important;
    border-bottom: 6px solid #2FAF73 !important;
    pointer-events: none;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;

}

.fifg-iframe-panel iframe {
    display: block;
    width: 100%;
    border: none;
    min-height: 720px;
}

@media (max-width: 770px){
.fifg-lb-section-heading h2{
font-size: 41px;
margin-bottom: 20px;
}
.fifg-tab-btn{
padding: 12px 12px 10px 10px;
    font-size: 18px;
}  
.fifg-tab-btn:hover:not(.fifg-tab-active) {
    border: 1px solid #2FAF73;
    background-color: #939598;
    border-bottom: 3px solid #2FAF73;
}

/* ── Mobile ── */
@media (max-width: 700px) {
     .fifg-tab-active{
      border-bottom: 3px solid #2FAF73 !important;  
     }
     .fifg-group-section{
     margin-bottom: 40px;
     }
    .fifg-lb-wrapper {
        padding: 20px 12px 40px;
    }
    .fifg-lb-section-heading{
    margin-bottom: 40px;
    }

    .fifg-lb-section-heading h2 {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .fifg-tab-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-left: 8px;
        gap: 8px;
    }
    .fifg-tab-bar::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .fifg-tab-btn {
        min-width: 90px;
        font-size: 10px;
        padding: 10px 8px;
        flex-shrink: 0;
        border-bottom: 3px solid #bbb;
        padding: 10px 10px 8px 10px !important;
    }
}
