/* AztekPC - Light Mode PC Builder Theme (Emerald) */
:root {
    --bg: #ffffff;
    --bg-alt: #f8fafb;
    --bg-card: #ffffff;
    --accent: #10b981;
    --accent2: #34d399;
    --accent-light: #ecfdf5;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --price: #dc2626;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 10px;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; margin: 0; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* Header */
.g-header { background: #fff; border-bottom: 1px solid var(--border); padding: 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.g-header-inner { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.g-logo { font-size: 22px; font-weight: 800; color: var(--text); }
.g-logo span { color: var(--accent); }
.g-nav { display: flex; gap: 20px; align-items: center; }
.g-nav a { color: var(--text-muted); font-size: 13px; font-weight: 500; transition: color 0.2s; }
.g-nav a:hover, .g-nav a.active { color: var(--accent); }
.g-nav .cart-link { background: #34d399; color: #064e3b; padding: 6px 14px; border-radius: 6px; font-weight: 600; }
.g-nav .cart-link:hover { background: #6ee7b7; color: #064e3b; }
.g-phone { color: var(--text-muted); font-size: 13px; }

/* Hero */
.g-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); padding: 80px 24px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.g-hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%); pointer-events: none; }
.g-hero h1 { font-size: 48px; font-weight: 800; margin: 0 0 12px; position: relative; }
.g-hero h1 span { background: linear-gradient(90deg, #34d399, #6ee7b7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.g-hero p { font-size: 18px; color: rgba(255,255,255,0.7); margin: 0 0 40px; position: relative; }

/* Hero CTA Cards */
.hero-ctas { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; position: relative; max-width: 700px; margin: 0 auto 30px; }
.hero-cta-card { flex: 1; min-width: 280px; max-width: 340px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(10px); border-radius: 16px; padding: 32px 24px; text-align: center; cursor: pointer; transition: all 0.3s; }
.hero-cta-card:hover { background: rgba(255,255,255,0.2); border-color: #fff; transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.hero-cta-card i.cta-icon { font-size: 36px; color: #34d399; margin-bottom: 16px; display: block; }
.hero-cta-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.hero-cta-card p { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0; }
.hero-ai-link { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--accent2); font-size: 14px; font-weight: 600; margin-top: 16px; cursor: pointer; transition: color 0.2s; }
.hero-ai-link:hover { color: #fff; }

/* Base Model Cards */
.base-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.base-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; cursor: pointer; }
.base-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(16,185,129,0.12); }
.base-card-header { padding: 20px; border-bottom: 1px solid var(--border); }
.base-card-header .tier { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.base-card-header h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.base-card-header .price-range { font-size: 24px; font-weight: 800; color: var(--price); }
.base-card-specs { padding: 16px 20px; }
.base-card-specs li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text-muted); font-size: 13px; border-bottom: 1px solid var(--border); }
.base-card-specs li:last-child { border-bottom: none; }
.base-card-specs li i { color: var(--accent); width: 16px; text-align: center; }
.base-card-btn { display: block; margin: 0 20px 20px; padding: 12px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; transition: background 0.2s; }
.base-card-btn:hover { background: var(--accent2); color: #fff; }

/* Trust Bar */
.trust-bar { display: flex; justify-content: center; gap: 48px; padding: 24px; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.trust-item i { font-size: 18px; color: var(--accent); }

/* Section */
.g-section { max-width: 1300px; margin: 50px auto; padding: 0 24px; }
.g-section h2 { font-size: 28px; font-weight: 700; margin: 0 0 8px; text-align: center; }
.g-section h2 span { color: var(--accent); }
.g-section .section-sub { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

/* Guided Flow */
.guided-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; }
.guided-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; max-width: 600px; width: 90%; text-align: center; animation: fadeUp 0.3s ease; }
.guided-card h2 { font-size: 24px; margin: 0 0 8px; }
.guided-card p { color: var(--text-muted); margin: 0 0 28px; font-size: 14px; }
.guided-options { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 24px; }
.guided-option { flex: 1; min-width: 120px; padding: 16px 12px; background: var(--bg-alt); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center; }
.guided-option:hover { border-color: var(--accent); background: var(--accent-light); }
.guided-option.selected { border-color: var(--accent); background: var(--accent-light); }
.guided-option i { font-size: 24px; color: var(--accent); display: block; margin-bottom: 8px; }
.guided-option .opt-label { font-size: 14px; font-weight: 600; }
.guided-option .opt-desc { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.guided-next { padding: 12px 40px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.guided-next:hover { background: var(--accent2); }
.guided-next:disabled { opacity: 0.4; cursor: not-allowed; }
.guided-back { padding: 12px 24px; background: transparent; color: var(--text-muted); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; cursor: pointer; margin-right: 12px; }
.guided-back:hover { border-color: var(--text-muted); }
.guided-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; }
.guided-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.guided-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.guided-dot.done { background: var(--accent); }
.guided-loading { padding: 40px; text-align: center; }
.guided-loading i { font-size: 32px; color: var(--accent); }
.guided-loading p { color: var(--text-muted); margin-top: 16px; font-size: 15px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.g-footer { background: #1e293b; color: #94a3b8; padding: 40px 24px; margin-top: 60px; border-top: 1px solid var(--border); }
.g-footer-inner { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.g-footer-col h4 { color: var(--accent); font-size: 13px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.g-footer-col ul { list-style: none; padding: 0; margin: 0; }
.g-footer-col li { margin-bottom: 5px; }
.g-footer-col a { color: #94a3b8; font-size: 13px; }
.g-footer-col a:hover { color: #fff; }
.g-footer .copy { text-align: center; color: #64748b; font-size: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #334155; }

/* PC Builder */
.pc-builder { max-width: 1300px; margin: 24px auto; padding: 0 24px; }
.pc-builder h1 { color: var(--text); text-align: center; font-size: 28px; margin-bottom: 4px; }
.pc-builder .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }

/* Step Wizard - Grouped Phases */
.step-wizard { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; padding: 0; list-style: none; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step-wizard li { flex: 1; text-align: center; padding: 12px 8px; font-size: 12px; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; min-width: 80px; font-weight: 500; }
.step-wizard li:hover { background: rgba(16,185,129,0.05); }
.step-wizard li.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--accent-light); font-weight: 700; }
.step-wizard li.completed { color: var(--success); border-bottom-color: var(--success); }
.step-wizard li.completed:after { content: ' \2713'; }

/* Builder Layout */
.builder-layout { display: flex; gap: 20px; }
.builder-main { flex: 1; min-width: 0; }
.builder-sidebar { width: 300px; flex-shrink: 0; }

/* Filters */
.builder-filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.builder-filters input, .builder-filters select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--bg-alt); color: var(--text); outline: none; }
.builder-filters input:focus, .builder-filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.builder-filters input[type="text"] { flex: 1; min-width: 150px; }
.builder-filters select option { background: var(--bg-alt); color: var(--text); }

/* Component Grid */
.component-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.component-card { background: var(--bg-card); border: 1px solid #cbd5e1; border-radius: var(--radius); padding: 14px; transition: all 0.2s; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.component-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.component-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(16,185,129,0.3); }
.component-card.dimmed { opacity: 0.35; }
.component-card img { width: 100%; height: 130px; object-fit: contain; margin-bottom: 8px; background: var(--bg-alt); border-radius: 6px; padding: 8px; }
.component-card .mfg { font-size: 11px; color: var(--accent); text-transform: uppercase; font-weight: 600; }
.component-card .name { font-size: 13px; color: var(--text); margin: 3px 0; line-height: 1.3; height: 50px; overflow: hidden; }
.component-card .part { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.component-card .price { font-size: 18px; font-weight: 700; color: var(--price); }
.component-card .qty { font-size: 11px; color: var(--success); margin-bottom: 8px; }
.component-card .btn-select { width: 100%; margin-top: auto; padding: 9px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; background: #34d399; color: #064e3b; transition: background 0.2s; }
.component-card .btn-select:hover { background: #6ee7b7; }
.component-card .btn-select.selected-btn { background: var(--success); color: #fff; }

/* Compatibility Badges */
.badge-rec { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; text-align: center; padding: 4px 8px; font-size: 11px; font-weight: 700; border-radius: 4px; margin-bottom: 6px; }
.badge-ok { background: #dcfce7; color: #15803d; text-align: center; padding: 4px 8px; font-size: 11px; font-weight: 600; border-radius: 4px; margin-bottom: 6px; }
.badge-warn { background: #fef3c7; color: #b45309; text-align: center; padding: 4px 8px; font-size: 11px; border-radius: 4px; margin-bottom: 6px; }

/* Compatibility Banner */
.compat-banner { background: var(--accent-light); border: 1px solid #bbf7d0; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; color: var(--text); }
.compat-banner.compat-loading { color: var(--accent); }

/* Build Summary */
.build-summary { position: sticky; top: 76px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-md); }
.build-summary h3 { margin: 0; padding: 14px 16px; background: var(--accent); color: #fff; border-radius: var(--radius) var(--radius) 0 0; font-size: 15px; font-weight: 700; }
.build-summary .summary-items { padding: 0; margin: 0; list-style: none; }
.build-summary .summary-items li { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.build-summary .summary-items li.empty-msg { display: block; text-align: center; color: var(--text-muted); padding: 20px 16px; font-style: italic; }
.build-summary .summary-items .item-label { color: var(--text-muted); font-size: 11px; }
.build-summary .summary-items .item-name { color: var(--text); font-weight: 500; max-width: 155px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.build-summary .summary-items .item-price { color: var(--price); font-weight: 700; white-space: nowrap; }
.build-summary .summary-items .remove-btn { color: #ef4444; cursor: pointer; font-size: 16px; margin-left: 6px; font-weight: 700; }
.build-summary .summary-total { padding: 14px 16px; font-size: 18px; font-weight: 700; text-align: right; border-top: 2px solid var(--accent); color: var(--text); }
.build-summary .btn-cart { width: calc(100% - 32px); margin: 0 16px 16px; padding: 11px; border: none; border-radius: 6px; background: var(--success); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.build-summary .btn-cart:hover { background: #16a34a; }
.build-summary .btn-cart:disabled { background: #cbd5e1; color: #94a3b8; cursor: not-allowed; }

/* Loading / Empty */
.builder-loading, .builder-empty { text-align: center; padding: 50px; color: var(--text-muted); font-size: 15px; }

/* Step Nav */
.step-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.step-nav button { padding: 10px 24px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; color: var(--text); transition: all 0.2s; }
.step-nav button:hover { border-color: var(--accent); color: var(--accent); }
.step-nav button.btn-next { background: #34d399; color: #064e3b; border-color: var(--accent); font-weight: 600; }
.step-nav button.btn-next:hover { background: #6ee7b7; }

/* Metadata Badges */
.meta-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.meta-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; color: #fff; line-height: 1.5; }
.meta-badge.speed-budget { background: #4b5563; }
.meta-badge.speed-midrange { background: #1d4ed8; }
.meta-badge.speed-performance { background: #059669; }
.meta-badge.speed-enthusiast { background: #dc2626; }
.meta-badge.socket-badge { background: #7c3aed; }
.meta-badge.memtype-badge { background: #0891b2; }
.meta-badge.capacity-badge { background: #d97706; }
.meta-badge.wattage-badge { background: #ea580c; }
.meta-badge.ff-badge { background: #4f46e5; }

/* AI Build It For Me */
.ai-build-section { margin-bottom: 16px; }
.ai-build-toggle { width: 100%; padding: 12px 20px; border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--accent-light); color: var(--accent); font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ai-build-toggle:hover { background: rgba(16,185,129,0.15); border-color: var(--accent2); }
.ai-build-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; background: var(--bg-alt); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 0 20px; }
.ai-build-panel.open { max-height: 2000px; padding: 20px; }
.ai-build-desc { color: var(--text-muted); font-size: 13px; margin: 0 0 14px; }
.ai-build-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ai-control { flex: 1; min-width: 150px; }
.ai-control-wide { flex: 2; min-width: 250px; }
.ai-control label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.ai-control input[type="range"] { width: 100%; accent-color: var(--accent); }
.ai-control select, .ai-control input[type="text"] { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text); }
.ai-build-btn { width: 100%; padding: 10px 20px; border: none; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity 0.2s; }
.ai-build-btn:hover { opacity: 0.9; }
.ai-build-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* AI Build Result */
.ai-build-success { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 16px; margin-top: 14px; }
.ai-build-header { font-size: 16px; font-weight: 700; color: var(--success); margin-bottom: 6px; }
.ai-build-success p { font-size: 13px; color: var(--text); margin: 4px 0; }
.ai-build-total { font-size: 18px; color: var(--text); margin: 8px 0; font-weight: 700; }
.ai-build-warnings { background: #fef3c7; border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 12px; color: #b45309; }
.ai-build-parts { margin-top: 10px; }
.ai-build-part { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ai-build-part:last-child { border-bottom: none; }
.ai-part-type { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; min-width: 80px; text-align: center; }
.ai-part-name { flex: 1; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ai-part-price { font-weight: 700; color: var(--price); white-space: nowrap; }
.ai-part-reason { width: 100%; font-size: 11px; color: var(--text-muted); font-style: italic; padding-left: 88px; }
.ai-build-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 12px; color: #dc2626; font-size: 13px; margin-top: 10px; }

/* Platform & Memory choice cards */
.platform-card, .memory-size-card { background: #fff !important; border-color: var(--border) !important; box-shadow: var(--shadow-md) !important; }
.platform-card:hover, .memory-size-card:hover { border-color: var(--accent) !important; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important; }

/* Responsive */
@media (max-width: 768px) {
    .builder-layout { flex-direction: column-reverse; }
    .builder-sidebar { width: 100%; }
    .build-summary { position: static; }
    .component-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .step-wizard li { font-size: 10px; padding: 8px 4px; }
    .g-hero h1 { font-size: 32px; }
    .g-hero { padding: 50px 20px; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-cta-card { min-width: 100%; }
    .base-models { grid-template-columns: 1fr; }
    .trust-bar { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .g-header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
    .g-nav { gap: 10px; flex-wrap: wrap; }
    .guided-card { padding: 24px; }
}
