/*
Theme Name: ZenCode AI
Theme URI: https://zencodeai.com
Author: ZenCode AI
Author URI: https://zencodeai.com
Description: A modern, dark-themed landing page for ZenCode AI - The AI IDE That Lives Inside WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zencode-ai
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-primary: #a855f7;
    --purple-dark: #7c3aed;
    --blue-accent: #60a5fa;
    --bg-dark: #0a0a0a;
    --bg-card: #0f1419;
    --text-primary: #e0e0e0;
    --text-secondary: #9ca3af;
}

/* Light mode variables */
[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-card: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
}

/* Force colors regardless of system dark mode (for social media) */
html {
    color-scheme: dark;
}

[data-theme="light"] {
    color-scheme: light;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--purple-primary);
    transform: translateY(-2px);
}

.theme-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(20deg);
}

.theme-toggle-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
    }
    
    .theme-toggle-text {
        display: none;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0b2e 0%, #0f1419 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* Light mode hero */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f3e8ff 0%, #ddd6fe 100%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--blue-accent) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Light mode secondary button */
[data-theme="light"] .btn-secondary {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-primary);
    border: 2px solid var(--purple-primary);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--purple-dark);
    border-color: var(--purple-dark);
}

.trust-badge {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Screenshot Preview */
.screenshot-preview {
    margin-top: 4rem;
    position: relative;
}

.screenshot-preview img {
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Video Section */
.video-section {
    padding: 6rem 2rem;
    background: var(--bg-dark);
    position: relative;
}

.video-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

[data-theme="light"] .video-section::before {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.video-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.video-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
    border: 2px solid rgba(168, 85, 247, 0.2);
    background: var(--bg-card);
}

[data-theme="light"] .video-wrapper {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.video-cta {
    text-align: center;
    margin-top: 3rem;
}

.video-cta p {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.video-cta .btn {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

/* Mobile responsive for video section */
@media (max-width: 768px) {
    .video-section {
        padding: 4rem 1rem;
    }
    
    .video-header h2 {
        font-size: 1.8rem;
    }
    
    .video-header p {
        font-size: 1rem;
    }
    
    .video-cta p {
        font-size: 1.1rem;
    }
}

/* Features Section */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Problem/Solution */
.problem-solution {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    padding: 2rem;
    border-radius: 12px;
}

.comparison-card.problem {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-left: 4px solid #ef4444;
}

.comparison-card.solution {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(21, 128, 61, 0.05) 100%);
    border-left: 4px solid #22c55e;
}

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

.comparison-card ul {
    list-style: none;
}

.comparison-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.comparison-card.problem ul li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
}

.comparison-card.solution ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--purple-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.stat-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Workflow Section */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.workflow-step {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.workflow-step.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.workflow-step::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--blue-accent) 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.workflow-step h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.use-case.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.use-case h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--purple-primary);
}

.use-case ul {
    list-style: none;
}

.use-case ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.use-case ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue-accent);
}

/* Pricing Section */
.pricing-card {
    max-width: 600px;
    margin: 3rem auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid var(--purple-primary);
    text-align: center;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
    font-size: 1.2rem;
}

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

.faq-item {
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(168, 85, 247, 0.05);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--purple-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a0b2e 0%, #0f1419 100%);
    position: relative;
}

/* Light mode CTA section */
[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, #f3e8ff 0%, #ddd6fe 100%);
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* COMPLETE FOOTER SECTION FIX - Replace lines 703-727 in your style.css */

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Footer links - same color for all states except hover */
.footer-links a,
.footer-links a:visited,
.footer-links a:link,
.footer-links a:active {
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--purple-primary) !important;
    text-decoration: none;
}

/* Light mode footer - ensures proper colors */
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-links a:visited,
[data-theme="light"] .footer-links a:link,
[data-theme="light"] .footer-links a:active {
    color: #6b7280 !important;
}

[data-theme="light"] .footer-links a:hover {
    color: #a855f7 !important;
}

/* Also update the general link visited style to not affect footer */
a:visited {
    color: #b87dff;
}

footer a:visited {
    color: var(--text-secondary) !important;
}

[data-theme="light"] footer a:visited {
    color: #6b7280 !important;}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link Styling for Dark Theme */
a {
    color: var(--purple-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--blue-accent);
    text-decoration: underline;
}

a:visited {
    color: #b87dff;
}

/* Page Template Styles */
.page-container {
    min-height: 100vh;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-back-button {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    color: var(--purple-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--purple-primary);
    transform: translateX(-5px);
    text-decoration: none;
    color: var(--blue-accent);
}

.back-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-btn:hover .back-arrow {
    transform: translateX(-3px);
}

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-body {
    line-height: 1.8;
    color: var(--text-primary);
}

.page-body h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    padding-bottom: 0.5rem;
}

.page-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--purple-primary);
}

.page-body h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--blue-accent);
}

.page-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.page-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.page-body ul,
.page-body ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.page-body li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.page-body hr {
    border: none;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    margin: 3rem 0;
}

.page-body a {
    color: var(--purple-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-body a:hover {
    color: var(--blue-accent);
}

.page-body code {
    background: rgba(168, 85, 247, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--blue-accent);
}

.page-body pre {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.page-body blockquote {
    border-left: 4px solid var(--purple-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile Responsive for Pages */
@media (max-width: 768px) {
    .page-container {
        padding: 2rem 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-body h2 {
        font-size: 1.5rem;
    }
    
    .page-body h3 {
        font-size: 1.25rem;
    }
    
    .back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}


@media (max-width: 600px) {
  .problem-solution {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
	padding-top: 0rem;
    padding-bottom: 1.5rem;
    /* optionally reduce top/bottom padding too */
    /* padding-top: 2rem;
    padding-bottom: 2rem; */
  }
}