/* ==========================================================================
   宜春市足球球迷协会官网 - 主样式表
   ========================================================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e2f44;
    --accent: #e74c3c;
    --accent-light: #ff6b6b;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #bdc3c7;
    --border: #e0e6ed;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: rgba(255,255,255,0.85);
    margin-left: 15px;
    font-size: 13px;
}

.header-top a:hover {
    color: #fff;
}

.header-main {
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary);
}

.logo h1 i {
    color: var(--accent);
    margin-right: 8px;
}

.logo img {
    max-height: 50px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    border-top: 3px solid var(--accent);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    padding: 12px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.nav-list li a i {
    margin-right: 5px;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
    flex: 1;
    padding: 30px 0;
}

/* ==========================================================================
   Hero / Slider
   ========================================================================== */

.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.slide-content p {
    font-size: 14px;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: auto;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: rgba(0,0,0,0.8);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.slider-dot.active {
    background: #fff;
    width: 25px;
    border-radius: 5px;
}

/* ==========================================================================
   Section Title
   ========================================================================== */

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-title h2 {
    font-size: 20px;
    color: var(--primary);
}

.section-title h2 i {
    margin-right: 8px;
    color: var(--accent);
}

.section-title .more-link {
    font-size: 14px;
    color: var(--text-light);
}

/* ==========================================================================
   Cards Grid
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   News List
   ========================================================================== */

.news-list {
    list-style: none;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 15px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list-img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.news-list-content {
    flex: 1;
}

.news-list-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.news-list-content h3 a {
    color: var(--text);
}

.news-list-content h3 a:hover {
    color: var(--primary-light);
}

.news-list-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-list-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #219a52;
    color: #fff;
}

.btn-danger {
    background: var(--accent);
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-info {
    background: var(--info);
    color: #fff;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
    color: var(--text);
}

.form-control:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

.form-control.error {
    border-color: var(--accent);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: auto;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th,
table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

table tr:hover td {
    background: #f8f9fa;
}

table .status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.active { background: #d4edda; color: #155724; }
.status-badge.rejected { background: #f8d7da; color: #721c24; }
.status-badge.ongoing { background: #cce5ff; color: #004085; }
.status-badge.ended { background: #e2e3e5; color: #383d41; }

/* ==========================================================================
   Standing Table (积分榜)
   ========================================================================== */

.standing-table th:first-child {
    width: 50px;
    text-align: center;
}

.standing-table td {
    text-align: center;
    vertical-align: middle;
}

.standing-table .rank-num {
    font-weight: 700;
    font-size: 18px;
}

.standing-table .rank-1 { color: #f1c40f; }
.standing-table .rank-2 { color: #95a5a6; }
.standing-table .rank-3 { color: #cd7f32; }

/* ==========================================================================
   Detail Page
   ========================================================================== */

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

.page-header h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    font-size: 13px;
    color: var(--text-light);
}

.page-header .breadcrumb a {
    color: var(--text-light);
}

.page-header .breadcrumb a:hover {
    color: var(--primary-light);
}

.detail-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.detail-content h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text);
}

.detail-meta {
    font-size: 13px;
    color: var(--text-light);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.detail-body {
    font-size: 15px;
    line-height: 1.8;
}

.detail-body p {
    margin-bottom: 15px;
}

.detail-body img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 15px 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.sidebar-card ul li:last-child {
    border-bottom: none;
}

.sidebar-card ul li a {
    color: var(--text);
    font-size: 14px;
}

.sidebar-card ul li a:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   Auth Forms
   ========================================================================== */

.auth-container {
    max-width: 450px;
    margin: 40px auto;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    text-align: center;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 25px;
}

.auth-card h2 i {
    color: var(--accent);
    margin-right: 8px;
}

.auth-card .form-group {
    margin-bottom: 18px;
}

.auth-card .btn-block {
    margin-top: 10px;
}

.auth-links {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.auth-links a {
    color: var(--primary-light);
}

/* ==========================================================================
   Profile
   ========================================================================== */

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.profile-info h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-light);
    font-size: 14px;
}

.profile-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 25px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-card);
    border: none;
    color: var(--text);
}

.profile-tab:hover {
    background: #f0f4f8;
}

.profile-tab.active {
    background: var(--primary);
    color: #fff;
}

/* ==========================================================================
   Match Card
   ========================================================================== */

.match-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.match-card .match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
}

.match-card .team {
    font-size: 16px;
    font-weight: 600;
}

.match-card .score {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.match-card .score .divider {
    margin: 0 10px;
    color: var(--text-muted);
}

.match-card .match-info {
    font-size: 13px;
    color: var(--text-light);
}

.match-card .match-info i {
    margin-right: 5px;
}

.match-card.top-match {
    border-left: 4px solid var(--accent);
}

.match-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* ==========================================================================
   Player Card
   ========================================================================== */

.player-card {
    text-align: center;
}

.player-card .player-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.player-card .player-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.player-card .card-body {
    position: relative;
}

.player-card .player-name {
    font-size: 18px;
    font-weight: 600;
}

.player-card .player-position {
    color: var(--primary-light);
    font-size: 13px;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.filter-bar {
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-bar label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.filter-bar select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: #fff;
}

/* ==========================================================================
   Member Card
   ========================================================================== */

.member-card {
    text-align: center;
    padding: 20px;
}

.member-card .member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--border);
}

.member-card .member-name {
    font-size: 16px;
    font-weight: 600;
}

.member-card .member-level {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    background: var(--primary-light);
    color: #fff;
    margin-top: 5px;
}

.member-card .member-district {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.member-card .member-level.normal { background: #95a5a6; }
.member-card .member-level.senior { background: #f39c12; }
.member-card .member-level.council { background: #e74c3c; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ==========================================================================
   Forum
   ========================================================================== */

.forum-post {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: var(--transition);
}

.forum-post:hover {
    box-shadow: var(--shadow-lg);
}

.forum-post h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.forum-post h3 a {
    color: var(--text);
}

.forum-post .post-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.forum-post .post-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.forum-post .post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Sponsor
   ========================================================================== */

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

.sponsor-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.sponsor-card img {
    max-height: 80px;
    margin-bottom: 12px;
}

.sponsor-card h4 {
    font-size: 14px;
    color: var(--text);
}

/* ==========================================================================
   Organization
   ========================================================================== */

.org-section {
    margin-bottom: 30px;
}

.org-section h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.org-member {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.org-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--border);
}

.org-member h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.org-member .org-position {
    color: var(--primary-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.org-member p {
    font-size: 13px;
    color: var(--text-light);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-card);
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    color: var(--text-light);
}

/* ==========================================================================
   Alert / Message
   ========================================================================== */

.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    font-size: 14px;
}

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

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

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

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

/* ==========================================================================
   Modal / Announcement
   ========================================================================== */

.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    color: var(--primary);
}

.modal-header h3 i {
    margin-right: 8px;
    color: var(--accent);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 0;
    margin-top: 40px;
}

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

.footer-col h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-col h3 i {
    color: var(--accent);
    margin-right: 8px;
}

.footer-col h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 12px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-col p i {
    width: 20px;
    margin-right: 5px;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .slider-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list.show {
        display: flex;
    }
    
    .nav-list li a {
        padding: 10px 16px;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 4px;
    }
    
    .header-top-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-top-right a {
        margin: 0 8px;
    }
    
    .slider-container {
        height: 220px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .news-list li {
        flex-direction: column;
    }
    
    .news-list-img {
        width: 100%;
        height: 180px;
    }
    
    .match-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .match-card .score {
        font-size: 24px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .detail-content {
        padding: 15px;
    }
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
