/* Clubs Page Styles */

:root {
    --primary-bg: #0f1423;
    --secondary-bg: #1a1f2e;
    --glass-bg: rgba(30, 40, 70, 0.5);
    --text-main: #ffffff;
    --text-secondary: #b0b8c8;
    --neon-blue: #00e0ff;
    --neon-purple: #7b00ff;
    --accent-pink: #ff0055;
    --accent-red: #ff3333;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header-content h1.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.03em;
}

.page-header-content p.page-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.btn-create-club {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    color: var(--text-main);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 224, 255, 0.3);
}

.btn-create-club:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 224, 255, 0.5);
}

/* Search and Filter Section */
.search-filter-section {
    margin-bottom: 2rem;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.search-bar svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.search-bar input:focus + svg {
    color: #00e0ff;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(15, 20, 35, 0.98);
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 224, 255, 0.15);
    backdrop-filter: blur(20px);
}

.search-results-content {
    padding: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.search-result-item:hover {
    background: rgba(0, 224, 255, 0.08);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2), rgba(123, 0, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 224, 255, 0.3);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 224, 255, 0.5);
}

/* Club Filters */
.club-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
    background: rgba(0, 224, 255, 0.15);
    border-color: rgba(0, 224, 255, 0.5);
    color: #00e0ff;
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
}

.filter-btn.active:hover {
    background: rgba(0, 224, 255, 0.2);
    box-shadow: 0 0 24px rgba(0, 224, 255, 0.3);
}

/* Section Title */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 3rem 0 1.5rem 0;
    letter-spacing: 0.02em;
}

/* Featured Clubs Section */
.featured-clubs-section {
    margin-bottom: 3rem;
}

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

.featured-club-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 0.875rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-club-card:hover {
    border-color: rgba(0, 224, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 224, 255, 0.2);
    transform: translateY(-4px);
}

.club-cover {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.club-info {
    padding: 1.5rem;
    flex: 1;
}

.club-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

.club-type {
    color: var(--neon-blue);
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.club-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat strong {
    color: var(--text-main);
}

.btn-join-club {
    background: rgba(0, 224, 255, 0.2);
    border: 1px solid rgba(0, 224, 255, 0.4);
    color: #00e0ff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 1.5rem 1.5rem 1.5rem;
    width: calc(100% - 3rem);
}

.btn-join-club:hover {
    background: rgba(0, 224, 255, 0.35);
    border-color: rgba(0, 224, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
}

/* Clubs Grid */
.clubs-section {
    margin-bottom: 3rem;
}

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

.club-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 224, 255, 0.15);
    border-radius: 0.875rem;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.club-card:hover {
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 224, 255, 0.15);
    transform: translateY(-3px);
}

.club-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.club-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    letter-spacing: 0.1em;
    font-family: 'Orbitron', sans-serif;
}

.club-badge.esports {
    background: rgba(0, 224, 255, 0.2);
    color: #00e0ff;
    border: 1px solid rgba(0, 224, 255, 0.4);
}

.club-badge.casual {
    background: rgba(100, 255, 100, 0.2);
    color: #64ff64;
    border: 1px solid rgba(100, 255, 100, 0.4);
}

.club-badge.competitive {
    background: rgba(255, 50, 100, 0.2);
    color: #ff3264;
    border: 1px solid rgba(255, 50, 100, 0.4);
}

.club-badge.community {
    background: rgba(255, 180, 50, 0.2);
    color: #ffb432;
    border: 1px solid rgba(255, 180, 50, 0.4);
}

.btn-options {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: color 0.2s;
}

.btn-options:hover {
    color: var(--text-main);
}

.club-card-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.01em;
}

.club-card-type {
    color: var(--neon-blue);
    font-size: 0.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.club-card-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.club-card-games {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.game-tag {
    font-size: 0.75rem;
    background: rgba(0, 224, 255, 0.1);
    color: rgba(0, 224, 255, 0.8);
    padding: 0.35rem 0.65rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(0, 224, 255, 0.25);
}

.club-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.members {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-join-small {
    background: rgba(0, 224, 255, 0.15);
    border: 1px solid rgba(0, 224, 255, 0.4);
    color: #00e0ff;
    padding: 0.5rem 1.2rem;
    border-radius: 0.4rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-join-small:hover {
    background: rgba(0, 224, 255, 0.25);
    border-color: rgba(0, 224, 255, 0.7);
    box-shadow: 0 0 12px rgba(0, 224, 255, 0.25);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .clubs-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .featured-clubs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .search-results-dropdown {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .page-header-content h1.page-title {
        font-size: 2rem;
    }

    .btn-create-club {
        width: 100%;
    }

    .search-bar {
        max-width: 100%;
    }

    .search-bar input {
        font-size: 0.9rem;
    }

    .club-filters {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .clubs-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .featured-clubs-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .club-card {
        padding: 1.25rem;
    }

    .club-card-name {
        font-size: 1rem;
    }

    .search-results-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 60vh;
        border-radius: 0.75rem 0.75rem 0 0;
    }

    .club-member-item {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .page-header-content h1.page-title {
        font-size: 1.75rem;
    }

    .page-header-content p.page-subtitle {
        font-size: 0.9rem;
    }

    .btn-create-club {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }

    .search-bar input {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
        font-size: 0.85rem;
    }

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

    .featured-clubs-grid {
        grid-template-columns: 1fr;
    }

    .club-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .club-card {
        padding: 1rem;
    }

    .club-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .club-members-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .search-result-club {
        padding: 0.8rem;
        gap: 0.75rem;
    }
}
