/* ============================================
   TIERS TAB STYLES - Theme Compatible
   ============================================ */

/* Slider Container - 3-part layout */
.tier-metrics-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

.tier-block {
    border-radius: 1.5rem;
    padding: 1rem 1.2rem;
    border: 3px solid var(--theme-borderMedium, rgba(127,127,127,0.4));
    box-shadow: var(--theme-shadow, 0 6px 14px -6px rgba(0,0,0,0.3));
    background: var(--block-bg, var(--theme-bgCard, white));
    flex: 1;
    min-width: 260px;
}

/* Block color variations using theme colors */
.block-0 {
    --block-bg: linear-gradient(0deg, var(--theme-primary, #1f5068) 30%, var(--theme-accent, #ff9f4a) 100%);
}

.block-1 {
    --block-bg: linear-gradient(45deg, var(--theme-primary, #1f5068) 0%, var(--theme-accent, #ff9f4a) 100%);
}

.block-2 {
    --block-bg: linear-gradient(45deg, var(--theme-primaryLight, #2a5a74) 0%, var(--theme-primaryDark, #1a3a4f) 100%);
}

.block-3 {
    --block-bg: linear-gradient(45deg, var(--theme-accent, #ff9f4a) 0%, var(--theme-primaryDark, #1a3a4f) 100%);
}

.block-4 {
    --block-bg: linear-gradient(45deg, var(--theme-primaryDark, #1a3a4f) 0%, var(--theme-primaryLight, #2a5a74) 100%);
}

.tier-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--theme-textInverse, white);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-left: 1px solid var(--theme-warning, #ffaa44);
    padding-left: 12px;
    margin-bottom: 0.8rem;
}

.metric-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.metric-fancy-card {
    background: var(--theme-bgTertiary, #07151c);
    border-radius: 1.2rem;
    padding: 0.7rem 0.8rem;
    transition: all 0.2s ease;
    border: 1px solid var(--theme-borderMedium, #2c6e7a);
    cursor: pointer;
}

.metric-fancy-card:hover {
    transform: translateY(-2px);
    border-color: var(--theme-accent, #ffaa66);
    background: var(--theme-bgHover, #0c1f28);
}

.metric-name {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--theme-textSecondary, #c7e2f0);
    letter-spacing: 0.4px;
}

.metric-big-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--theme-textPrimary, #fff3e0);
    margin: 0.2rem 0;
    line-height: 1.2;
}

.metric-unit-sm {
    font-size: 0.7rem;
    color: var(--theme-accent, #ffbc6e);
    font-weight: 600;
}

.gauge-micro {
    background: var(--theme-bgTertiary, #1a3b44);
    border-radius: 12px;
    height: 5px;
    margin: 0.5rem 0 0.3rem;
    overflow: hidden;
}

.gauge-micro-fill {
    height: 100%;
    width: 0%;
    background: var(--theme-accent, #ffb347);
    border-radius: 12px;
    transition: width 0.2s ease;
}

.badge-scale {
    font-size: 0.52rem;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    background: var(--theme-bgTertiary, #15323e);
    color: var(--theme-textSecondary, #e2eef5);
    margin-top: 4px;
    font-weight: 500;
}

.tiers-slider-container {
    background: linear-gradient(135deg, var(--theme-primaryDark, #102b2f), var(--theme-primary, #0e2228));
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 170, 85, 0.3);
}

/* Left: Label */
.tiers-slider-label {
    font-weight: 800;
    color: var(--theme-textInverse, white);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.tiers-slider-label i {
    color: var(--theme-accent, #ff9f4a);
}

/* Center: Slider (takes most space) */
.tiers-slider {
    flex: 1;
    min-width: 200px;
    accent-color: var(--theme-accent, #ffaa44);
    height: 5px;
}

/* Right: Value display */
.tiers-slider-value {
    background: var(--theme-primaryLight, #1f5568);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--theme-textLight, #ffddb0);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Progress Bar - below the slider */
.tiers-progress-bar {
    background: var(--theme-borderLight, rgba(26, 59, 68, 0.5));
    border-radius: 20px;
    height: 6px;
    margin: 0.5rem 0 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.tiers-progress-fill {
    background: linear-gradient(90deg, var(--theme-accent, #ff9f4a), var(--theme-danger, #ff6b6b));
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.tiers-progress-text {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 0.6rem;
    color: var(--theme-accent, #ff9f4a);
    font-weight: 600;
}

/* Tiers metrics container - horizontal layout */
.tiers-metrics-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Make tier blocks equal width and properly spaced */
.tier-block {
    flex: 1;
    min-width: 260px;
    max-width: calc(25% - 0.75rem);
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 1200px) {
    .tier-block {
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .tier-block {
        max-width: 100%;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .tiers-slider-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tiers-slider {
        width: 100%;
        order: 3;
    }
    
    .tiers-slider-label {
        order: 1;
    }
    
    .tiers-slider-value {
        order: 2;
        margin-left: auto;
    }
}