/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.collection-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    background: rgb(255 255 255 / 0.14);
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
}

.collection-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: rgb(255 255 255 / 0.86);
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collection-tab:hover {
    color: white;
    background: rgb(255 255 255 / 0.12);
}

.collection-tab.active {
    background: white;
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Catalog-wide stats: each tile carries a floating "Global" chip so the scope
   reads independently of the surrounding personal stats (e.g. "Ya probaste
   X de Y" lower in Descubrir). */
.catalog-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.85rem 0.85rem 0.65rem;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 12px;
    background: rgb(255 255 255 / 0.04);
    min-width: 88px;
}

.catalog-stat-scope {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color, #f2c200);
    color: #1c1500;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

