/* ==========================================
   SEO LANDING PAGES - STYLES
   ========================================== */

/* Page Hero */
.page-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Tool Preview Section */
.tool-preview {
    padding: 80px 0;
    background: var(--card-bg);
}

.tool-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
}

.tool-preview > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

.preview-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.preview-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.preview-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.preview-streak {
    color: var(--warning);
    font-size: 0.9rem;
}

/* Preview Sliders */
.preview-slider-item {
    margin-bottom: 20px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.slider-value {
    font-weight: 600;
    color: var(--primary);
}

.preview-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    -webkit-appearance: none;
    appearance: none;
}

.preview-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.preview-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* Preview Summary */
.preview-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
}

.summary-item {
    text-align: center;
}

.summary-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.summary-item strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* Habit Checklist */
.habit-checklist {
    margin: 20px 0;
}

.habit-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.habit-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.habit-checkbox input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.habit-checkbox input:checked + .checkmark {
    background: var(--success);
    border-color: var(--success);
}

.habit-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.habit-icon {
    font-size: 1.2rem;
}

.habit-name {
    flex: 1;
    font-weight: 500;
}

/* Productivity Bars */
.productivity-bars {
    margin: 20px 0;
}

.prod-bar-item {
    margin-bottom: 16px;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.bar-name {
    font-weight: 500;
}

.bar-value {
    color: var(--text-muted);
}

.bar-track {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.productivity-insights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.insight-card.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.insight-card.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.insight-icon {
    font-size: 1.2rem;
}

/* Balance Test */
.balance-test-card .balance-areas {
    margin: 20px 0;
}

.balance-area-item {
    margin-bottom: 20px;
}

.area-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.area-name {
    font-weight: 500;
}

.area-value {
    font-weight: 700;
    color: var(--primary);
    min-width: 24px;
    text-align: center;
}

.balance-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 4px;
}

.balance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.balance-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.area-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.balance-result {
    text-align: center;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    margin: 24px 0;
}

.result-score {
    margin-bottom: 12px;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.score-max {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.result-interpretation .positive {
    color: var(--success);
}

.result-interpretation .warning {
    color: var(--warning);
}

.result-interpretation .danger {
    color: var(--danger);
}

/* Page Content */
.page-content {
    padding: 80px 0;
}

.container-narrow {
    max-width: 800px;
}

/* Table of Contents */
.toc {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 48px;
    border: 1px solid var(--border);
}

.toc h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 6px 0;
}

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

/* Content Sections */
.page-content section {
    margin-bottom: 48px;
}

.page-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text);
}

.page-content h3 {
    font-size: 1.3rem;
    margin: 32px 0 16px;
    color: var(--text);
}

.page-content p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-light);
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: var(--text);
}

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

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin: 48px 0;
}

.cta-box h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
}

.cta-box p {
    margin: 0 0 24px 0;
}

/* FAQ Section */
.faq-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

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

.faq-item h3 {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: var(--text);
}

.faq-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Related Tools */
.related-tools {
    padding: 80px 0;
    background: var(--bg);
}

.related-tools h2 {
    text-align: center;
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.tool-card h3 {
    color: var(--text);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.tool-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Footer for pages */
.footer {
    background: var(--card-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin: 0 0 12px 0;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 0;
}

.footer-links h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

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

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 20px 60px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
    
    .tool-preview {
        padding: 60px 20px;
    }
    
    .preview-card {
        padding: 24px;
    }
    
    .page-content {
        padding: 60px 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .nav-menu {
        display: none;
    }
}

/* Blog Styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    padding: 120px 20px 60px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Share Bar */
.share-bar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.share-bar-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

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

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin: 48px 0;
    color: white;
}

.newsletter-section h3 {
    margin: 0 0 12px 0;
    color: white;
}

.newsletter-section p {
    margin: 0 0 24px 0;
    color: rgba(255,255,255,0.9);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 14px 24px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-section {
        padding: 32px 20px;
    }
}
