/* ==========================================================================
   ISITCHEAPYET??? - Vintage Early-2010s Enthusiast Benchmark Theme
   Inspired by Tom's Hardware, Classic Stack Overflow, and early CNET
   ========================================================================== */

:root {
    --so-orange: #f48024;
    --th-navy: #1b2838;
    --th-blue: #0070ba;
    --th-slate: #2c3e50;
    --th-dark: #121921;
    --bg-canvas: #f4f6f9;
    --bg-card: #ffffff;
    --border-main: #cbd5e1;
    --border-subtle: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --color-ssd: #0284c7;
    --color-ram: #7c3aed;
    --color-hdd: #d97706;
    --color-success: #16a34a;
    --color-danger: #dc2626;
}

/* Base Body Styling */
body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* Stack Overflow Classic Top Accent Line */
.top-orange-stripe {
    height: 3px;
    background: linear-gradient(90deg, #f48024 0%, #ff9900 50%, #0070ba 100%);
    width: 100%;
}

/* Top Utility Bar */
.top-util-bar {
    background-color: #e9ecef;
    border-bottom: 1px solid var(--border-main);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.top-util-bar a {
    color: var(--th-blue);
    text-decoration: none;
}
.top-util-bar a:hover {
    text-decoration: underline;
}

/* Main Enthusiast Masthead / Header */
.main-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-bottom: 2px solid #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.brand-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f48024 0%, #d97706 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(244, 128, 36, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-title {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    font-family: Impact, "Arial Black", sans-serif;
    background: linear-gradient(180deg, #ffffff 40%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.4px;
    font-weight: 500;
}

/* Benchmark Stats Ribbon in Header */
.stat-box {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 3px 10px;
    text-align: center;
    min-width: 72px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.2);
}
.stat-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
}

.text-purple {
    color: #c084fc !important;
}

.bg-purple {
    background-color: #7e22ce !important;
    color: #ffffff !important;
}

.badge-ssd {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border: 1px solid #0369a1;
    font-weight: 700;
}

.badge-ram {
    background-color: #7e22ce !important;
    color: #ffffff !important;
    border: 1px solid #6b21a8;
    font-weight: 700;
}

.badge-hdd {
    background-color: #b45309 !important;
    color: #ffffff !important;
    border: 1px solid #92400e;
    font-weight: 700;
}

.panel-classic {
    border: 1px solid var(--border-main);
    border-radius: 4px;
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bg-gradient-header {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-main);
    font-size: 0.775rem;
    letter-spacing: 0.3px;
}

/* Category Tab Navigation (Stack Overflow style pills) */
.classic-pills .nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background-color: #f1f5f9;
    border: 1px solid var(--border-main);
    margin-right: 5px;
    padding: 5px 12px;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}
.classic-pills .nav-link:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
.classic-pills .nav-link.active {
    background-color: #0284c7;
    border-color: #0369a1;
    color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

/* Hot Deal Cards */
.deal-card {
    border: 1px solid var(--border-main);
    border-radius: 4px;
    background: #ffffff;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.deal-card:hover {
    border-color: #0284c7;
    background-color: #f0f7ff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
    transform: translateY(-1px);
}

/* Cheapest Hardware Tier Matrix Styling */
.tier-card {
    border: 1px solid var(--border-main);
    border-radius: 4px;
    background: #ffffff;
    padding: 9px 12px;
    transition: all 0.15s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tier-card:hover {
    border-color: #0284c7;
    background-color: #f8fafc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.tier-spec-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
    font-size: 0.775rem;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}
.tier-badge-ram {
    background-color: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #d8b4fe;
}
.tier-badge-ssd {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.tier-badge-hdd {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.tier-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f766e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.tier-ppgb {
    font-family: ui-monospace, monospace;
    font-size: 0.725rem;
    color: #64748b;
    font-weight: 600;
}
.vendor-tag {
    font-size: 0.675rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: #334155;
}

/* Benchmark Table Styling */
.classic-table {
    border-collapse: separate;
    border-spacing: 0;
}
.classic-table thead th {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    vertical-align: middle;
    border: 1px solid #1e293b;
}
.classic-table tbody td {
    padding: 7px 10px;
    font-size: 0.8125rem;
    border-color: var(--border-subtle);
    vertical-align: middle;
}
.classic-table tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}
.classic-table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}
.classic-table tbody tr:hover {
    background-color: #eff6ff !important;
}

/* Capacity Score Box */
.capacity-box {
    display: inline-block;
    padding: 2px 6px;
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 3px;
}

/* Unit Price Monospace Badge */
.unit-metric-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    background-color: #f1f5f9;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
}

/* Quick Filter Badges */
.quick-tag {
    font-size: 0.725rem;
    font-weight: 500;
    color: #334155;
    background-color: #f8fafc;
    border: 1px solid var(--border-main);
    padding: 2px 7px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.1s ease-in-out;
}
.quick-tag:hover {
    background-color: #e2e8f0;
    color: #0284c7;
    border-color: #94a3b8;
}

/* Cursor pointer helper */
.cursor-pointer {
    cursor: pointer;
}
.text-primary-hover:hover {
    color: #0284c7 !important;
    text-decoration: underline !important;
}

/* Pulse animation */
.pulse {
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Store Listing Buttons in Modal */
.vendor-buy-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Clean Centered Footer */
footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--border-main);
}
