/* ===== CLAN TABS ===== */
.clan-tabs {
    display: flex;
    gap: 8px;
    margin: 30px 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.clan-tab {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.clan-tab:hover {
    color: var(--text-primary);
    border-color: rgba(201, 168, 76, 0.3);
}

.clan-tab.on {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #0a0a0f;
    border-color: var(--gold);
}

/* ===== CLANS GRID ===== */
.clans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.clan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.clan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.clan-card:hover::before { opacity: 1; }

.clan-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.clan-emblem {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(107, 63, 160, 0.3), rgba(42, 74, 138, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
}

.clan-card-info {
    flex: 1;
    min-width: 0;
}

.clan-card-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.clan-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.clan-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.clan-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.clan-badge.type-clan {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.clan-badge.type-party {
    background: rgba(107, 63, 160, 0.2);
    color: #b794f4;
    border: 1px solid rgba(107, 63, 160, 0.3);
}

.clan-badge.recruiting {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.clan-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-card-stats {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.clan-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.clan-stat-item .stat-val {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
}

.clan-stat-item .stat-key {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.clan-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.clan-style-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 5px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* ===== EMPTY ===== */
.clans-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.clans-empty span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .clans-grid {
        grid-template-columns: 1fr;
    }
    .clan-card-stats {
        gap: 14px;
    }
}
/* ===== CLAN PROMO BLOCK ===== */
.clan-promo-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 30px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(107, 63, 160, 0.05));
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px;
}

.clan-promo-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.clan-promo-block h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.clan-promo-block p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Premium/Top badges for clan cards */
.clan-card.premium-clan {
    border-color: rgba(107, 63, 160, 0.4);
}

.clan-card.top-clan {
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.15), 0 12px 30px rgba(201, 168, 76, 0.08);
}

.clan-card.top-clan::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 1 !important;
}

.clan-emblem-pro {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: #0a0a0f !important;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
}

@media (max-width: 600px) {
    .clan-promo-block {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}