/* Community Page - Mobile-First Design */

/* Page Header */
.community-header {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.community-header h1 {
    font-size: 28px;
    color: var(--off-yellow);
    margin-bottom: 8px;
}

.community-header p {
    font-size: 16px;
    color: var(--off-white);
    opacity: 0.8;
}

/* Search */
.community-search {
    margin: 0 20px 25px;
}

.search-form {
    position: relative;
    display: block;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
    font-size: 16px;
    transition: all 0.2s ease;
}

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

.search-input:focus {
    outline: none;
    border-color: var(--pastel-blue);
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Players Grid - Mobile First (Single Column) */
.players-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.player-card {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-card:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.1rem;
    color: var(--off-yellow);
    margin-bottom: 10px;
}

.player-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge-count {
    color: var(--off-white);
    font-size: 0.9rem;
}

.no-badges {
    color: var(--off-white);
    opacity: 0.5;
    font-size: 0.9rem;
}

.recent-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.mini-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 2px 2px 0 #444,
                2px 3px 0 #222,
                2px 4px 2px rgba(0, 0, 0, 0.3);
}

.mini-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--off-white);
    opacity: 0.7;
}


/* Large Phone - 400px+ */
@media (min-width: 400px) {
    .community-header h1 {
        font-size: 32px;
    }
}

/* Search box fixed width - 500px+ */
@media (min-width: 500px) {
    .community-search {
        width: 320px;
        margin: 0 auto 25px;
    }
}

/* Small Tablet - 600px+ */
@media (min-width: 600px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet - 768px+ */
@media (min-width: 768px) {
    .community-header {
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .community-header h1 {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .community-header p {
        font-size: 18px;
    }


    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 40px;
    }

    .player-name {
        font-size: 1.2rem;
    }

    .search-results-info {
        margin-bottom: 30px;
    }

}

/* Desktop - 1024px+ */
@media (min-width: 1024px) {
    /* Stays at 640px max-width from base.css */
    /* Grid remains 2 columns to fit properly */
}