/*
 * ConsoleSniper - CPU/GPU Bottleneck Calculator Styles
 * Pure Black Neumorphic Heavy Design
 */

/* ===== BOTTLENECK PAGE LAYOUT ===== */
.bottleneck-page {
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* ===== BOTTLENECK HERO SECTION ===== */
.bottleneck-hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background: #000000;
}

.bottleneck-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.bottleneck-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(white 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: 0 0;
    opacity: 0.03;
    pointer-events: none;
}

.bottleneck-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.bottleneck-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.title-accent {
    color: #e0e0e0;
    font-weight: 800;
}

.bottleneck-subtitle {
    font-size: 1.05rem;
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

/* ===== INPUT PANEL - NEUMORPHIC ===== */
.input-panel {
    background: #1a1a1a;
    border: none;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 
        -8px -8px 20px rgba(255, 255, 255, 0.05),
        8px 8px 20px rgba(0, 0, 0, 0.8);
}

.panel-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 1.75rem 0;
}

/* ===== INPUT GROUPS ===== */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.required {
    color: #ff7777;
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-top: 0.4rem;
}

.text-input,
.select-input {
    width: 90%;
    padding: 0.85rem;
    background: #0f0f0f;
    border: none;
    border-radius: 14px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 
        inset -3px -3px 8px rgba(255, 255, 255, 0.05),
        inset 3px 3px 8px rgba(0, 0, 0, 0.7);
}

.text-input:focus,
.select-input:focus {
    outline: none;
    background: #141414;
    box-shadow: 
        inset -2px -2px 5px rgba(255, 255, 255, 0.03),
        inset 2px 2px 5px rgba(0, 0, 0, 0.9);
}

.text-input::placeholder {
    color: #707070;
}

.select-input {
    cursor: pointer;
}

.select-input option {
    background: #0a0a0a;
    color: #e0e0e0;
}

/* ===== DROPDOWN SELECTORS (NEW) ===== */
.dropdown-wrapper {
    position: relative;
    width: 90%;
}

.search-input {
    width: 100%;
    padding: 0.85rem;
    background: #0f0f0f;
    border: none;
    border-radius: 14px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 
        inset -3px -3px 8px rgba(255, 255, 255, 0.05),
        inset 3px 3px 8px rgba(0, 0, 0, 0.7);
}

.search-input:focus {
    outline: none;
    background: #141414;
    box-shadow: 
        inset -2px -2px 5px rgba(255, 255, 255, 0.03),
        inset 2px 2px 5px rgba(0, 0, 0, 0.9);
}

.search-input::placeholder {
    color: #707070;
}

/* Dropdown List */
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-top: none;
    border-radius: 0 0 14px 14px;
    display: none;
    z-index: 1000;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.9),
        inset -3px -3px 8px rgba(255, 255, 255, 0.05);
}

.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Dropdown Items */
.dropdown-item {
    padding: 0.85rem;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #242424;
    border-left: 3px solid #e0e0e0;
    padding-left: 0.82rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.item-name {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.item-meta {
    color: #808080;
    font-size: 0.8rem;
}

.dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    color: #707070;
    font-size: 0.9rem;
}

/* Selected Hardware Display */
.selected-hardware {
    width: 90%;
    margin-top: 0.5rem;
    padding: 0.75rem 0.85rem;
    background: #0f0f0f;
    border: none;
    border-radius: 10px;
    display: none;
    box-shadow: 
        inset -3px -3px 8px rgba(255, 255, 255, 0.05),
        inset 3px 3px 8px rgba(0, 0, 0, 0.7);
}

.selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.selected-name {
    color: #00d9ff;
    font-weight: 500;
    font-size: 0.9rem;
}

.clear-btn {
    background: none;
    border: none;
    color: #808080;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    color: #ff4444;
    transform: scale(1.1);
}

/* ===== RECOMMENDATIONS SECTION ===== */
.recommendations-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #121212;
    border-radius: 16px;
    box-shadow: 
        -8px -8px 20px rgba(255, 255, 255, 0.05),
        8px 8px 20px rgba(0, 0, 0, 0.8);
}

.recommendations-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #e0e0e0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.recommendation-card {
    padding: 1rem;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommendation-card:hover {
    background: #1a1a1a;
    border-color: #00d9ff;
    box-shadow: 
        0 0 15px rgba(0, 217, 255, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.05),
        3px 3px 8px rgba(0, 0, 0, 0.8);
}

.rec-name {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.rec-meta {
    color: #808080;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.rec-button {
    width: 100%;
    padding: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #00d9ff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rec-button:hover {
    background: #00d9ff;
    color: #0a0a0a;
    border-color: #00d9ff;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    background: #2a1f1f;
    border: 1px solid #5a3f3f;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #ffb0b0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-message::before {
    content: '⚠';
    flex-shrink: 0;
}

/* ===== BUTTONS - NEUMORPHIC ===== */
.calculate-button,
.reset-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.calculate-button {
    background: #1a1a1a;
    color: #d0d0d0;
    box-shadow: 
        -4px -4px 12px rgba(255, 255, 255, 0.05),
        4px 4px 12px rgba(0, 0, 0, 0.9);
}

.calculate-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #252525;
    box-shadow: 
        -6px -6px 16px rgba(255, 255, 255, 0.06),
        6px 6px 16px rgba(0, 0, 0, 0.85);
}

.calculate-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 
        inset -2px -2px 5px rgba(255, 255, 255, 0.03),
        inset 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.calculate-button:disabled {
    background: #0f0f0f;
    color: #606060;
    cursor: not-allowed;
    box-shadow: 
        -2px -2px 5px rgba(255, 255, 255, 0.02),
        2px 2px 5px rgba(0, 0, 0, 0.8);
}

.calculate-button svg,
.reset-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.reset-button {
    background: #1a1a1a;
    color: #d0d0d0;
    border: none;
    box-shadow: 
        -4px -4px 12px rgba(255, 255, 255, 0.05),
        4px 4px 12px rgba(0, 0, 0, 0.9);
    margin-top: 1rem;
}

.reset-button:hover {
    background: #252525;
    box-shadow: 
        -6px -6px 16px rgba(255, 255, 255, 0.06),
        6px 6px 16px rgba(0, 0, 0, 0.85);
}

/* ===== RESULTS PANEL - NEUMORPHIC ===== */
.results-panel {
    background: #1a1a1a;
    border: none;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 
        -8px -8px 20px rgba(255, 255, 255, 0.05),
        8px 8px 20px rgba(0, 0, 0, 0.8);
}

/* ===== BOTTLENECK SUMMARY ===== */
.bottleneck-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #0f0f0f;
    border: none;
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 
        inset -4px -4px 10px rgba(255, 255, 255, 0.05),
        inset 4px 4px 10px rgba(0, 0, 0, 0.7);
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.summary-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #e0e0e0;
}

.summary-value.cpu-bottleneck {
    color: #ffb366;
}

.summary_value.gpu-bottleneck {
    color: #90d5ff;
}

.summary-value.balanced {
    color: #90ee90;
}

/* ===== TIERS SECTION ===== */
.tiers-section h3,
.performance-viz h3,
.explanation-section h3,
.upgrade-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 1rem 0;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tier-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.tier-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.tier-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #27c5a1;
}

/* ===== PERFORMANCE VISUALIZATION ===== */
.performance-viz {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.viz-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.resource-label {
    min-width: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e6ed;
}

.bar-background {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: width 0.5s ease;
    border-radius: 8px;
}

.bar-fill.cpu-fill {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.6), rgba(249, 115, 22, 0.4));
}

.bar-fill.gpu-fill {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.4));
}

.bar-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

/* ===== EXPLANATION SECTION ===== */
.explanation-section {
    margin: 1.5rem 0;
}

.explanation-text {
    color: #b0c0d8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.explanation-text p {
    margin: 0.75rem 0;
}

/* ===== UPGRADE SECTION ===== */
.upgrade-section {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.upgrade-advice {
    color: #b0c0d8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.upgrade-advice p {
    margin: 0.75rem 0;
}

.upgrade-advice strong {
    color: #fbbf24;
    font-weight: 600;
}

.upgrade-item {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #fbbf24;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.upgrade-item h4 {
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.upgrade-item p {
    color: #b0c0d8;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.upgrade-impact {
    color: #90ee90;
    font-style: italic;
    font-size: 0.85rem;
}

/* ===== TIPS SECTION ===== */
.tips-section {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.tips-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tips-container h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(39, 197, 161, 0.3);
    transform: translateY(-4px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.tip-card p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bottleneck-hero {
        padding: 4rem 1.5rem 3rem;
        min-height: auto;
    }

    .bottleneck-title {
        font-size: 1.4rem;
    }

    .bottleneck-subtitle {
        font-size: 0.95rem;
    }

    .calculator-section {
        padding: 2rem 1rem;
    }

    .input-panel,
    .results-panel {
        padding: 1.5rem;
    }

    .panel-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .bottleneck-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .tiers-grid {
        grid-template-columns: 1fr;
    }

    .resource-label {
        min-width: 80px;
        font-size: 0.85rem;
    }

    .tips-section {
        padding: 3rem 1rem;
    }

    .tips-container h3 {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .tips-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .tip-card {
        padding: 1rem;
    }

    .tip-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .tip-card h4 {
        font-size: 0.95rem;
    }

    .tip-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .bottleneck-hero {
        padding: 3rem 1rem 2rem;
    }

    .bottleneck-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .bottleneck-subtitle {
        font-size: 0.9rem;
    }

    .calculator-section {
        padding: 1.5rem 1rem;
    }

    .input-panel,
    .results-panel {
        padding: 1rem;
    }

    .panel-title {
        font-size: 1.1rem;
    }

    .summary-card {
        padding: 1rem;
    }

    .summary-value {
        font-size: 1.2rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .resource-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .resource-label {
        width: 100%;
    }
}
