/* ============================================
   Putrakop Liga - Public Site Stylesheet
   Premium Football League Management System
   Design Version: 2.0
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   1. CSS Variables
   ============================================ */
:root {
    --primary: #06265C;
    --primary-dark: #031735;
    --primary-light: #0A2E6E;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --border-gray: #D9DEE7;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --live-red: #E52525;
    --success: #16834B;
    --gold: #D9A441;
    --purple: #5B3AAE;
    --sidebar-width: 224px;
    --topbar-height: 76px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 0.5rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================
   3. Layout System (PUBLIC)
   ============================================ */
.public-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.public-layout {
    display: flex;
    min-height: 100vh;
}

.public-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--primary);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.public-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-topbar {
    height: var(--topbar-height);
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.public-content {
    flex: 1;
    padding: 24px;
    background: var(--light-gray);
}

.public-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* ============================================
   4. Public Sidebar Styles
   ============================================ */
.public-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.public-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.public-sidebar-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.public-sidebar-logo-text {
    display: flex;
    flex-direction: column;
}

.psb-title {
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}

.psb-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.public-sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.public-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1;
}

.public-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.public-sidebar-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-weight: 600;
}

.public-sidebar-link i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.public-sidebar-footer {
    padding: 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.public-sidebar-admin {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.public-sidebar-admin:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.public-sidebar-admin i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ============================================
   5. Topbar Styles
   ============================================ */
.public-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 20px;
}

.public-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.public-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.public-topbar-brand i {
    font-size: 28px;
    color: var(--gold);
}

.public-topbar-brand-text {
    display: flex;
    flex-direction: column;
}

.ptb-title {
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.ptb-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.public-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-topbar-admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.public-topbar-admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   6. Grid System
   ============================================ */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

/* ============================================
   7. Homepage Layout
   ============================================ */
.home-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.home-main {
    grid-column: span 9;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-sidebar {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   8. Hero Banner
   ============================================ */
.hero-banner {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 164, 65, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.7;
}

.hero-feature i {
    font-size: 14px;
}

/* ============================================
   9. Live Match Card (Right Sidebar)
   ============================================ */
.live-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gray);
    overflow: hidden;
}

.live-card-header {
    background: var(--primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-card-title {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.live-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-red);
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

.live-card-body {
    padding: 20px 16px;
    text-align: center;
}

.live-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.live-team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    overflow: hidden;
    flex-shrink: 0;
}

.live-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.live-team-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.live-team-code {
    font-size: 11px;
    color: var(--text-muted);
}

.live-score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 36px;
    font-weight: 800;
    color: var(--live-red);
    line-height: 1;
}

.live-score-divider {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 400;
}

.live-minute {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}

.live-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-gray);
}

.live-card-btn {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.live-card-btn:hover {
    background: var(--primary-light);
}

/* ============================================
   10. Upcoming / Results Card (Right sidebar)
   ============================================ */
.info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gray);
    overflow: hidden;
}

.info-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-body {
    padding: 0;
}

.info-match-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.info-match-item:last-child {
    border-bottom: none;
}

.info-match-item:hover {
    background: var(--light-gray);
}

.info-match-teams {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-match-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.info-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-gray);
}

.info-card-btn {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.info-card-btn:hover {
    background: var(--primary-light);
}

/* ============================================
   11. Standings Section
   ============================================ */
.standings-section {
    margin-bottom: 32px;
}

.standings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.standings-group-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gray);
    overflow: hidden;
}

.standings-group-header {
    background: var(--primary);
    padding: 14px 18px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.standings-group-title {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: var(--light-gray);
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.standings-table th:first-child,
.standings-table td:first-child {
    text-align: center;
    width: 40px;
}

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

.standings-table td {
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tbody tr {
    transition: background 0.2s ease;
}

.standings-table tr:hover {
    background: rgba(6, 38, 92, 0.03);
}

.rank-badge {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.rank-1 {
    background: var(--gold);
    color: var(--white);
}

.rank-2 {
    background: #c0c0c0;
    color: var(--white);
}

.rank-3,
.rank-4,
.rank-5 {
    background: var(--light-gray);
    color: var(--text-secondary);
}

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

.team-logo-xs {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-initials-xs {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-win {
    color: var(--success);
    font-weight: 600;
}

.stat-draw {
    color: var(--text-muted);
    font-weight: 600;
}

.stat-loss {
    color: var(--live-red);
    font-weight: 600;
}

.col-points {
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   12. Section Titles
   ============================================ */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--primary-light);
}

.group-badge {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}

.group-badge.group-a {
    background: #dbeafe;
    color: #1e40af;
}

.group-badge.group-b {
    background: #fce7f3;
    color: #be185d;
}

/* ============================================
   13. Match Card (General)
   ============================================ */
.match-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    transition: all 0.2s ease;
}

.match-card:hover {
    box-shadow: var(--shadow-strong);
}

.match-card-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-gray);
}

.match-card-body {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-team.away {
    flex-direction: row-reverse;
}

.team-logo-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--primary);
    overflow: hidden;
    flex-shrink: 0;
}

.team-logo-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.match-team .team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.match-score {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-score .score {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.match-score .score-sep {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.match-score .vs-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================
   14. Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-upcoming {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-live {
    background: var(--live-red);
    color: var(--white);
    animation: pulse 1.5s infinite;
}

.badge-paused {
    background: #fef3c7;
    color: #92400e;
}

.badge-finished {
    background: #d1fae5;
    color: #065f46;
}

/* ============================================
   15. Pulsing Dot Animation
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-red);
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   16. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

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

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

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

.btn-success:hover {
    background: #12703d;
}

.btn-danger {
    background: var(--live-red);
    color: var(--white);
}

.btn-danger:hover {
    background: #c91e1e;
}

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

.btn-warning:hover {
    background: #c49539;
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    background: var(--border-gray);
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ============================================
   17. Knockout Bracket
   ============================================ */
.bracket-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.bracket-container {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: max-content;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 220px;
    flex-shrink: 0;
}

.bracket-round-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.bracket-match {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-card);
    padding: 16px;
    min-width: 200px;
    transition: all 0.2s ease;
}

.bracket-match:hover {
    box-shadow: var(--shadow-strong);
}

.bracket-match-final {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(217, 164, 65, 0.3);
}

.bracket-match-final:hover {
    box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.4);
}

.bracket-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.bracket-slot.tbd {
    opacity: 0.4;
    font-style: italic;
}

.bracket-team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    overflow: hidden;
}

.bracket-team-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bracket-team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.bracket-score {
    font-size: 14px;
    font-weight: 700;
    margin-left: auto;
    color: var(--text-primary);
}

.bracket-vs {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 0;
}

.bracket-winner-badge {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    text-align: center;
}

.bracket-match-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.third-place-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 220px;
    flex-shrink: 0;
    margin-top: 16px;
}

.champion-section {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    color: var(--white);
    margin-top: 24px;
}

.trophy-icon {
    font-size: 64px;
    margin-bottom: 16px;
    line-height: 1;
}

.champion-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.champion-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.champion-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.champion-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ============================================
   18. Footer Banner
   ============================================ */
.footer-banner {
    background: var(--primary);
    padding: 48px 24px;
    text-align: center;
    color: var(--white);
}

.footer-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    color: var(--white);
}

.footer-banner-text p {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
    color: var(--white);
}

/* ============================================
   19. Copyright Footer
   ============================================ */
.footer-copyright {
    background: var(--primary-dark);
    padding: 20px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.footer-copyright-content {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ============================================
   20. Filter Bar
   ============================================ */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-gray);
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.filter-date {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-gray);
    font-size: 13px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-date:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================
   21. Stat Cards (homepage stats)
   ============================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gray);
    text-align: center;
    transition: all 0.2s ease;
}

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

.stat-card-icon {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 24px;
}

.stat-card-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* ============================================
   22. Schedule Page
   ============================================ */
.schedule-date-group {
    margin-bottom: 24px;
}

.schedule-date-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    padding: 12px 0;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

/* ============================================
   23. Teams Page
   ============================================ */
.teams-section {
    margin-bottom: 32px;
}

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

.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gray);
    text-align: center;
    transition: all 0.2s ease;
}

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

.team-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--light-gray);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-initials {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.team-card-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.team-card-code {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.team-card-group {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

.team-card-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
}

.team-card-stat {
    text-align: center;
}

.team-card-stat .stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.team-card-stat .stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   24. Page Content
   ============================================ */
.page-content {
    padding-bottom: 32px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

.page-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================
   25. Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

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

.mb-0 {
    margin-bottom: 0;
}

.mb-16 {
    margin-bottom: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease forwards;
}

.animate-slideIn {
    animation: slideIn 0.4s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.3s ease forwards;
}

/* ============================================
   26. No Live State
   ============================================ */
.no-live {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

.no-live-icon {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 32px;
}

.no-live p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   27. Standings Legend
   ============================================ */
.standings-legend {
    margin-top: 24px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gray);
    font-size: 13px;
    color: var(--text-secondary);
}

.standings-legend p {
    margin: 4px 0;
    line-height: 1.6;
}

.standings-legend strong {
    color: var(--text-primary);
}

/* ============================================
   28. Table Responsive Wrapper
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   29. Standings Cards (mobile alternative)
   ============================================ */
.standings-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.standings-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.standings-card-qualified {
    border-left: 3px solid var(--gold);
}

.standings-card-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.standings-card-team {
    flex: 1;
    min-width: 0;
}

.standings-card-team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.standings-card-team-code {
    font-size: 11px;
    color: var(--text-muted);
}

.standings-card-points {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================
   30. Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   31. Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.container-narrow {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ============================================
   32. Live Section (homepage)
   ============================================ */
.live-section {
    margin-bottom: 32px;
}

.live-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--live-red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    animation: pulse 1.5s infinite;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* ============================================
   33. Shimmer Animation
   ============================================ */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   34. Additional Layout Utilities
   ============================================ */
.d-flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

/* ============================================
   35. Cards Grid
   ============================================ */
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================
   36. Match Grid (shared)
   ============================================ */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ============================================
   37. Upcoming / Results Sections
   ============================================ */
.upcoming-section {
    margin-bottom: 32px;
}

.results-section {
    margin-bottom: 32px;
}

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

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

/* ============================================
   38. Chart Container
   ============================================ */
.chart-container {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gray);
    margin-top: 20px;
}

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

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   39. Misc / Divider
   ============================================ */
.divider {
    height: 1px;
    background: var(--border-gray);
    margin: 24px 0;
}

.text-gold {
    color: var(--gold);
}

.text-white {
    color: var(--white);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--live-red);
}

.text-warning {
    color: var(--gold);
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   40. Empty Message
   ============================================ */
.empty-message {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-message .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-message p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ============================================
   41. Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .home-main {
        grid-column: span 12;
    }

    .home-sidebar {
        grid-column: span 12;
    }

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

    .grid-12 {
        grid-template-columns: repeat(6, 1fr);
    }

    .col-span-4,
    .col-span-5,
    .col-span-6,
    .col-span-7,
    .col-span-8,
    .col-span-9,
    .col-span-10,
    .col-span-11,
    .col-span-12 {
        grid-column: span 6;
    }

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

    .bracket-container {
        gap: 24px;
    }

    .bracket-round {
        min-width: 200px;
    }

    .bracket-match {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .public-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .public-sidebar.open {
        transform: translateX(0);
    }

    .public-sidebar-overlay.active {
        display: block;
    }

    .public-main {
        margin-left: 0;
    }

    .public-sidebar-toggle {
        display: flex;
    }

    .public-content {
        padding: 16px;
    }

    .hero-banner {
        padding: 24px;
        min-height: 140px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-features {
        flex-direction: column;
        gap: 8px;
    }

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

    .col-span-1,
    .col-span-2,
    .col-span-3,
    .col-span-4,
    .col-span-5,
    .col-span-6,
    .col-span-7,
    .col-span-8,
    .col-span-9,
    .col-span-10,
    .col-span-11,
    .col-span-12 {
        grid-column: span 1;
    }

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

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

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .page-title {
        font-size: 20px;
    }

    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .live-score-display {
        font-size: 28px;
    }

    .champion-section {
        padding: 24px;
    }

    .champion-name {
        font-size: 20px;
    }

    .trophy-icon {
        font-size: 48px;
    }

    .footer-banner {
        padding: 32px 16px;
    }

    .footer-banner-text h3 {
        font-size: 16px;
    }

    .footer-copyright-content {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .live-match-row {
        flex-direction: column;
        gap: 16px;
    }

    .live-score-display {
        font-size: 24px;
    }

    .match-card-body {
        padding: 12px;
    }

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

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

    .upcoming-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   42. Print Styles
   ============================================ */
@media print {
    .public-sidebar,
    .public-topbar,
    .footer-banner,
    .footer-copyright,
    .filter-bar,
    .public-sidebar-overlay {
        display: none !important;
    }

    .public-main {
        margin-left: 0 !important;
    }

    .public-content {
        padding: 0 !important;
    }

    .match-card,
    .info-card,
    .live-card,
    .standings-group-card,
    .team-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* ============================================
   43. Focus States (Accessibility)
   ============================================ */
.public-sidebar-link:focus-visible,
.filter-btn:focus-visible,
.btn:focus-visible,
.info-card-btn:focus-visible,
.live-card-btn:focus-visible,
.section-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================
   44. Selection Styles
   ============================================ */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   45. Transition Defaults
   ============================================ */
.transition-all {
    transition: all 0.2s ease;
}

.transition-slow {
    transition: all 0.3s ease;
}

/* ============================================
   End of Putrakop Liga Stylesheet
   ============================================ */
