/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #3b82f6; /* Electric Blue */
    --primary-hover: #2563eb;
    --accent: #6366f1; /* Neon Purple */
    --dark-bg: #0f172a; /* Slate 900 for Header/Footer */
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --amazon-color: #ff9900;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.5);
    
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text-main); }
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-hover); }

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--dark-bg);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { color: #cbd5e1; font-weight: 500; font-size: 1.05rem; }
.main-nav a:hover { color: white; text-shadow: 0 0 8px rgba(255,255,255,0.4); }

/* Main Content */
.content { flex: 1; padding: 40px 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: white;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-amazon {
    background: #232f3e;
    color: white;
    border-left: 4px solid var(--amazon-color);
}
.btn-amazon:hover {
    background: #131a22;
    color: var(--amazon-color);
}
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* Hero Section (Home) */
.hero-section {
    background: var(--dark-bg);
    color: white;
    padding: 60px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-title { font-size: 3rem; margin-bottom: 15px; letter-spacing: -1px; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 1.2rem; color: #94a3b8; margin-bottom: 40px; font-weight: 300; }

/* Quick Compare Box in Hero */
.compare-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.compare-box select {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: white;
    font-family: inherit;
    width: 250px;
    outline: none;
}
.compare-box select option { background: var(--dark-bg); color: white; }
.compare-box .vs-badge {
    background: var(--primary);
    color: white;
    font-weight: 700;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
}

/* Laptop Grid */
.section-title {
    font-size: 2rem; margin-bottom: 30px; 
    border-left: 5px solid var(--primary); 
    padding-left: 15px;
}
.laptop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.laptop-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.laptop-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary);
}
.card-img-wrap { padding: 20px; background: white; text-align: center; }
.card-img-wrap img { max-width: 100%; height: 180px; object-fit: contain; }
.card-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.3; }
.card-price { font-size: 1.4rem; color: var(--primary); font-weight: 700; margin-bottom: 15px; }
.card-specs { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; flex: 1; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Details Page */
.detail-hero {
    display: flex; gap: 50px; align-items: stretch; flex-wrap: wrap;
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}
.detail-img { flex: 1; min-width: 300px; text-align: center; display:flex; align-items:center; justify-content:center; }
.detail-img img { max-width: 100%; max-height: 400px; object-fit: contain; }
.detail-info { flex: 1.5; min-width: 300px; display: flex; flex-direction: column; justify-content: center;}
.detail-info h1 { font-size: 2.5rem; margin-bottom: 15px; }
.detail-price { font-size: 2rem; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.detail-summary { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }

.pros-cons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }
.pros-box, .cons-box {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.pros-box { border-top: 4px solid var(--success); }
.cons-box { border-top: 4px solid var(--danger); }
.pros-box h3 { color: var(--success); display: flex; align-items: center; margin-bottom: 15px; }
.cons-box h3 { color: var(--danger); display: flex; align-items: center; margin-bottom: 15px; }

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.specs-table th, .specs-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even):not(.section-header) { background-color: #f8fafc; }
.specs-table .section-header {
    background: var(--dark-bg);
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 20px;
}
.specs-table th { width: 30%; font-weight: 600; color: var(--text-main); text-align: left; }
.specs-table td { color: var(--text-muted); }

/* Compare Table & Dual Sticky Box */
.sticky-buy-box {
    position: sticky;
    top: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 20px;
    z-index: 90;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}
.compare-table th { width: 20%; background: #f8fafc; border-right: 1px solid var(--border); }
.compare-table td { width: 40%; text-align: center; vertical-align: middle; }
.spec-winner {
    background-color: rgba(16, 185, 129, 0.05) !important;
    color: var(--success) !important;
    font-weight: 700;
    border: 2px solid var(--success) !important;
    position: relative;
}
.spec-winner::after {
    content: '★';
    position: absolute; top: 5px; right: 5px;
    color: var(--amazon-color); font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer p { margin-bottom: 10px; }
