/* ==================== */
/* Imports              */
/* ==================== */
@import url('nav.css');

/* ==================== */
/* CSS Variables        */
/* ==================== */
:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #2d3748;
    --nav-bg: #667eea;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* ==================== */
/* Global Reset         */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
}

/* ==================== */
/* Buttons              */
/* ==================== */
.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-text {
    color: var(--primary-color);
    padding: 8px 12px;
}

.btn-text:hover {
    background: var(--bg-light);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* ==================== */
/* Main Content         */
/* ==================== */
.main-content {
    min-height: calc(100vh - 70px - 300px);
    padding: 0 0 40px 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: #2d2f43;
    color: white;
    padding: 80px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 L1200,0 L1200,100 Q600,20 0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* Stats Bar            */
/* ==================== */
.stats-bar {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 15px;
    padding: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* ==================== */
/* Filters Section      */
/* ==================== */
.filters-section {
    background: #ececec;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.filters-section.collapsed .filters-header {
    padding-bottom: 0;
    margin-bottom: 0;
}

.filters-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
}

.filter-toggle {
    padding: 8px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-toggle:hover {
    background: var(--border-color);
}

.filter-toggle svg {
    transition: transform 0.3s ease;
}

.filters-section.collapsed .filter-toggle svg {
    transform: rotate(-90deg);
}

.filters-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
}

.filters-section.collapsed .filters-content {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.filters-section.collapsed {
    padding: 20px 30px;
}

.filters-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.filter-input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(241, 73, 2, 0.1);
}

.filters-actions {
    text-align: center;
}

/* ==================== */
/* Tournaments Section  */
/* ==================== */
.tournaments-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    color: var(--text-light);
    transition: var(--transition);
}

.view-btn:hover {
    background: var(--bg-light);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Tournament Cards */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.tournaments-list {
    width: 100%;
}

/* Table-style list view */
.tournaments-table {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tournaments-table-header {
    display: grid;
    grid-template-columns: 120px 2fr 1.5fr 100px 120px 150px;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.tournaments-table-body {
    display: flex;
    flex-direction: column;
}

.tournaments-table-row {
    display: grid;
    grid-template-columns: 120px 2fr 1.5fr 100px 120px 150px;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    align-items: center;
}

.tournaments-table-row:hover {
    background: #f8f9fa;
}

.tournaments-table-row:last-child {
    border-bottom: none;
}

.table-col {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-site {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-site .site-logo-small {
    flex-shrink: 0;
}

.col-site .site-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.col-tournament .tournament-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.col-tournament .badge-restricted {
    font-size: 0.7rem;
    padding: 2px 6px;
}

.col-game {
    color: var(--text-light);
    font-size: 0.85rem;
}

.col-buyin,
.col-prize {
    font-weight: 600;
}

.col-time {
    font-size: 0.85rem;
}

/* Responsive: Mobile view */
@media (max-width: 1024px) {
    .tournaments-table-header {
        display: none;
    }

    .tournaments-table-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .table-col::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        margin-right: 10px;
        color: var(--text-light);
        min-width: 100px;
    }

    .col-site::before {
        content: "Site: ";
    }

    .col-tournament::before {
        content: "Tournament: ";
    }

    .col-game::before {
        content: "Game: ";
    }

    .col-buyin::before {
        content: "Buy-in: ";
    }

    .col-prize::before {
        content: "Prize Pool: ";
    }

    .col-time::before {
        content: "Start Time: ";
    }
}

.tournament-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.tournament-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tournament-card h3 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.tournament-site {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Unique colors for each poker site */
.tournament-site[data-site="PokerStars"] {
    background: #E74C3C;
}

.tournament-site[data-site="GGPoker"] {
    background: #FF6B35;
}

.tournament-site[data-site="PartyPoker"] {
    background: #2ECC71;
}

.tournament-site[data-site="888Poker"] {
    background: #3498DB;
}

.tournament-site[data-site="iPoker"] {
    background: #9B59B6;
}

.tournament-site[data-site="Unibet"] {
    background: #1ABC9C;
}

.tournament-site[data-site="WPN"] {
    background: #E67E22;
}

.tournament-site[data-site="Chico"] {
    background: #F39C12;
}

.tournament-info {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.tournament-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    font-size: 0.9rem;
}

.meta-label {
    color: var(--text-lighter);
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.meta-value {
    color: var(--text-color);
    font-weight: 600;
}

.badge-gtd {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
}

.badge-restricted {
    display: inline-block;
    background: var(--warning-color);
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 10px;
    right: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.tournament-card {
    position: relative;
}

.tournament-card.tournament-restricted {
    border-left: 3px solid var(--warning-color);
    background: linear-gradient(to right, rgba(255, 193, 7, 0.05), transparent);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    color: var(--text-lighter);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
}

/* ==================== */
/* Pagination           */
/* ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination button {
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--text-light);
    color: var(--text-light);
}

.pagination-info {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==================== */
/* Footer               */
/* ==================== */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== */
/* Modal Styles         */
/* ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-lighter);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-color);
}

.modal h2 {
    margin-bottom: 25px;
    color: var(--secondary-color);
}

/* ==================== */
/* Form Styles          */
/* ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(241, 73, 2, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label.compact {
    font-size: 0.8rem;
    padding: 2px 0;
}

.game-prefs-row {
    gap: 15px;
}

.game-prefs-section {
    margin-bottom: 10px;
}

.game-prefs-section > label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-color);
}

.game-prefs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 8px;
    background: var(--bg-light);
    padding: 8px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.game-prefs-grid .checkbox-label {
    margin: 0;
    white-space: nowrap;
}

.game-prefs-grid .checkbox-label input[type="checkbox"] {
    margin-right: 4px;
    transform: scale(0.9);
}

/* Filter Section Styles for Online Poker Page */
.filter-section {
    margin-bottom: 20px;
}

.filter-section-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.filter-checkbox-grid {
    display: grid;
    gap: 4px 12px;
    background: var(--bg-light);
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.filter-checkbox-grid.sites-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.filter-checkbox-grid.games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.filter-checkbox-grid .checkbox-label {
    margin: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 4px 0;
}

.filter-checkbox-grid .checkbox-label input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .filter-checkbox-grid.sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-checkbox-grid.games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Filters Modal Styles */
.tab-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.filters-common-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.filters-common-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

#filtersModal .game-prefs-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

@media (max-width: 768px) {
    #filtersModal .game-prefs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-actions {
    margin-top: 25px;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ==================== */
/* Profile Tabs         */
/* ==================== */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== */
/* Alert Messages       */
/* ==================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==================== */
/* Responsive Design    */
/* ==================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .stat-value {
        font-size: 2rem;
    }

    .tournaments-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 651px) and (max-width: 992px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 650px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .filters-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .filters-section.collapsed {
        padding: 12px 15px;
        margin-bottom: 15px;
    }

    .filters-header {
        padding-bottom: 15px;
    }

    .filters-section.collapsed .filters-header {
        padding-bottom: 0;
    }

    .filters-header h2 {
        font-size: 1.25rem;
    }

    .filter-toggle {
        padding: 6px;
    }

    .btn-text {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .filters-toolbar {
        margin-bottom: 15px;
    }

    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Full width for non-compact filters on mobile */
    .filter-group:not(.filter-compact) {
        grid-column: span 2;
    }

    .filter-group label {
        font-size: 0.85rem;
    }

    .filter-input {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .filters-actions {
        margin-top: 15px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .tournament-card {
        padding: 15px;
    }

    .tournament-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .meta-item {
        font-size: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tournaments-section {
        padding: 20px 15px;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }
}

/* ==================== Largest Buy-in Tournaments Section ==================== */
.largest-buyins-section {
    margin-top: 50px;
    padding: 40px 0;
}

.largest-buyins-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.largest-buyins-section .section-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.buyins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.buyin-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.buyin-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.buyin-box h3 {
    margin: 0 0 5px 0;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.buyin-subtitle {
    margin: 0 0 20px 0;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.buyin-box h3 + .buyin-list {
    margin-top: 20px;
}

.buyin-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.buyin-list li {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.buyin-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.buyin-list li:first-child {
    padding-top: 0;
}

.buyin-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 4px;
}

.buyin-tournament {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.buyin-festival {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.buyin-festival:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.buyin-list .no-data {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Responsive: Stack on tablet and mobile */
@media (max-width: 992px) {
    .buyins-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .largest-buyins-section {
        margin-top: 40px;
        padding: 30px 0;
    }

    .largest-buyins-section .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .buyin-box {
        padding: 20px;
    }

    .buyin-amount {
        font-size: 1.1rem;
    }

    .buyin-tournament {
        font-size: 0.9rem;
    }
}
