:root {
    --primary-color: #CCFF00;
    --primary-hover: #b3e600;
    --bg-color: #1a1a1a;
    --card-bg: #262626;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --danger-color: #ff4444;
    --nav-height: 70px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: #000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: background 0.3s, transform 0.1s;
    display: inline-block;
    text-align: center;
}

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

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

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    height: 60vh;
    background-color: #111; /* Fallback */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

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

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #333;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Featured Card for Shop */
.card-featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
    transform: scale(1.02);
    position: relative;
    z-index: 10;
}

.card-featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.4);
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #000;
    padding: 0.2rem 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 20;
}

/* Placeholders */
.placeholder-overlay, .placeholder-calendar, .placeholder-community {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #555;
    letter-spacing: 2px;
}

.placeholder-overlay {
    background: linear-gradient(45deg, #111, #222);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.placeholder-calendar {
    background: linear-gradient(45deg, #1a1a1a, #333);
}

.placeholder-community {
    background: linear-gradient(45deg, #0a0a0a, #2a2a2a);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #000;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.sponsor-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.sponsor-logo {
    height: 50px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.sponsor-logo:hover {
    opacity: 1;
}

/* Team */
.team-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #222;
    background:
        radial-gradient(1000px 500px at 20% 20%, rgba(204,255,0,0.18), transparent 60%),
        radial-gradient(900px 600px at 80% 30%, rgba(0,136,255,0.12), transparent 65%),
        linear-gradient(180deg, #050505 0%, #111 100%);
}

.team-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    mask-image: radial-gradient(circle at 35% 25%, rgba(0,0,0,1), rgba(0,0,0,0) 70%);
}

.team-hero-inner {
    position: relative;
    padding: 4.5rem 0 3.5rem 0;
}

.team-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(204,255,0,0.35);
    background: rgba(204,255,0,0.06);
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.team-hero-title {
    margin-top: 1.2rem;
    font-size: 3.2rem;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
}

.team-hero-subtitle {
    margin-top: 1rem;
    max-width: 900px;
    color: #bbb;
    font-size: 1.1rem;
}

.team-stats {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.team-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    overflow: hidden;
    position: relative;
}

.team-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 120px at 30% 0%, rgba(204,255,0,0.14), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.team-stat-label {
    position: relative;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 800;
}

.team-stat-value {
    position: relative;
    margin-top: 0.35rem;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
}

.team-controls {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.team-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #2f2f2f;
    background: rgba(255,255,255,0.03);
    color: #ddd;
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, border-color 0.2s, transform 0.12s;
}

.team-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(204,255,0,0.55);
}

.team-chip.active {
    background: rgba(204,255,0,0.12);
    border-color: rgba(204,255,0,0.7);
    color: var(--primary-color);
}

.team-search {
    min-width: 260px;
    max-width: 360px;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.team-search input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid #333;
    border-radius: 999px;
    color: #fff;
}

.team-search input:focus {
    outline: none;
    border-color: rgba(204,255,0,0.8);
}

.team-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

.team-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(700px 220px at 40% 0%, rgba(204,255,0,0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(204,255,0,0.6);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

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

.team-card:focus-visible {
    outline: 2px solid rgba(204,255,0,0.8);
    outline-offset: 3px;
}

.team-card-inner {
    position: relative;
    padding: 1.6rem 1.5rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 260px;
}

.team-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(204,255,0,0.65);
    box-shadow: 0 0 0 6px rgba(204,255,0,0.08);
    background: #222;
    flex: 0 0 auto;
    position: relative;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.team-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #0a0a0a;
    background: linear-gradient(135deg, rgba(204,255,0,0.95), rgba(0,136,255,0.65));
    position: absolute;
    inset: 0;
}

.team-meta {
    min-width: 0;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.2;
}

.team-role {
    margin-top: 0.25rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: #bbb;
    font-size: 0.85rem;
    font-weight: 700;
}

.team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #333;
    background: rgba(0,0,0,0.25);
    color: #ddd;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.team-bio {
    color: #aaa;
    line-height: 1.5;
    font-size: 0.95rem;
    min-height: 2.9em;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-socials {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.25rem;
    margin-top: auto;
}

.team-socials a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    background: rgba(255,255,255,0.03);
    transition: transform 0.18s, border-color 0.18s, color 0.18s, background 0.18s;
}

.team-socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(204,255,0,0.55);
    color: var(--primary-color);
    background: rgba(204,255,0,0.06);
}

.team-empty {
    margin-top: 2rem;
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    background: rgba(255,255,255,0.03);
    text-align: center;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .team-hero-inner { padding: 3.2rem 0 2.6rem 0; }
    .team-hero-title { font-size: 2.2rem; }
    .team-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-search { max-width: none; min-width: 100%; justify-content: stretch; }
}
