/* CSS Variables for Dental Industry Theme */
:root {
    /* Primary Colors - Healthcare Blues & Whites */
    --primary-blue: #0066CC;
    --primary-dark: #004080;
    --primary-light: #3399FF;
    --accent-teal: #00A896;
    --accent-green: #02C39A;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --light-gray: #E8EEF2;
    --medium-gray: #B0BEC5;
    --dark-gray: #37474F;
    --text-dark: #1A2332;
    
    /* Status Colors */
    --success: #00C853;
    --warning: #FF9800;
    --danger: #F44336;
    --info: #2196F3;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.6;
    font-size: 16px;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.nav-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.nav-link i {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--spacing-sm);
    stroke-width: 2;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Section Styles */
.section {
    padding: var(--spacing-2xl) 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.section-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
    stroke-width: 2;
}

.market-intro, .comparison-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.chart-container {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.chart-title i {
    width: 24px;
    height: 24px;
}

/* Market Drivers */
.market-drivers {
    margin: var(--spacing-xl) 0;
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 1.75rem;
    color: var(--primary-blue);
}

.subsection-title i {
    width: 32px;
    height: 32px;
}

.drivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.driver-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.driver-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.driver-icon i {
    width: 28px;
    height: 28px;
    color: var(--white);
    stroke-width: 2;
}

.driver-card h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
    border-radius: 4px;
    transition: width var(--transition-slow);
}

.driver-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Company Filter */
.company-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.filter-btn i {
    width: 18px;
    height: 18px;
}

/* Company Profile */
.company-profile {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    transition: all var(--transition-normal);
}

.company-profile:hover {
    box-shadow: var(--shadow-xl);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--light-gray);
}

.company-title-section {
    flex: 1;
}

.company-name {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
}

.company-meta {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.meta-item i {
    width: 16px;
    height: 16px;
    color: var(--primary-blue);
}

.company-badge {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    white-space: nowrap;
}

.company-badge.pioneer {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.company-badge.heritage {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

.company-badge.warning {
    background: linear-gradient(135deg, var(--warning), #FF6F00);
}

.company-badge i {
    width: 18px;
    height: 18px;
}

/* Company Content */
.company-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.content-section h4 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-dark);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--light-gray);
}

.content-section h4 i {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

/* Alert Box */
.alert-box {
    background: #FFF3E0;
    border-left: 4px solid var(--warning);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
}

.alert-box i {
    width: 24px;
    height: 24px;
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-box p {
    margin: 0;
}

/* Product Cards */
.product-card {
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.product-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.product-header h5 {
    color: var(--primary-dark);
    font-size: 1.35rem;
}

.product-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--text-dark);
}

.product-description {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

.feature-item i {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    flex: 1;
    font-size: 0.95rem;
}

/* Additional Products */
.additional-products {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--light-gray);
}

.additional-products h5 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--light-gray);
    color: var(--dark-gray);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

/* SWOT Grid */
.swot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.swot-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border-left: 4px solid;
    transition: all var(--transition-normal);
}

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

.swot-card.strengths {
    border-left-color: var(--success);
}

.swot-card.weaknesses {
    border-left-color: var(--danger);
}

.swot-card.opportunities {
    border-left-color: var(--info);
}

.swot-card.threats {
    border-left-color: var(--warning);
}

.swot-card h5 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.swot-card.strengths h5 { color: var(--success); }
.swot-card.weaknesses h5 { color: var(--danger); }
.swot-card.opportunities h5 { color: var(--info); }
.swot-card.threats h5 { color: var(--warning); }

.swot-card h5 i {
    width: 22px;
    height: 22px;
}

.swot-card ul {
    list-style: none;
    padding: 0;
}

.swot-card li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.swot-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.swot-card.strengths li::before { background: var(--success); }
.swot-card.weaknesses li::before { background: var(--danger); }
.swot-card.opportunities li::before { background: var(--info); }
.swot-card.threats li::before { background: var(--warning); }

/* Comparison Table */
.comparison-table-container {
    margin: var(--spacing-xl) 0;
}

.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-lg);
}

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

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--white);
}

.comparison-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
}

.comparison-table tbody tr:hover {
    background: var(--off-white);
}

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

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--success);
    stroke-width: 2.5;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.footer-links i {
    width: 16px;
    height: 16px;
}

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

.footer-bottom p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .company-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .company-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .swot-grid {
        grid-template-columns: 1fr;
    }
    
    .drivers-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Print Styles */
@media print {
    @page {
        margin: 2cm;
        @top-center {
            content: "Dental Implants Market Analysis 2025";
        }
        @bottom-center {
            content: "Created by Helium AI";
        }
    }
    
    body {
        background: white;
        color: black;
    }
    
    .navbar {
        display: none;
    }
    
    .company-profile {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .chart-container {
        page-break-inside: avoid;
    }
}