/* SEO Enhancement Styles for New Sections */

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Why Use Markdown Reader Section */
.why-section {
    padding: 80px 0;
    background: var(--background-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.why-problem,
.why-solution {
    background: var(--background-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.why-problem h3,
.why-solution h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.why-problem ul,
.why-solution ul {
    list-style: none;
    padding: 0;
}

.why-problem li,
.why-solution li {
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
}

.why-problem li::before {
    content: "❌";
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.why-solution li::before {
    content: "✅";
    position: absolute;
    left: 0;
    color: #27ae60;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--background-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: var(--background-secondary);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

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

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

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Perfect For Section */
.perfect-for {
    padding: 80px 0;
    background: var(--background-secondary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.use-case {
    background: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.use-case:hover {
    transform: translateY(-5px);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.use-case h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

.use-case p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--background-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: var(--background-secondary);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Hero Section */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

/* Enhanced Feature Cards */
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Enhanced Stats Section */
.stats {
    background: var(--primary-color);
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* Enhanced Download Section */
.download h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.download p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .why-problem,
    .why-solution {
        padding: 30px 20px;
    }
    
    .step {
        padding: 25px 15px;
    }
    
    .use-case {
        padding: 25px 20px;
    }
    
    .faq-item {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .use-case-icon {
        font-size: 2.5rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .why-problem,
    .why-solution,
    .step,
    .use-case,
    .faq-item {
        border: 2px solid var(--text-color);
    }
    
    .step-number {
        border: 2px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .step,
    .use-case {
        transition: none;
    }
    
    .step:hover,
    .use-case:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .skip-link,
    .hero-cta,
    .download-buttons {
        display: none;
    }
    
    .why-grid,
    .steps-grid,
    .use-cases-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Focus Indicators for Better Accessibility */
.step:focus-within,
.use-case:focus-within,
.faq-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Button Styles */
.btn-primary,
.btn-secondary {
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Navigation */
.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enhanced Footer */
.footer-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}
