/* S3 TECH PC Builder Upgrade Stylesheet - Premium Redesign */

:root {
    --pcb-primary-neon: hsl(271, 76%, 53%);
    --pcb-primary-glow: hsla(271, 76%, 53%, 0.35);
    
    /* Harmonious Cyberpunk HSL Colors */
    --pcb-success-neon: hsl(150, 84%, 48%);
    --pcb-success-glow: hsla(150, 84%, 48%, 0.25);
    
    --pcb-warning-neon: hsl(38, 92%, 50%);
    --pcb-warning-glow: hsla(38, 92%, 50%, 0.25);
    
    --pcb-danger-neon: hsl(328, 100%, 54%);
    --pcb-danger-glow: hsla(328, 100%, 54%, 0.25);
    
    --pcb-surface-glass: linear-gradient(135deg, rgba(23, 18, 36, 0.85) 0%, rgba(13, 10, 20, 0.95) 100%);
    --pcb-card-bg: rgba(255, 255, 255, 0.02);
    --pcb-card-border: rgba(255, 255, 255, 0.06);
    --pcb-text-mute: rgba(255, 255, 255, 0.6);
}

/* Premium Dashboard Card Container */
.pcb-upgrade-card {
    background: var(--pcb-surface-glass);
    border: 1px solid var(--pcb-card-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pcb-upgrade-card:hover {
    border-color: rgba(142, 36, 170, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(142, 36, 170, 0.1);
}

.pcb-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pcb-card-title i {
    -webkit-text-fill-color: initial;
    color: var(--pcb-primary-neon);
    text-shadow: 0 0 15px var(--pcb-primary-glow);
}

/* Settings Controls Bar - Redesigned as a Premium Flexbox Row */
.pcb-settings-bar {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

.pcb-setting-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 200px;
    min-width: 180px;
}

.pcb-setting-control--toggle {
    flex: 0 0 auto;
    min-width: 100px;
    align-items: center;
}

.pcb-setting-control label:not(.pcb-toggle-container) {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pcb-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pcb-setting-control select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 44px;
    width: 100%;
}
.pcb-setting-control select:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}
.pcb-setting-control select:focus {
    border-color: var(--pcb-primary-neon);
    outline: none;
    box-shadow: 0 0 12px var(--pcb-primary-glow);
}
.pcb-setting-control select option {
    background-color: #1a1a24;
    color: #fff;
}

/* Custom CSS Toggle Switch (Aligned with dropdowns) */
.pcb-toggle-wrapper {
    display: flex;
    align-items: center;
    height: 44px;
    box-sizing: border-box;
}
.pcb-toggle-switch-only {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    cursor: pointer;
    margin: 0;
}
.pcb-toggle-input {
    display: none;
}
.pcb-toggle-switch-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.pcb-toggle-switch-inner::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.pcb-toggle-input:checked + .pcb-toggle-switch-inner {
    background: var(--pcb-primary-neon);
    box-shadow: 0 0 10px var(--pcb-primary-glow);
}
.pcb-toggle-input:checked + .pcb-toggle-switch-inner::after {
    transform: translateX(24px);
}

/* Predictions Bottom Disclaimer wrap */
.pcb-predictions-disclaimer-wrap {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    width: 100%;
}
.pcb-predictions-disclaimer-wrap i {
    color: var(--pcb-primary-neon);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.pcb-predictions-disclaimer-wrap span {
    line-height: 1.4;
}

/* Empty State Styling */
.pcb-dashboard-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--pcb-text-mute);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.15);
    width: 100%;
}
.pcb-dashboard-empty-state i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
}
.pcb-dashboard-empty-state span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Workload Bento Grid */
.pcb-workload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.pcb-workload-item {
    background: var(--pcb-card-bg);
    border: 1px solid var(--pcb-card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.pcb-workload-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.pcb-workload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pcb-workload-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pcb-text-mute);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.pcb-workload-score {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Progress filling with glowing box shadow values */
.pcb-workload-score.score-high { 
    color: var(--pcb-success-neon); 
    text-shadow: 0 0 12px var(--pcb-success-glow);
}
.pcb-workload-score.score-mid { 
    color: var(--pcb-warning-neon); 
    text-shadow: 0 0 12px var(--pcb-warning-glow);
}
.pcb-workload-score.score-low { 
    color: var(--pcb-danger-neon); 
    text-shadow: 0 0 12px var(--pcb-danger-glow);
}

.pcb-progress-ring {
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}
.pcb-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pcb-progress-fill.fill-high { 
    background: linear-gradient(90deg, var(--pcb-success-neon), #34d399); 
    box-shadow: 0 0 8px var(--pcb-success-neon);
}
.pcb-progress-fill.fill-mid { 
    background: linear-gradient(90deg, var(--pcb-warning-neon), #fbbf24); 
    box-shadow: 0 0 8px var(--pcb-warning-neon);
}
.pcb-progress-fill.fill-low { 
    background: linear-gradient(90deg, var(--pcb-danger-neon), #f472b6); 
    box-shadow: 0 0 8px var(--pcb-danger-neon);
}

/* Game prediction FPS styling - Optimized Card Layout */
.pcb-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
@media (min-width: 992px) {
    .pcb-games-grid {
        grid-template-columns: repeat(5, 1fr); /* display all 5 games on a single row! */
    }
}
.pcb-game-card {
    background: var(--pcb-card-bg);
    border: 1px solid var(--pcb-card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.pcb-game-card:hover {
    border-color: var(--pcb-primary-neon);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                0 0 10px var(--pcb-primary-glow);
}
.pcb-game-header {
    height: 75px; /* compact cover image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 10px 12px;
}
.pcb-game-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(13, 10, 20, 0.95) 0%, rgba(13, 10, 20, 0.2) 100%);
}
.pcb-game-title {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.pcb-game-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}
.pcb-fps-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pcb-fps-item {
    display: flex;
    flex-direction: column;
}
.pcb-fps-avg {
    font-size: 1.15rem;
    font-weight: 800;
    color: #d8b4fe;
    line-height: 1.2;
}
.pcb-fps-min {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}
.pcb-fps-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--pcb-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1px;
}

/* AI Guided Recommendations Button */
.pcb-ai-guided-btn {
    background: linear-gradient(135deg, var(--pcb-primary-neon) 0%, #8e24aa 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: 12px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pcb-ai-guided-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(142, 36, 170, 0.6);
}

.pcb-wizard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a24;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* AI Guided Build Wizard Form Controls */
#pcbRecommendBudget,
#pcbRecommendPurpose {
    background-color: #1a1a24 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
#pcbRecommendBudget:focus,
#pcbRecommendPurpose:focus {
    background-color: #1a1a24 !important;
    color: #fff !important;
    border-color: var(--pcb-primary-neon) !important;
    box-shadow: 0 0 10px var(--pcb-primary-glow) !important;
    outline: none !important;
}

/* --- PREMIUM BUILD COMPARISON TABLE STYLING --- */
#pcbCompareModal table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
}

#pcbCompareModal table th, 
#pcbCompareModal table td {
    padding: 16px 20px !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0; /* readable light-slate text color! */
    font-size: 0.9rem;
}

#pcbCompareModal table tbody tr {
    transition: background-color 0.25s ease;
}

#pcbCompareModal table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Custom comparative column highlights */
#pcbCompareModal td.table-success {
    background-color: rgba(34, 197, 94, 0.08) !important; /* soft dark green */
    color: #4ade80 !important; /* high-contrast bright green */
    border-left: 2px solid #22c55e !important;
}

#pcbCompareModal td.table-danger {
    background-color: rgba(239, 68, 68, 0.08) !important; /* soft dark red */
    color: #f87171 !important; /* high-contrast bright red */
    border-left: 2px solid #ef4444 !important;
}

#pcbCompareModal td.table-neutral {
    background-color: rgba(255, 255, 255, 0.02) !important; /* neutral soft gray */
    color: #94a3b8 !important; /* slate-400 */
}

/* Percentage Badges inside Table Cells */
#pcbCompareModal .badge.bg-success-subtle {
    background-color: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.25);
    font-weight: 700;
}

#pcbCompareModal .badge.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-weight: 700;
}

/* Clean up table header styling */
#pcbCompareModal thead tr {
    background-color: rgba(15, 23, 42, 0.6) !important;
}

#pcbCompareModal thead th {
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.06em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

