/* Hardware Builder Standard Styles (No Animations) */

:root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: #e2e8f0;
}

/* Local Box-Sizing Fix */
.builder-container,
.builder-container *,
.selection-area,
.result-display,
.rec-grid,
.rec-item,
.component-badge {
    box-sizing: border-box;
}

.builder-main {
    position: relative;
    min-height: 400px;
    margin: 10px auto;
    width: 100%;
}

/* Card Base */
.glass-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 100%;
}

/* Selection Container */
.selection-area {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.is-result-mode .selection-area {
    display: none;
    /* Hide when results are shown */
}

/* Result Area */
.result-display {
    display: none;
    width: 100%;
}

.is-result-mode .result-display {
    display: block;
}

/* Grid Layout (Responsive Fix) */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

/* Component Cards */
.component-badge {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 0;
    height: 100%;
}

.rec-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.rec-item:last-child {
    margin-bottom: 0;
}

.rec-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rec-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

/* Info Box */
.info-box {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #0369a1;
}

/* Dynamic Tier Colors */
.tier-mid {
    border-top: 6px solid #38bdf8;
}

.tier-high {
    border-top: 6px solid #a855f7;
}

.tier-ultimate {
    border-top: 6px solid #eab308;
}

/* Amazon Button Standard */
.amazon-btn-premium {
    background: #ff9900;
    color: #232f3e !important;
    font-weight: bold;
    border: none;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    margin-top: auto;
    transition: background 0.2s;
}

.amazon-btn-premium:hover {
    background: #ffac31;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }

    .rec-grid {
        grid-template-columns: 1fr;
    }

    .component-badge {
        padding: 15px;
    }

    .selection-area {
        padding: 0;
    }

    .builder-main {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 15px;
    }

    .rec-value {
        font-size: 1rem;
    }
}