/**
 * Taglista CSS
 * Eternal Illusion - Guild Members List Styling
 * 2025. október 26.
 */

.main-content {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1445 0%, #1a1a2e 50%, #16213e 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.page-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header h1 i {
    color: #667eea;
}

.page-subtitle {
    color: #b0b0b0;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Statisztikák */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Szűrők */
.filters-container {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.filter-group select option {
    background: #2a2a2a;
    color: #ffffff;
}

.refresh-btn {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    height: fit-content;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.refresh-btn i {
    font-size: 0.8rem;
}

/* Tagok grid */
.members-container {
    margin-top: 30px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.member-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Régi member-header már nem kell - az új kártya elrendezés */
/* Új kártya elrendezés */
.member-name-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 12px;
}

.member-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.member-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #FFD700 !important;
    object-fit: cover !important;
}

.member-roles-inline {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.no-roles {
    color: #888;
    font-style: italic;
    font-size: 0.85rem;
}

.member-characters {
    border-top: 1px solid #333;
    padding-top: 12px;
}

/* WoW karakter információk */
.member-wow-info {
    width: 100%;
}

.wow-characters-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wow-character-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.9rem;
}

.wow-character-item i {
    font-size: 0.8rem;
    min-width: 12px;
}

.main-character {
    font-weight: bold;
    border-left: 3px solid #FFD700;
    padding-left: 8px;
}

.alt-character {
    opacity: 0.8;
    border-left: 3px solid #555;
    padding-left: 8px;
}

.wow-ilvl {
    font-weight: bold;
    font-size: 0.85rem;
}

.wow-spec {
    color: #b0b0b0;
    font-size: 0.8rem;
    margin-left: auto;
}

.wow-no-character {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    padding: 8px;
    text-align: center;
}

.wow-no-character i {
    color: #666;
}

.status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(42, 42, 42, 0.8);
}

.status-online { background-color: #43b581; }
.status-idle { background-color: #faa61a; }
.status-dnd { background-color: #f04747; }
.status-offline { background-color: #747f8d; }

.member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.role-badge {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3) !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.member-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #b0b0b0;
}

.member-join-date,
.member-created-date {
    margin-bottom: 5px;
}

.member-join-date i,
.member-created-date i {
    width: 15px;
    color: #667eea;
    margin-right: 5px;
}

/* Loading és üres állapot */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #667eea;
    display: block;
}

.no-members {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
}

.no-members i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #667eea;
    display: block;
}

/* Animációk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-card {
    animation: fadeInUp 0.6s ease-out;
}

.member-card:nth-child(even) {
    animation-delay: 0.1s;
}

.member-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .member-card {
        padding: 15px;
    }
    
    .member-header {
        gap: 12px;
    }
    
    .member-avatar {
        width: 35px;
        height: 35px;
    }
}