/* AGA Golf Genius Leaderboard – agggl.css */

.agggl-wrapper {
    font-family: 'Georgia', serif;
    margin: 0 0 2rem 0;
    border: 1px solid #d4c89a;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* Header bar */
.agggl-header {
    background: #1a3a6b;
    color: #d4af37;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agggl-flag {
    font-size: 1.1rem;
    color: #d4af37;
}

/* Tab bar */
.agggl-tabs {
    background: #0f2345;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 2px solid #d4af37;
}

.agggl-tab {
    background: transparent;
    border: none;
    color: #a0b4cc;
    cursor: pointer;
    font-family: 'Georgia', serif;
    font-size: 0.92rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    padding: 12px 22px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
}

.agggl-tab:hover {
    background: #1a3a6b;
    color: #fff;
}

.agggl-tab.active {
    background: #1a3a6b;
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    margin-bottom: -2px;
}

.agggl-tab-ext {
    margin-left: auto;
    font-size: 0.82rem;
    color: #7a8fa8;
    padding-right: 18px;
}

.agggl-tab-ext:hover {
    color: #d4af37;
    background: transparent;
}

/* iFrame container */
.agggl-frame-wrap {
    background: #fff;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.agggl-frame-wrap iframe {
    display: block;
    border: none;
    width: 100%;
}

/* Loading skeleton */
.agggl-skeleton {
    position: absolute;
    inset: 0;
    background: #f8f6f0;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    gap: 14px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.agggl-skeleton.hidden {
    opacity: 0;
    pointer-events: none;
}

.agggl-skeleton-bar {
    background: linear-gradient(90deg, #e8e2d4 25%, #f4f0e6 50%, #e8e2d4 75%);
    background-size: 200% 100%;
    animation: agggl-shimmer 1.4s infinite;
    border-radius: 3px;
    height: 18px;
}

.agggl-skeleton-bar.wide  { width: 60%; }
.agggl-skeleton-bar.full  { width: 100%; }
.agggl-skeleton-bar.med   { width: 45%; }
.agggl-skeleton-bar.short { width: 30%; height: 14px; }
.agggl-skeleton-bar.header { width: 100%; height: 28px; background: linear-gradient(90deg, #1e3f73 25%, #1a3a6b 50%, #1e3f73 75%); background-size: 200% 100%; }

.agggl-skeleton-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #ede8da;
}

.agggl-skeleton-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e8e2d4 25%, #f4f0e6 50%, #e8e2d4 75%);
    background-size: 200% 100%;
    animation: agggl-shimmer 1.4s infinite;
    flex-shrink: 0;
}

.agggl-skeleton-row .agggl-skeleton-bar {
    flex: 1;
}

.agggl-skeleton-label {
    font-family: 'Georgia', serif;
    font-size: 0.78rem;
    color: #a09070;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 8px;
}

@keyframes agggl-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Credit line */
.agggl-credit {
    background: #f4f0e6;
    border-top: 1px solid #d4c89a;
    color: #6b6350;
    font-size: 0.78rem;
    margin: 0;
    padding: 8px 16px;
    text-align: right;
}

.agggl-credit a {
    color: #1a3a6b;
    text-decoration: none;
}

.agggl-credit a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .agggl-header {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    .agggl-tab {
        font-size: 0.78rem;
        padding: 10px 12px;
    }
    .agggl-tab-ext {
        display: none;
    }
}

/* Instruction sentence */
.agggl-intro {
    background: #f4f0e6;
    border-bottom: 1px solid #d4c89a;
    color: #4a3f2a;
    font-family: 'Georgia', serif;
    font-size: 0.88rem;
    margin: 0;
    padding: 10px 20px;
}

.agggl-intro strong {
    color: #1a3a6b;
}
