/* ========================================
   LEGA AUGUSTA - Main Stylesheet
   Colors: Gold/Bronze + Dark Warm Stone tones (from legaphone.jpg)
   ======================================== */

:root {
    --gold: #c8a84e;
    --gold-light: #e0c97a;
    --gold-dark: #a08030;
    --red: #8b1a1a;
    --red-light: #b22222;
    --red-dark: #5c1010;
    --bg-dark: #1a150e;
    --bg-card: #241e14;
    --bg-card-alt: #2c2418;
    --bg-nav: #120e08;
    --text: #e0d5b7;
    --text-muted: #9a9080;
    --text-white: #f5f0e0;
    --border: #3a3228;
    --success: #27ae60;
    --danger: #e74c3c;
    --draw: #7f8c8d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

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

/* ---- TOP BAR / BREAKING NEWS ---- */
.top-bar {
    background: var(--red-dark);
    color: var(--gold-light);
    font-size: 0.75rem;
    padding: 4px 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 600;
}

/* ---- HEADER ---- */
.site-header {
    background: linear-gradient(180deg, var(--bg-nav) 0%, #1a150e 100%);
    border-bottom: 3px solid var(--gold);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 50px;
    width: auto;
    border-radius: 4px;
}

.header-logo .site-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}

.header-logo .site-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ---- NAVIGATION ---- */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(200, 168, 78, 0.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.3rem;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* ---- DROPDOWNS ---- */
.main-nav .has-dropdown {
    position: relative;
}

.main-nav .dropdown-toggle {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.main-nav .dropdown-toggle:hover,
.main-nav .dropdown-toggle.active,
.main-nav .has-dropdown.active-parent .dropdown-toggle {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(200, 168, 78, 0.05);
}

.main-nav .dropdown-toggle .caret {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
}

.main-nav .has-dropdown.open .dropdown-toggle .caret {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-nav);
    border: 1px solid var(--gold-dark);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    list-style: none;
    padding: 6px 0;
    z-index: 1100;
    flex-direction: column;
    gap: 0;
}

.main-nav .has-dropdown:hover .dropdown-menu,
.main-nav .has-dropdown.open .dropdown-menu,
.main-nav .has-dropdown:focus-within .dropdown-menu {
    display: flex;
}

.main-nav .dropdown-menu li { width: 100%; }

.main-nav .dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.main-nav .dropdown-menu a:hover,
.main-nav .dropdown-menu a.active {
    color: var(--gold);
    background: rgba(200, 168, 78, 0.08);
    border-left-color: var(--gold);
}

/* ---- HERO SECTION ---- */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #221510 50%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ---- SECTION HEADERS ---- */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.section-header h2 {
    font-size: 1.3rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.section-header .accent-bar {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), transparent);
}

/* ---- TEAMS GRID (HOME) ---- */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dark);
    box-shadow: 0 8px 25px rgba(200, 168, 78, 0.15);
}

.team-card:hover::before { opacity: 1; }

.team-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    padding: 8px;
}

.team-card .team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-card .team-president {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- TEAM DETAIL PAGE ---- */
.team-detail-header {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.team-detail-header img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    padding: 12px;
    flex-shrink: 0;
}

.team-detail-info h1 {
    font-size: 2rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.team-detail-info .president-name {
    font-size: 1rem;
    color: var(--text);
}

.team-detail-info .coach-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Club Attributes */
.club-attributes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.attribute-item {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.attribute-item .attr-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.attribute-item .attr-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
}

/* Long text sections */
.team-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.team-section h3 {
    font-size: 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.team-section p, .team-section .content {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* ---- CALENDAR / MATCHES ---- */
.matchday-group {
    margin-bottom: 24px;
}

.matchday-title {
    background: var(--red-dark);
    color: var(--gold);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px 6px 0 0;
}

.match-row {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    padding: 12px 16px;
    gap: 12px;
    transition: background 0.2s;
}

.match-row:last-child { border-radius: 0 0 6px 6px; }
.match-row:hover { background: var(--bg-card-alt); }

.match-home, .match-away {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.match-home {
    justify-content: flex-end;
    text-align: right;
}

.match-away {
    justify-content: flex-start;
    text-align: left;
}

.match-home img, .match-away img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.match-center {
    min-width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.match-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.match-status-done {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.match-row .match-result-link {
    background: var(--gold);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.2s;
}

.match-row .match-result-link:hover {
    background: var(--gold-light);
    color: var(--bg-dark);
}

.match-row .match-result-disabled {
    opacity: 0.5;
    cursor: default;
}

/* ---- STANDINGS TABLE ---- */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.standings-table thead th {
    background: var(--red-dark);
    color: var(--gold);
    padding: 10px 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.standings-table thead th:nth-child(2) { text-align: left; }

.standings-table tbody td {
    padding: 10px 8px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.standings-table tbody td:nth-child(2) { text-align: left; }

.standings-table tbody tr:hover {
    background: var(--bg-card-alt);
}

.standings-table .pos { font-weight: 700; color: var(--gold); }
.standings-table .pts { font-weight: 800; color: var(--text-white); font-size: 1rem; }

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.standings-table .team-cell img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

/* Last 5 results icons */
.form-icons {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.form-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
}

.form-icon.win { background: var(--success); }
.form-icon.loss { background: var(--danger); }
.form-icon.draw { background: var(--draw); }

/* ---- SCORERS / ASSISTS TABLE ---- */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.stats-table thead th {
    background: var(--red-dark);
    color: var(--gold);
    padding: 10px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: center;
}

.stats-table thead th:nth-child(3) { text-align: left; }

.stats-table tbody td {
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.stats-table tbody td:nth-child(2) { padding: 12px 4px; width: 32px; }
.stats-table tbody td:nth-child(3) { text-align: left; }

.stats-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    vertical-align: middle;
}

.stats-table tbody tr:hover { background: var(--bg-card-alt); }

.stats-table .player-cell .player-name {
    font-weight: 600;
    color: var(--text-white);
}

.stats-table .player-cell .player-team {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stats-table .stat-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gold);
}

/* ---- NEWS GRID (Sky Sport style) ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(200, 168, 78, 0.12);
    border-color: var(--gold-dark);
}

.news-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-card-alt);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-image .news-card-placeholder {
    object-fit: contain;
    padding: 20px;
    opacity: 0.3;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-card:hover .news-card-title {
    color: var(--gold);
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 10px;
}

.news-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination-btn, .pagination-num {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--bg-card);
}

.pagination-btn:hover, .pagination-num:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination-num.active {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* ---- ARTICLE DETAIL PAGE ---- */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-tag {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 2rem;
    color: var(--gold);
    line-height: 1.3;
    margin-bottom: 10px;
}

.article-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.article-hero {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}

/* Article prev/next navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
    max-width: 48%;
}

.article-nav-link:hover {
    border-color: var(--gold-dark);
    background: var(--bg-card-alt);
}

.article-nav-next { text-align: right; margin-left: auto; }

.article-nav-label {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.article-nav-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.article-nav-link:hover .article-nav-title {
    color: var(--text-white);
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--bg-nav);
    border-top: 2px solid var(--gold);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

.site-footer img {
    height: 60px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- ADMIN STYLES ---- */
.admin-body {
    background: #16120c;
}

.admin-header {
    background: var(--bg-nav);
    border-bottom: 2px solid var(--gold);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    color: var(--gold);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 8px 14px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
}

.admin-nav a:hover, .admin-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Login Form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-box img {
    height: 80px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.login-box h2 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-dark);
}

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

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

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

.btn-sm { padding: 6px 14px; font-size: 0.75rem; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover { background: var(--gold); color: var(--bg-dark); }

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 16px;
}

.admin-table th {
    background: var(--red-dark);
    color: var(--gold);
    padding: 10px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover { background: var(--bg-card-alt); }

.admin-table img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    vertical-align: middle;
}

/* Messages */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

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

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Quick stats on home */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quick-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--gold);
}

.quick-stat-card h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Page title */
.page-title {
    font-size: 1.6rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.back-link:hover { color: var(--gold); }

/* Tab navigation for stats */
.tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.tab-nav a {
    padding: 12px 24px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-nav a:hover, .tab-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* No data message */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .main-nav .has-dropdown { width: 100%; }

    .main-nav .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--gold-dark);
        border-radius: 0;
        background: rgba(0,0,0,0.25);
        padding: 0;
        margin: 0 0 6px 12px;
    }

    .main-nav .has-dropdown.open .dropdown-menu { display: flex; }
    .main-nav .has-dropdown:hover .dropdown-menu { display: none; }
    .main-nav .has-dropdown.open:hover .dropdown-menu { display: flex; }

    .main-nav .dropdown-menu a {
        padding: 10px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .hero h1 { font-size: 1.4rem; }

    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .team-card { padding: 16px 10px; }
    .team-card img { width: 60px; height: 60px; }

    .team-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .team-detail-info h1 { font-size: 1.4rem; }

    .match-row {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .match-home, .match-away {
        justify-content: center;
        flex: unset;
        width: 100%;
        font-size: 0.85rem;
    }

    .match-home { justify-content: center; }
    .match-away { justify-content: center; }

    .match-center { min-width: unset; width: 100%; }

    .standings-table, .stats-table {
        font-size: 0.8rem;
    }

    .standings-table td, .standings-table th,
    .stats-table td, .stats-table th {
        padding: 6px 4px;
    }

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

    .article-title { font-size: 1.4rem; }
    .article-nav { flex-direction: column; }
    .article-nav-link { max-width: 100%; }
    .article-nav-next { text-align: left; }

    .two-col { grid-template-columns: 1fr; }

    .admin-nav { gap: 4px; }
    .admin-nav a { padding: 6px 8px; font-size: 0.7rem; }

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

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-logo .site-title { font-size: 1.1rem; }

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

    .desktop-only { display: none; }
}

/* ==========================================
   COPPAH AUGUSTA - dedicated styles
   ========================================== */

.admin-nav-group {
    color: var(--gold-dark);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 6px 8px 14px;
    border-left: 1px solid var(--border);
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

/* Section titles for the cup pages */
.cup-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 16px;
    color: var(--gold);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cup-section-title::before,
.cup-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.cup-section-title span {
    background: var(--bg-card);
    padding: 6px 16px;
    border: 1px solid var(--gold-dark);
    border-radius: 999px;
    white-space: nowrap;
}

.cup-matchday-header {
    margin: 28px 0 10px;
}

.cup-groups-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cup-group-box {
    flex: 1;
    min-width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.cup-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    background: rgba(0,0,0,0.25);
    padding: 7px 14px;
    border-bottom: 1px solid var(--border);
}

.cup-section-ko span {
    background: linear-gradient(135deg, var(--red-dark), var(--bg-card));
    border-color: var(--red-light);
    color: var(--gold-light);
}

.cup-section-final span {
    background: linear-gradient(135deg, var(--gold-dark), var(--red-dark));
    border-color: var(--gold);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(200, 168, 78, 0.35);
}

/* Group cards - cup standings */
.cup-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

.cup-group-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.cup-group-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.cup-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}

.cup-group-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 4px var(--gold-dark);
}

.cup-group-label {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.cup-standings-table {
    border: none;
    border-radius: 0;
}

.cup-standings-table thead th {
    background: var(--bg-card-alt);
}

.cup-standings-table tbody tr.cup-qualified {
    background: rgba(200, 168, 78, 0.06);
    box-shadow: inset 3px 0 0 var(--gold);
}

.cup-standings-table tbody tr.cup-qualified:hover {
    background: rgba(200, 168, 78, 0.1);
}

.cup-qual-marker {
    color: var(--gold);
    font-size: 0.75rem;
    margin-right: 2px;
}

.cup-qual-note {
    padding: 10px 16px 14px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bracket */
.cup-bracket {
    margin-top: 30px;
}

.bracket-stage {
    margin-bottom: 30px;
}

.bracket-stage-label {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    font-weight: 700;
    text-align: center;
}

.bracket-pairs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.bracket-pair {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.bracket-pair:hover {
    transform: translateY(-2px);
    border-color: var(--gold-dark);
}

.bracket-slot-label {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--gold);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 999px;
}

.bracket-team {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card-alt);
    border: 1px solid transparent;
    border-radius: 8px;
    margin-top: 8px;
    transition: all 0.2s;
}

.bracket-team img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
}

.bracket-team-name {
    flex: 1;
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.9rem;
}

.bracket-team-score {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gold);
    min-width: 28px;
    text-align: center;
}

.bracket-team.bracket-winner {
    background: linear-gradient(135deg, rgba(200,168,78,0.15), rgba(200,168,78,0.05));
    border-color: var(--gold);
}

.bracket-team.bracket-winner .bracket-team-name { color: var(--gold-light); }

.bracket-agg {
    text-align: center;
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bracket-pending {
    text-align: center;
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: italic;
}

.bracket-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

/* Final card */
.bracket-stage-final {
    margin-top: 40px;
}

.cup-final-label {
    font-size: 1rem;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(200,168,78,0.5);
}

.cup-final-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--bg-card) 0%, #2a1f10 50%, var(--bg-card) 100%);
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 30px 20px;
    margin-top: 12px;
    box-shadow: 0 0 30px rgba(200,168,78,0.18), inset 0 0 30px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.cup-final-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(200,168,78,0.12), transparent 60%);
    pointer-events: none;
}

.cup-final-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.cup-final-team img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border: 2px solid var(--gold-dark);
}

.cup-final-team.cup-final-winner img {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(200,168,78,0.6);
}

.cup-final-name {
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    text-align: center;
}

.cup-final-team.cup-final-winner .cup-final-name {
    color: var(--gold-light);
}

.cup-final-center {
    text-align: center;
    z-index: 1;
    min-width: 140px;
}

.cup-final-vs {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 4px;
}

.cup-final-score {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(200,168,78,0.4);
}

.cup-final-date,
.cup-final-pdf {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cup-final-pdf {
    color: var(--gold);
    text-decoration: underline;
}

.cup-final-winner-label {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.cup-leg-badge {
    display: inline-block;
    background: var(--red-dark);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ko-row {
    border-color: var(--gold-dark);
}

@media (max-width: 768px) {
    .cup-final-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 16px;
        gap: 14px;
    }

    .cup-final-team img { width: 70px; height: 70px; }
    .cup-final-score { font-size: 1.6rem; }
    .cup-section-title { font-size: 0.95rem; gap: 8px; }
    .cup-section-title span { padding: 5px 12px; font-size: 0.85rem; }

    .admin-nav-group { display: none; }
}
