/* styles.css */

/* =======================================
   Table Sorting Styles
   ======================================= */

.sortable {
    cursor: pointer;
}

.sort-arrow {
    display: inline-block;
    width: 1em;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.sort-arrow.inactive {
    color: #9ca3af;
}

.sort-arrow.active {
    color: white;
}

/* =======================================
   Table Row Hover and Transition Styles
   ======================================= */

tbody tr:hover {
    background-color: #f3f4f6;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    transform: translateY(-2px);
    cursor: default;
}

/* =======================================
   Global HTML Transitions
   ======================================= */

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =======================================
   Filter Select Styles
   ======================================= */

select[id^="filter-"] {
    min-height: 2.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #9ca3af;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

select[id^="filter-"]:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 4px rgb(0 0 0 / 0.1);
}

select[multiple][id^="filter-"] {
    height: auto;
}

select[id^="filter-"] option {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

select[multiple][id^="filter-"] option:checked {
    background: #000000 linear-gradient(0deg, #000000 0%, #000000 100%);
    color: #ffffff;
}

/* =======================================
   Media Queries for Responsive Table
   ======================================= */

@media (min-width: 768px) {
    #table-container {
        max-height: auto;
        overflow-y: auto;
    }
    thead {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    #chart-container {
        height: 500px !important;
    }
}


/* =======================================
   Supplemental Content Sections
   ======================================= */

.fgi-content-section {
    margin-top: 2rem;
}

.fgi-content-inner {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    padding: 1.5rem;
}

.fgi-content-inline {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.fgi-content-block > * + * {
    margin-top: 1rem;
}

.fgi-section-title {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.fgi-section-lead,
.fgi-section-text,
.fgi-card-text,
.fgi-faq p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.fgi-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.fgi-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 8px 20px -18px rgb(0 0 0 / 0.4);
}

.fgi-card-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.fgi-card-value {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.fgi-kpi-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.25rem;
    color: #374151;
}

.fgi-kpi-list li {
    line-height: 1.6;
}

.fgi-faq {
    display: grid;
    gap: 0.75rem;
}

.fgi-faq details {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
}

.fgi-faq summary {
    align-items: center;
    color: #111827;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    gap: 1rem;
    line-height: 1.5;
    list-style: none;
}

.fgi-faq summary::after {
    color: #6b7280;
    content: '+';
    flex-shrink: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.fgi-faq summary::-webkit-details-marker {
    display: none;
}

.fgi-faq details[open] summary {
    margin-bottom: 0.75rem;
}

.fgi-faq details[open] summary::after {
    content: '−';
}

.fgi-top-seasons-list {
    display: grid;
    gap: 0.875rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.fgi-top-season-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.125rem;
}

.fgi-top-season-rank {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fgi-top-season-name {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.fgi-top-season-score {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .fgi-content-inner {
        padding: 2rem;
    }

    .fgi-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* End Supplemental Content Sections */
