/* Guild Selector Page-Specific Styles */
/* Note: Base styles (resets, body, container) are in base.css */

/* Guild selector specific container */
.container {
    max-width: 1000px;
    /* padding-top: 100px; Account for fixed navigation */
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333333;
}

.header p {
    font-size: 1.1rem;
    color: #666666;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(88, 101, 242, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 101, 242, 0.2);
    color: #5865F2;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-btn:hover {
    background: rgba(88, 101, 242, 0.15);
    transform: translateY(-2px);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(88, 101, 242, 0.2);
    border-top: 3px solid #5865F2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Guild Grid */
.guilds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.guild-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guild-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(88, 101, 242, 0.3);
}

.guild-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.guild-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #7c3aed, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    position: relative;
}

.guild-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.guild-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
    color: #333333;
}

.guild-members {
    font-size: 0.9rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guild-permissions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.permission-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.permission-badge.owner {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
}

.permission-badge.admin {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: white;
}

.permission-badge.member {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
}

.guild-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(88, 101, 242, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.1);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    color: #5865F2;
}

.stat-label {
    font-size: 0.8rem;
    color: #666666;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(45deg, #7c3aed, #3b82f6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #6d28d9, #2563eb);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.btn-secondary:hover {
    background: rgba(88, 101, 242, 0.15);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #333333;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 24px;
    color: #666666;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    margin: 20px 0;
}

.error-state h3 {
    color: #fca5a5;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .guilds-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .guild-card {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .back-btn {
        position: relative;
        margin-bottom: 20px;
        align-self: flex-start;
    }
}