/* ========================================
   CATEGORY PAGE - MU TOP SERVERS
   ======================================== */

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    padding: 0.75rem 0;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumbs .separator {
    color: var(--text-muted);
}

/* Category Page */
.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.category-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.category-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-badge svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.stat-badge strong {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

/* SERVER LIST */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.server-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s;
}

.server-item:hover {
    border-color: var(--border-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.server-item.featured {
    border-color: var(--color-primary);
    background: linear-gradient(90deg, rgba(245, 184, 65, 0.05) 0%, transparent 100%);
}

.server-rank {
    width: 50px;
    height: 50px;
    background: var(--gradient-button);
    color: #000;
    font-weight: 900;
    font-size: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.server-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    min-width: 0;
}

.server-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-title-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.server-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.server-name a:hover {
    color: var(--color-primary);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: var(--gradient-button);
    color: #000;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.featured-badge svg {
    width: 12px;
    height: 12px;
}

.boosted-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.boosted-badge svg {
    width: 12px;
    height: 12px;
}

.server-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.meta-votes {
    color: var(--color-primary);
}

.meta-votes svg {
    color: var(--color-primary);
    opacity: 1;
}

.meta-separator {
    color: var(--text-muted);
    opacity: 0.3;
    font-weight: 300;
}

.meta-date svg {
    color: var(--text-muted);
}

.server-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.server-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.stat svg {
    width: 14px;
    height: 14px;
}

.stat-clickable {
    cursor: pointer;
}

.stat-clickable:hover {
    border-color: var(--border-accent);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.stat.highlight {
    color: var(--color-primary);
    border-color: rgba(245, 184, 65, 0.3);
    background: rgba(245, 184, 65, 0.05);
}

.stat.highlight svg {
    color: var(--color-primary);
}

.stat.highlight:hover {
    border-color: var(--color-primary);
    background: rgba(245, 184, 65, 0.1);
}

.server-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 150px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-visit {
    background: var(--gradient-button);
    color: #000;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-visit svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 184, 65, 0.5);
}

.btn-visit:active {
    transform: translateY(0);
}

/* Efecto de brillo en Visit Website */
.btn-visit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-visit:hover::before {
    left: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--border-accent);
    background: var(--bg-hover);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page-num:hover {
    border-color: var(--border-accent);
    background: var(--bg-hover);
}

.page-num.active {
    background: var(--gradient-button);
    color: #000;
    border-color: transparent;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.page-info {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-info span {
    color: var(--color-primary);
    font-weight: 700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .server-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    
    .server-rank {
        grid-row: 1 / 2;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .server-content {
        grid-row: 1 / 2;
    }
    
    .server-actions {
        grid-column: 1 / 3;
        grid-row: 2;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .server-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .server-meta {
        gap: 1rem;
    }
    
    .server-stats {
        gap: 0.75rem;
    }
}