/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --glass-bg: rgba(20, 20, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --accent-gold: #c9a227;
    --accent-glow: rgba(201, 162, 39, 0.4);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: #0f0f13;
    overflow-x: hidden;
}

/* Background Tier 1: Graphic (Dashboard/Landing) */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: url('../assets/images/inspiring_athlete_sunrise.png') no-repeat center center/cover;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.8) 100%);
}

/* Background Tier 3: Functional (Leagues/Teams) - Dark Gradient */
.bg-tier3 {
    background: radial-gradient(circle at top center, #2a2a35 0%, #1a1a20 40%, #0f0f13 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Layout */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
}

p {
    line-height: 1.6;
}

/* Quote Components */
.quote-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #e0e0e0;
    max-width: 1000px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
    padding: 20px;
    border-radius: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Internals */
.bg-glass-input {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.bg-glass-input:focus {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-color: var(--accent-gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2) !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.card-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    color: var(--accent-gold);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* Lists */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.item-content {
    flex: 1;
}

.item-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.item-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-open {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-pending {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, #a6841c, #c9a227);
    color: #000;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
    filter: brightness(1.1);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Utility */
.text-gold {
    color: var(--accent-gold);
}

.text-sm {
    font-size: 0.875rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quote-text {
        font-size: 1.1rem;
        padding: 15px;
    }
}

/* --- Tier 3 Functional Overrides --- */

/* Brackets */
.bracket-container {
    overflow-x: auto;
    padding: 1rem 0;
}

.match {
    background: rgba(255, 255, 255, 0.05) !important;
    /* Dark glass */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0;
}

.participant {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.participant.winner {
    color: #4ade80 !important;
    /* Bright green */
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.match::after,
.match::before {
    background-color: rgba(255, 255, 255, 0.2) !important;
    /* Brighter connectors */
}

/* Tables / Lists */
table {
    color: #e0e0e0;
}

th {
    color: var(--accent-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.5);
    /* Gold with opacity */
    border-radius: 4px;
    transition: background 0.3s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 162, 39, 0.9);
}

.custom-scrollbar::-webkit-scrollbar-corner {
    background: transparent;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}