/* Top 100 Slots Demo 4 - Advanced List Design - Updated */

:root {
    --t100-bg: #0f111a;
    --t100-card-bg: #1a1d29;
    --t100-card-hover: #232838;
    --t100-accent: #14b8a6;
    --t100-accent-secondary: #3b82f6;
    --t100-text: #ffffff;
    --t100-text-muted: #8b9bb4;
    --t100-border: 1px solid rgba(255, 255, 255, 0.08);
    --t100-font-heading: 'Montserrat', sans-serif;
    --t100-font-body: 'Inter', sans-serif;
}

/* Full Width Page Container - Override Theme Styles */
.top-100-full-width-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--t100-bg);
}

.top-100-wrapper {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-family: var(--t100-font-body);
}

/* Hero Section - Reduced Top Spacing */
.t100-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.t100-title {
    font-family: var(--t100-font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.t100-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--t100-accent);
}

.t100-meta {
    text-align: right;
    font-size: 0.875rem;
    color: var(--t100-text-muted);
}

.t100-meta strong {
    color: var(--t100-accent);
}

/* Description Section */
.t100-description {
    margin-bottom: 3rem;
}

.t100-description p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--t100-text-muted);
    margin: 0;
}

/* Stats Section */
.t100-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.t100-stat-card {
    background: var(--t100-card-bg);
    border: 2px solid var(--t100-accent);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.t100-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.2);
}

.t100-stat-card .stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.5));
}

.t100-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.t100-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--t100-accent);
    font-family: var(--t100-font-heading);
    line-height: 1;
}

.t100-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--t100-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Quick Filters */
.t100-quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--t100-card-bg);
    border-radius: 12px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.t100-quick-filters .filter-label {
    font-weight: 700;
    color: var(--t100-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.t100-filter-chip {
    padding: 0.625rem 1.25rem;
    background: var(--t100-card-hover);
    border: 2px solid rgba(20, 184, 166, 0.2);
    color: var(--t100-text-muted);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--t100-font-body);
}

.t100-filter-chip:hover {
    border-color: var(--t100-accent);
    background: rgba(20, 184, 166, 0.1);
    color: var(--t100-accent);
    transform: translateY(-2px);
}

.t100-filter-chip.active {
    background: var(--t100-accent);
    border-color: var(--t100-accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

/* Controls */
.t100-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.t100-search,
.t100-provider-filter {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: var(--t100-card-bg);
    border: 2px solid var(--t100-accent);
    color: var(--t100-text);
    font-size: 1rem;
    border-radius: 8px;
    font-family: var(--t100-font-body);
    transition: all 0.3s ease;
}

.t100-search:focus,
.t100-provider-filter:focus {
    outline: none;
    border-color: var(--t100-accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.t100-search::placeholder {
    color: var(--t100-text-muted);
}

/* Sortable Headers */
.t100-header-row .sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    position: relative;
}

.t100-header-row .sortable:hover {
    color: var(--t100-accent);
}

.sort-arrows {
    display: inline-flex;
    flex-direction: column;
    margin-left: 0.25rem;
    vertical-align: middle;
    gap: 1px;
    font-size: 0.6rem;
}

.sort-arrows .sort-up,
.sort-arrows .sort-down {
    opacity: 0.3;
    transition: opacity 0.2s ease, color 0.2s ease;
    line-height: 0.5;
}

.sort-arrows .sort-up.active,
.sort-arrows .sort-down.active {
    opacity: 1;
    color: var(--t100-accent);
}

/* List Container */
.t100-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Header Row */
.t100-header-row {
    display: grid;
    grid-template-columns: 70px 2.5fr 1.5fr 1fr 1fr 1fr 160px;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--t100-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--t100-text-muted);
    gap: 1rem;
}

/* List Item Card */
.t100-item {
    display: grid;
    grid-template-columns: 70px 2.5fr 1.5fr 1fr 1fr 1fr 160px;
    align-items: center;
    background: var(--t100-card-bg);
    border: var(--t100-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    gap: 1rem;
}

.t100-item:hover {
    transform: translateX(5px);
    background: var(--t100-card-hover);
    border-color: var(--t100-accent);
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3);
}

/* Rank */
.t100-rank {
    font-family: var(--t100-font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--t100-text-muted);
    position: relative;
}

.t100-item[data-rank="1"] .t100-rank,
.t100-item[data-rank="2"] .t100-rank,
.t100-item[data-rank="3"] .t100-rank {
    color: var(--t100-text);
}

.t100-item[data-rank="1"] .t100-rank::after {
    content: '👑';
    font-size: 0.8rem;
    position: absolute;
    top: -5px;
    left: 20px;
}

/* Game Info */
.t100-game {
    display: flex;
    align-items: center;
}

.t100-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.t100-name {
    font-family: var(--t100-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--t100-text);
    line-height: 1.2;
}

/* Provider Column */
.t100-provider {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--t100-accent);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t100-provider a:hover {
    text-decoration: underline;
}

/* Stats */
.t100-stat {
    font-family: monospace;
    font-size: 0.9375rem;
    color: var(--t100-text);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.t100-stat-label {
    display: none;
    font-size: 0.7rem;
    color: var(--t100-text-muted);
    text-transform: uppercase;
}

.stat-high {
    color: #f87171;
}

.stat-med {
    color: #fbbf24;
}

.stat-low {
    color: #4ade80;
}

/* Actions */
.t100-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--t100-text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--t100-text);
}

.btn-icon-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-play-sm {
    padding: 0 1.25rem;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t100-accent);
    color: #000;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-play-sm:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

/* Disabled Demo Play Button */
.btn-play-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--t100-text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-play-disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

/* FAQ Section - Hacksaw Style Match */
.t100-faq {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 3rem 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 3px solid var(--t100-accent);
}

.t100-faq-title {
    font-family: var(--t100-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--t100-text);
    text-transform: uppercase;
    margin: 0 0 2rem 0;
    letter-spacing: 0.02em;
    text-align: center;
}

.t100-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.t100-faq-item:hover {
    border-color: var(--t100-accent);
    background: rgba(255, 255, 255, 0.05);
}

.t100-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.t100-faq-question h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--t100-text);
    margin: 0;
    text-align: left;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.t100-faq-question:hover h3 {
    color: var(--t100-accent);
}

/* Boxed Icon Style */
.t100-faq-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--t100-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 400;
    color: var(--t100-accent);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1.5rem;
    line-height: 1;
}

.t100-faq-item.active .t100-faq-icon {
    background: var(--t100-accent);
    color: #000;
    transform: none; /* Don't rotate the box, maybe change content or just highlight */
}

/* If you want rotation for the plus inside, we target a span or just rotate the whole box */
.t100-faq-item.active .t100-faq-icon {
    transform: rotate(45deg); /* Rotate the whole box like a diamond or just the symbol */
}

.t100-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.t100-faq-item.active .t100-faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.t100-faq-answer p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--t100-text-muted);
    margin: 0;
}

/* Responsive */
@media (min-width: 1920px) {
    .top-100-wrapper {
        max-width: 1800px;
    }
}

@media (max-width: 1024px) {
    .top-100-wrapper {
        padding: 1rem 1rem;
    }

    .t100-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .t100-quick-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .t100-filter-chip {
        text-align: center;
    }

    .t100-controls {
        flex-direction: column;
    }

    .t100-search,
    .t100-provider-filter {
        width: 100%;
    }

    .t100-header-row {
        display: none;
    }

    .t100-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .t100-rank {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        display: inline-block;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.25rem 0.75rem;
        border-radius: 100px;
    }

    .t100-game {
        margin-bottom: 0.5rem;
    }

    .t100-name {
        font-size: 1.25rem;
    }

    .t100-provider {
        margin-bottom: 1rem;
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .t100-stat {
        flex-direction: row;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 0.5rem;
    }

    .t100-stat-label {
        display: block;
    }

    .t100-actions {
        margin-top: 1rem;
        justify-content: stretch;
    }

    .btn-icon,
    .btn-play-sm {
        flex: 1;
        height: 44px;
    }
}

@media (max-width: 640px) {
    .top-100-wrapper {
        padding: 1rem 0.75rem;
    }

    .t100-stats {
        grid-template-columns: 1fr;
    }

    .t100-stat-card {
        padding: 1rem;
    }

    .t100-stat-card .stat-number {
        font-size: 2rem;
    }

    .t100-stat-card .stat-icon {
        font-size: 2rem;
    }
    
    .t100-hero {
        padding: 1rem 0 1.5rem 0;
    }
}
