@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --intel-blue: #0071C5;
    --amd-orange: #ED1C24;
    --bg-main: #0b0f1a;
    --bg-card: #161d2f;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #2e3a51;
    --input-bg: #0f172a;
    --glass-bg: rgba(22, 29, 47, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(192, 132, 252, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 30%, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Platform Switcher */
.platform-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.platform-option {
    position: relative;
    cursor: pointer;
}

.platform-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.platform-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    width: 48px;
    height: 48px;
    padding: 10px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
}

.platform-info {
    display: flex;
    flex-direction: column;
}

.platform-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.platform-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Checked States */
.platform-option input:checked + .platform-content {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.platform-option input:checked + .platform-content .platform-icon.intel-blue {
    background: var(--intel-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 113, 197, 0.4);
}

.platform-option input:checked + .platform-content .platform-icon.amd-orange {
    background: var(--amd-orange);
    color: #fff;
    box-shadow: 0 0 20px rgba(237, 28, 36, 0.4);
}

/* Builder Form */
.builder-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    appearance: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background-color: #1a2235;
}

select:hover {
    border-color: #475569;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--text-muted);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Summary Card */
.summary-card {
    margin-top: 3.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(129, 140, 248, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #a855f7);
}

.summary-card h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-range {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.pkr-symbol {
    font-size: 1.25rem;
    color: var(--primary-light);
    font-weight: 500;
}

.separator {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0 0.25rem;
}

.status-indicator {
    background: rgba(99, 102, 241, 0.15);
    padding: 1rem;
    border-radius: 1rem;
    color: var(--primary-light);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.75rem;
    }
    
    .builder-form {
        padding: 2rem 1.5rem;
    }
    
    .platform-switcher {
        grid-template-columns: 1fr;
    }
    
    .price-range {
        font-size: 2rem;
    }
}
