/* Landing Pages CSS - SEO-Optimized Styling */

/* Import design tokens */
@import url('../../css/design-tokens.css');

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Landing Page Base Styles */
.landing-page {
    min-height: 100vh;
    background: #f5f5f5; /* Light background for landing pages */
    color: #1a1a1a; /* Dark text for readability */
}

/* Ensure navigation stays dark */
.landing-page .main-nav,
.landing-page .nav-container {
    background: #0f1629 !important;
}

.landing-page .main-nav *,
.landing-page .nav-container * {
    color: #ffffff !important;
}

/* Keep dropdown working */
.landing-page .dropdown-menu {
    background: #0f1629 !important;
}

.landing-page .nav-button {
    color: #ffffff !important;
}

/* Override dark theme for landing pages */
.landing-page * {
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-background: #f5f5f5;
    --color-background-alt: #ffffff;
}

/* Exclude hero section from text color override */
.landing-page .hero-section,
.landing-page .hero-section * {
    color: white !important;
}

/* Container for consistent spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin-bottom: 2rem;
    color: white !important;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Quick Comparison Section */
.quick-comparison {
    padding: 80px 0;
    background: var(--color-background-alt);
}

.quick-comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-text-primary);
}

/* Comparison Table */
.comparison-table {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.comparison-table th {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    color: #1a1a1a;
}

.comparison-table tr:hover {
    background: #f8f8f8;
}

.tool-name {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.tool-name:hover {
    text-decoration: underline;
}

.impact-score {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.impact-score.high {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.impact-score.medium {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.impact-score.low {
    background: var(--color-info-light);
    color: var(--color-info-dark);
}

/* Detailed Reviews Section */
.detailed-reviews {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Tool Review Card */
.tool-review-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rank {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 50px;
}

/* Hide rank numbers on non-ranked pages */
.no-ranking .rank {
    display: none;
}

/* Back to Comparison Button */
.back-to-comparison {
    position: sticky;
    top: 20px;
    float: right;
    background: #3B82F6;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    margin-bottom: 2rem;
}

.back-to-comparison:hover {
    background: #2563EB;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.back-to-comparison i {
    margin-right: 0.5rem;
    color: white !important;
}

.tool-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.5rem;
}

.business-score {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.tool-description {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.metric .label {
    display: block;
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 0.25rem;
}

.metric .value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.tool-features {
    margin-bottom: 1.5rem;
}

.tool-features h4 {
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.tool-features ul {
    list-style: none;
    padding: 0;
}

.tool-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tool-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

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

/* ROI Calculator Section */
.roi-calculator {
    padding: 80px 0;
    background: #ffffff;
}

.roi-calculator h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.roi-calculator-widget {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.faq-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question:before {
    content: "▸";
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.2s;
}

.faq-item.active .faq-question:before {
    transform: rotate(90deg);
}

.faq-answer {
    color: #666666;
    line-height: 1.6;
    padding-left: 2rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Section */
.cta-section {
    background: var(--color-primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.cta-primary {
    background: white;
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-primary:hover {
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.cta-secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .tool-header {
        flex-wrap: wrap;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .tool-metrics {
        grid-template-columns: 1fr;
    }
}