/* discovery.css - Modern Tournament Discovery Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #22d3ee;
    --dark: #0f172a;
    --dark-light: #1e293b;
}

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ===== Header/Navigation ===== */
.nav-discovery {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    height: 60px;
}

.nav-discovery .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-discovery .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-discovery .logo img {
    height: 28px;
}

.nav-logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sport-dropdown {
    position: relative;
}

.sport-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    line-height: 1;
    cursor: pointer;
}

.sport-type-badge:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

.sport-type-badge svg {
    width: 8px;
    height: 8px;
    transition: transform 0.2s;
}

.sport-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.sport-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sport-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.sport-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sport-dropdown-item.active {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

/* Profile dropdown */
.profile-dropdown {
    position: relative;
}

.profile-dropdown .nav-link,
.profile-dropdown .user-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.profile-dropdown .nav-link svg,
.profile-dropdown .user-profile-link svg {
    width: 8px;
    height: 8px;
}

.user-nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.user-nav-links a,
.user-nav-links .nav-link {
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.2;
}

.user-nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.user-profile-link {
    color: #a5b4fc !important;
    font-weight: 600;
}

.user-profile-link:hover {
    color: #fff !important;
}

.user-nav-links .logout-form {
    display: inline-flex;
    align-items: center;
}

.user-nav-links .logout-button {
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.user-nav-links .logout-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-discovery .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-discovery .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-discovery .nav-link {
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.2;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.2;
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.nav-btn-ghost {
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.375rem 0.625rem;
}

.nav-btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu button {
    width: 100%;
    text-align: left;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.lang-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.lang-dropdown-menu button.active {
    color: var(--accent);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    padding: 0.375rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .nav-discovery .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-discovery .nav-links.show {
        display: flex;
    }
    .nav-discovery .nav-links .nav-link,
    .nav-discovery .nav-links .nav-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    .nav-discovery .nav-links .lang-dropdown {
        width: 100%;
    }
    .nav-discovery .nav-links .lang-dropdown .nav-btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .user-nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
    }
    .user-nav-links a,
    .user-nav-links .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    .user-nav-links .logout-form {
        width: 100%;
    }
    .user-nav-links .logout-button {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* ===== Hero Section ===== */
.hero-discovery {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem 2.5rem;
    display: flex;
    align-items: center;
}

.hero-discovery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated grid pattern */
.hero-discovery::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #a855f7 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
    display: inline-flex;
    align-items: baseline;
    gap: 2.5rem;
    margin: 0 auto 1.25rem;
}

.hero-stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-stat-sep {
    display: none;
}

.hero-stat-num {
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.875rem;
    font-style: italic;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .hero-discovery {
        padding: 4.5rem 1rem 2rem;
        overflow-x: hidden;
    }
    .hero-content {
        width: 100%;
        overflow-x: hidden;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0 0.5rem;
    }
    .hero-stat-item {
        gap: 0.25rem;
    }
    .hero-stat-num {
        font-size: 1.5rem;
    }
    .hero-stat-label {
        font-size: 0.7rem;
    }
    .sport-filters {
        padding: 0 0.5rem;
        width: 100%;
    }
    .city-ticker {
        width: 100%;
        margin-top: 1rem;
    }
    .hero-cta-group {
        padding: 0 0.5rem;
    }
    .hero-cta-primary,
    .hero-cta-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 380px) {
    .hero-stats {
        gap: 0.75rem;
    }
    .hero-stat-num {
        font-size: 1.25rem;
    }
    .hero-stat-label {
        font-size: 0.65rem;
    }
}

/* Sport Filters */
.sport-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    margin-top: 1rem;
}

.sport-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}

.sport-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.sport-chip .count {
    background: rgba(99, 102, 241, 0.4);
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Hero CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 3rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* City Ticker */
.city-ticker {
    margin-top: 1.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.city-ticker-track {
    display: flex;
    gap: 0.75rem;
    animation: ticker 30s linear infinite;
    width: max-content;
}

.city-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .hero-cta-group {
        flex-direction: column;
        padding: 0 1rem;
    }
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
    }
}

/* ===== Competition Section ===== */
.competition-section {
    background: #f8fafc;
    padding: 4rem 1.5rem;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.filter-group select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    transition: all 0.2s;
}

.filter-group select:hover {
    border-color: var(--primary);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-result {
    margin-left: auto;
    font-size: 0.8125rem;
    color: #64748b;
}

@media (max-width: 640px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        width: 100%;
    }
    .filter-group select {
        flex: 1;
    }
    .filter-result {
        margin-left: 0;
        text-align: center;
    }
}

/* Create Competition Dropdown */
.create-competition-dropdown {
    position: relative;
    margin-left: auto;
}

.create-competition-dropdown .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.create-competition-dropdown .btn-primary:hover {
    background: #4f46e5;
}

.create-comp-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.create-comp-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.create-comp-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.create-comp-dropdown-item:hover {
    background: #f1f5f9;
    color: #6366f1;
}

.create-comp-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.create-comp-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.create-comp-dropdown-item:only-child {
    border-radius: 8px;
}

@media (max-width: 640px) {
    .create-competition-dropdown {
        width: 100%;
        margin-left: 0;
    }
    .create-competition-dropdown .btn-primary {
        width: 100%;
        justify-content: center;
    }
    .create-comp-dropdown-menu {
        left: 0;
        right: 0;
    }
}

/* Filter Badges */
.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 0.25rem;
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-badge:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

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

.filter-badge.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (max-width: 640px) {
    .filter-badges {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }
}

/* Competition Grid */
.competition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Competition Card */
.competition-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.competition-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}

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

.competition-card:hover .card-image {
    transform: scale(1.08);
}

.sport-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    letter-spacing: 0.05em;
}

/* 진행중 - 초록 */
.status-badge.status-ongoing {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* 예정 - 파랑 */
.status-badge.status-upcoming {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* 완료 - 회색 */
.status-badge.status-completed {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.card-meta .meta-divider {
    margin: 0 0.375rem;
    color: #cbd5e1;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.card-info-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #64748b;
}

.card-info-item svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}

.card-info-item.admin-only {
    color: #f59e0b;
    font-style: italic;
}

.card-info-item.admin-only svg {
    color: #f59e0b;
}

.card-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.card-date svg {
    width: 16px;
    height: 16px;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s;
}

.competition-card:hover .card-action {
    color: var(--primary);
}

.card-action svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.competition-card:hover .card-action svg {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.3;
}

/* ===== Load More Button ===== */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.load-more-btn svg {
    transition: transform 0.2s ease;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

.load-more-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer-discovery {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0 1.5rem;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 500px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

@media (max-width: 500px) {
    .footer-brand {
        align-items: center;
    }
}

.footer-brand img {
    height: 24px;
}

.footer-brand-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.footer-company-info span {
    font-size: 0.75rem;
    color: #475569;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 500px) {
    .footer-section {
        align-items: center;
    }
}

.footer-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.footer-link {
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 0.375rem;
}

@media (max-width: 500px) {
    .footer-social {
        justify-content: center;
    }
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #64748b;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

.footer-copyright {
    color: #475569;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #94a3b8;
}

/* Legacy support */
.footer-content,
.footer-main,
.footer-links {
    display: none;
}
.footer-top,
.footer-bottom {
    display: flex;
}
.footer-top {
    display: grid;
}
