/* =================================================================
   VAMPIRES INDUSTRY - SIZING CHART PAGE STYLES
   Dedicated CSS for Sizing Chart page template
   ================================================================= */

/* WORDPRESS COMPATIBILITY - FULL WIDTH */
body.page-template-page-sizing-chart .entry-content {
    max-width: none;
    padding: 0;
}

/* Force full width for all sections */
body.page-template-page-sizing-chart .site-content,
body.page-template-page-sizing-chart .content-area,
body.page-template-page-sizing-chart .site-main {
    max-width: none;
    width: 100%;
}

/* Override GeneratePress container constraints */
body.page-template-page-sizing-chart .inside-article,
body.page-template-page-sizing-chart .grid-container {
    max-width: none;
    padding: 0;
}

/* Ensure no overflow hidden on parent containers */
body.page-template-page-sizing-chart {
    overflow-x: visible;
}

body.page-template-page-sizing-chart .sizing-chart-page {
    width: 100%;
    overflow-x: visible;
}

/* CSS Variables - Consistent with homepage */
:root,
body.page-template-page-sizing-chart {
    --primary: #374151 !important;           /* Dark neutral gray */
    --secondary: #6b7280 !important;         /* Medium neutral gray */
    --accent: #9ca3af !important;            /* Light neutral gray */
    --bg-primary: #ffffff !important;        /* Pure white */
    --bg-secondary: #f9fafb !important;      /* Very light gray */
    --light: #f3f4f6 !important;            /* Light gray */
    --text-dark: #374151 !important;        /* Dark text */
    --text-light: #ffffff !important;       /* White text */
    --text-muted: #9ca3af !important;       /* Muted text */
    --border-color: #e5e7eb !important;     /* Light border */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
body.page-template-page-sizing-chart {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-primary);
}

/* Custom container for controlled content width */
.sizing-chart-page .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Full width sections */
.page-header-section,
.size-calculator-section,
.size-charts-section,
.fit-guide-section,
.sizing-cta-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Page Header Section */
.page-header-section {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--light) 100%);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.current {
    color: var(--text-dark);
    font-weight: 500;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

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

.page-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.6;
}

/* Stats Section */
.sizing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Size Calculator Section */
.size-calculator-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.calculator-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.calculator-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.size-input {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    outline: none;
}

.size-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: none;
}

.size-result {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--primary);
    color: var(--text-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.size-result h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.size-result #recommended-size {
    color: #fbbf24;
    font-weight: 700;
}

/* Size Charts Section */
.size-charts-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.charts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.charts-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.charts-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Chart Tabs */
.chart-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.chart-tab {
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-muted);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
}

.chart-tab:focus {
    outline: none;
    box-shadow: none;
}

.chart-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chart-tab.active {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

/* Chart Tables */
.chart-table {
    display: none;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.chart-table.active {
    display: block;
}

.chart-title {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.chart-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.chart-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.table-wrapper {
    overflow-x: auto;
}

.sizing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.sizing-table th {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.sizing-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

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

.sizing-table td strong {
    color: var(--primary);
    font-weight: 600;
}

/* Fit Guide Section */
.fit-guide-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.fit-guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.fit-guide-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.fit-guide-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.measurement-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-visual i {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Sizing CTA Section */
.sizing-cta-section {
    padding: 4rem 0;
    background: var(--primary);
    color: var(--text-light);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    outline: none;
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: none;
    box-shadow: none;
}

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-actions .btn-primary {
    background: var(--text-light);
    color: var(--primary);
}

.cta-actions .btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.cta-actions .btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.cta-actions .btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sizing-chart-page .container {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .sizing-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calculator-form {
        padding: 2rem;
    }
    
    .chart-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .measurement-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .sizing-chart-page .container {
        padding: 0 1rem;
    }
    
    .page-header-section {
        padding: 2rem 0 1rem;
    }
    
    .calculator-form {
        padding: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .sizing-table {
        font-size: 0.85rem;
    }
    
    .sizing-table th,
    .sizing-table td {
        padding: 0.75rem 0.5rem;
    }
}