/* ============================================
   Compression-Socks.com.au - Authority Site Styles
   Modern, Publication-Quality Design
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Original refined */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0891b2;
    --secondary-dark: #0e7490;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --dark: #1e293b;
    --dark-muted: #334155;
    --light: #f8fafc;
    --light-alt: #f1f5f9;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --success: #10b981;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing - Increased for publication feel */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

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

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray);
}

/* ============================================
   LAYOUT
   ============================================ */

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.section-alt {
    background: var(--light);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-lighter);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-muted);
    text-decoration: none;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.2s ease;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-xs);
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.95rem;
    opacity: 0.9;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-body {
    padding: var(--space-lg);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image svg {
    width: 100px;
    height: 100px;
    opacity: 0.6;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.bestseller {
    background: var(--success);
    color: var(--white);
}

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

.product-category {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    margin: var(--space-xs) 0;
    color: var(--dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: var(--space-sm);
}

.stars {
    color: var(--accent);
    font-size: 0.9rem;
}

.rating-count {
    color: var(--gray);
    font-size: 0.85rem;
}

.product-features {
    list-style: none;
    margin: var(--space-sm) 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-features li svg {
    width: 16px;
    height: 16px;
    fill: var(--success);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: var(--space-sm) 0;
}

.product-price span {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 400;
}

.buy-button {
    display: block;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
}

.buy-button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.buy-button svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 8px;
}

/* ============================================
   GRIDS
   ============================================ */

.grid {
    display: grid;
    gap: var(--space-lg);
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
}

/* ============================================
   SECTION TITLES
   ============================================ */

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

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

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

.section-header .overline {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

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

.benefit-card {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.benefit-card h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.benefit-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   BLOG CARDS
   ============================================ */

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image svg {
    width: 60px;
    height: 60px;
    fill: rgba(255, 255, 255, 0.8);
}

.blog-card-content {
    padding: var(--space-lg);
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: var(--space-sm);
}

.blog-card-content h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--dark);
    text-decoration: none;
}

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

.blog-card-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ============================================
   ARTICLE STYLES
   ============================================ */

.article-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.article-header h1 {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.95rem;
    opacity: 0.9;
}

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

.article-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-lighter);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    margin-top: var(--space-lg);
    color: var(--dark-muted);
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: var(--space-md) 0 var(--space-lg) var(--space-lg);
}

.article-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
    color: var(--dark-muted);
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.info-box h4 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-box p {
    margin-bottom: 0;
    color: var(--dark-muted);
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--accent);
}

.warning-box h4 {
    color: var(--accent-dark);
}

.tip-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid var(--success);
}

.tip-box h4 {
    color: #059669;
}

/* Key Takeaway */
.key-takeaway {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.key-takeaway h4 {
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.key-takeaway p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.key-takeaway ul {
    margin: var(--space-sm) 0 0 var(--space-md);
    color: rgba(255, 255, 255, 0.9);
}

.key-takeaway li {
    color: rgba(255, 255, 255, 0.9);
}

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

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.author-info h4 {
    margin-bottom: 4px;
}

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

.author-info p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   COMPRESSION GUIDE SECTION
   ============================================ */

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.guide-text h2 {
    margin-bottom: var(--space-md);
}

.guide-text p {
    margin-bottom: var(--space-lg);
}

.compression-levels {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.compression-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-lighter);
}

.compression-level:last-child {
    border-bottom: none;
}

.level-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.level-info p {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
}

.level-badge {
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.guide-visual {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    color: var(--white);
}

.guide-visual svg {
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.guide-visual h3 {
    font-family: var(--font-sans);
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.guide-visual p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* ============================================
   FORMS
   ============================================ */

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

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

.form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-sans);
}

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

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

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand p {
    color: var(--gray-light);
    margin-top: var(--space-sm);
    font-size: 0.95rem;
}

.footer-section h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--dark-muted);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.affiliate-disclosure {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    border-radius: var(--radius);
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* ============================================
   PAGE HEADERS
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   LEGAL PAGES
   ============================================ */

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

.legal-content h2 {
    margin-top: var(--space-xl);
}

.legal-content h2:first-child {
    margin-top: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-content {
        grid-template-columns: 1fr;
    }

    .guide-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        box-shadow: var(--shadow-md);
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

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

    .trust-badges {
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 var(--space-md);
    }

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

    .section {
        padding: var(--space-2xl) 0;
    }
}
