/* Members Page Styles */

/* Members Search */
.members-search {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    opacity: 0.7;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
}

.filter-select {
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.filter-select option {
    background: var(--dark-color);
    color: white;
}

/* Members Stats */
.members-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.stat-card span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Member Card */
.member-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.member-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.member-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.member-card.new-member {
    border: 2px solid var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.member-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin: 0 auto 1rem;
    display: block;
}

.member-name {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.member-name:hover {
    color: var(--primary-color);
}

.member-rank {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--light-color);
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.member-rank.expert {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.member-rank.admin-rank {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.member-rank i {
    font-size: 0.8rem;
}

/* Member Stats */
.member-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-item small {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Member Info */
.member-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.member-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.online-badge {
    color: var(--success-color) !important;
}

.online-badge i {
    animation: pulse 2s infinite;
}

.offline-badge {
    color: #9ca3af !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Member Actions */
.member-actions {
    display: flex;
    gap: 0.5rem;
}

.member-actions .btn {
    flex: 1;
}

.member-actions .btn:last-child {
    flex: 0;
    padding: 0.6rem 1rem;
}

/* Staff List */
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.staff-member {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--light-color);
    border-radius: 8px;
}

.staff-member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.staff-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.staff-info a {
    font-weight: 600;
    color: var(--dark-color);
}

.staff-role {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    display: inline-block;
    margin-top: 0.2rem;
    width: fit-content;
}

.staff-role.admin {
    background: #ef4444;
    color: white;
}

.staff-role.mod {
    background: #10b981;
    color: white;
}

/* Birthdays List */
.birthdays-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.birthday-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--light-color);
    border-radius: 8px;
}

.birthday-icon {
    font-size: 1.5rem;
}

.birthday-item div {
    display: flex;
    flex-direction: column;
}

.birthday-item a {
    font-weight: 600;
    color: var(--dark-color);
}

.birthday-item small {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Member Chart */
.member-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.chart-bar {
    height: 8px;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 1s ease;
}

.chart-value {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .members-search {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .members-stats {
        grid-template-columns: 1fr;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        padding: 1.5rem;
    }
    
    .member-stats {
        gap: 0.5rem;
    }
    
    .stat-item span {
        font-size: 1.1rem;
    }
}

