/* =====================================================
   DenimSkirt.au - Authority Site Stylesheet
   Modern, responsive design for Australian market
   ===================================================== */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --background: #fafbfc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --success-light: #d1fae5;
    --error: #ef4444;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.2s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Modernized Spacing - High-end publication feel */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 100px;
    --space-3xl: 140px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

.hidden {
    display: none !important;
}

/* Typography - High-end publication style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: var(--secondary);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.125rem;
}

/* =====================================================
   GLOBAL HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo-icon {
    font-size: 1.875rem;
}

.logo .au {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: var(--space-2xl) 0;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero .highlight {
    color: var(--primary);
    position: relative;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(37, 99, 235, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 560px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    padding: 18px 28px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 15%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Inner Page Hero */
.page-hero {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-xl);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: var(--space-sm);
}

.page-hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
}

/* =====================================================
   LATEST GUIDES SECTION
   ===================================================== */
.latest-guides {
    padding: var(--space-3xl) 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.guide-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.guide-card-image {
    height: 200px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.guide-card-content {
    padding: var(--space-md);
}

.guide-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.guide-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    font-family: var(--font-body);
    font-weight: 600;
}

.guide-card h3 a:hover {
    color: var(--primary);
}

.guide-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.guide-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.guide-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
.products-section {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-md) var(--space-md);
    background: var(--background);
    border-radius: var(--radius);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.filter-select {
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.view-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
}

.view-btn {
    padding: 10px 14px;
    border-radius: 4px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.view-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.view-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-image {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-placeholder {
    font-size: 4rem;
    opacity: 0.8;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.product-compare-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-size: 1.25rem;
}

.product-compare-btn:hover,
.product-compare-btn.active {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: var(--space-md);
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating {
    color: var(--accent);
}

.product-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.product-card .btn {
    width: 100%;
}

/* Product Table */
.products-table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.products-table th,
.products-table td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.products-table th {
    background: var(--background);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-table tbody tr:hover {
    background: var(--background);
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.table-product-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.table-product-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.table-product-name {
    font-weight: 600;
}

.table-product-brand {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.table-rating {
    color: var(--accent);
}

.table-compare-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* =====================================================
   QUIZ SECTION
   ===================================================== */
.quiz-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.quiz-container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
}

.quiz-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.quiz-header h2 {
    margin-bottom: 8px;
}

.quiz-header p {
    color: var(--text-secondary);
}

.quiz-progress {
    margin-bottom: var(--space-lg);
}

.progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.quiz-question {
    margin-bottom: var(--space-lg);
}

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 22px 26px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.quiz-option-icon {
    font-size: 1.5rem;
}

.quiz-option-text {
    font-weight: 500;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.quiz-result {
    text-align: center;
}

.quiz-result-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.quiz-result h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
}

.quiz-result p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
}

.quiz-recommendations {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.quiz-recommendation-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--background);
    border-radius: var(--radius);
    text-align: left;
}

.quiz-recommendation-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.quiz-recommendation-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.quiz-recommendation-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* =====================================================
   COMPARE SECTION
   ===================================================== */
.compare-section {
    padding: var(--space-2xl) 0;
    background: var(--background);
}

.compare-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.compare-slot {
    min-height: 320px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.compare-slot:hover {
    border-color: var(--primary);
}

.slot-empty {
    text-align: center;
    color: var(--text-muted);
}

.plus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--background);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--text-muted);
    margin: 0 auto var(--space-sm);
}

.slot-filled {
    width: 100%;
    height: 100%;
    padding: var(--space-md);
}

.slot-filled .slot-content {
    text-align: center;
}

.slot-filled .compare-product-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto var(--space-sm);
}

.slot-filled h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.slot-filled .brand {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.remove-btn:hover {
    background: #dc2626;
}

.compare-table-container {
    overflow-x: auto;
    margin-top: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 18px 22px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    background: var(--background);
    font-weight: 600;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-actions {
    text-align: center;
    margin-top: var(--space-md);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-md);
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-family: var(--font-body);
}

.modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--background);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-md);
    overflow-y: auto;
}

.modal-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.modal-product-card {
    padding: var(--space-sm);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.modal-product-card:hover {
    border-color: var(--primary);
}

.modal-product-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
}

.modal-product-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.modal-product-brand {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* =====================================================
   BLOG & ARTICLE STYLES
   ===================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-xl) 0 var(--space-3xl);
}

.article-content {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.article-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.article-content p {
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: var(--space-md);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.article-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.8;
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--primary-dark);
}

/* Info Boxes */
.info-box {
    padding: var(--space-md);
    border-radius: var(--radius);
    margin: var(--space-lg) 0;
    border-left: 4px solid;
}

.info-box-title {
    font-weight: 700;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box.tip {
    background: var(--success-light);
    border-color: var(--success);
}

.info-box.tip .info-box-title {
    color: #065f46;
}

.info-box.warning {
    background: var(--warning-light);
    border-color: var(--warning);
}

.info-box.warning .info-box-title {
    color: #92400e;
}

.info-box.info {
    background: var(--info-light);
    border-color: var(--info);
}

.info-box.info .info-box-title {
    color: #1e40af;
}

/* Key Takeaway Card */
.key-takeaway {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.key-takeaway-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.key-takeaway ul {
    margin: 0;
    padding-left: var(--space-md);
}

.key-takeaway li {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

/* Author Bio */
.author-bio {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--background);
    border-radius: var(--radius-lg);
    margin-top: var(--space-xl);
    border: 1px solid var(--border);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.author-info .author-title {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.author-info p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* Related Articles */
.related-articles {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-xl);
}

.related-articles h3 {
    margin-bottom: var(--space-lg);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-section {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.85;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.team-member {
    text-align: center;
    padding: var(--space-lg);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.team-member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto var(--space-sm);
}

.team-member h4 {
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.team-member .role {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.team-member p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Values Section */
.values-section {
    background: var(--background);
    padding: var(--space-2xl) 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.value-card {
    padding: var(--space-lg);
    background: var(--surface);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto var(--space-sm);
}

.value-card h4 {
    font-family: var(--font-body);
    margin-bottom: var(--space-xs);
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-section {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    padding: var(--space-lg);
}

.contact-info h3 {
    margin-bottom: var(--space-md);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--info-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-method h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 2px;
}

.contact-method p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-content {
    padding: var(--space-xl) 0 var(--space-3xl);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.legal-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.legal-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.8;
    list-style: disc;
}

.legal-content .last-updated {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* =====================================================
   SEO SECTION
   ===================================================== */
.seo-section {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    margin-bottom: var(--space-md);
    text-align: center;
}

.seo-content h3 {
    font-size: 1.5rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.seo-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.85;
}

.seo-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.seo-content li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.85;
    list-style: disc;
}

.seo-content strong {
    color: var(--text-primary);
}

/* =====================================================
   GLOBAL FOOTER
   ===================================================== */
.footer {
    background: var(--secondary);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-sm);
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.affiliate-disclosure {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    max-width: 700px;
    margin: var(--space-sm) auto 0;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .compare-slots {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 48px;
        --space-2xl: 72px;
        --space-3xl: 100px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content {
        padding: var(--space-xl) 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .view-toggle {
        justify-content: center;
    }

    .quiz-container {
        padding: var(--space-lg) var(--space-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .guides-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
