/*
Theme Name: CodingWizard AI
Theme URI: https://codingwizard.ai
Author: CodingWizard AI
Author URI: https://codingwizard.ai
Description: Custom theme for the Golden Thread Framework - 100x faster product development with AI coding agents
Version: 1.0.0
License: MIT
Text Domain: codingwizard
*/

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #1a202c;
    --gray: #4a5568;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --text: #2d3748;
    --border: #cbd5e0;
    --bg-light: #f7fafc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 10px 0;
    margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 20px;
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background: var(--bg-light);
}

.btn-github {
    background: var(--dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
}

.btn-github:hover {
    background: var(--gray);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><text x="10" y="50" font-size="40" opacity="0.1">01</text></svg>') repeat;
    opacity: 0.1;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 80px 20px;
}

.section-gray {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   PROBLEM/SOLUTION SECTION
   ======================================== */

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

.problem-box,
.solution-box {
    padding: 40px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.problem-box {
    border-left: 4px solid #ef4444;
}

.solution-box {
    border-left: 4px solid #10b981;
}

.problem-box h3,
.solution-box h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

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

.problem-box li,
.solution-box li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
}

.problem-box li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.solution-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.mapping-diagram {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto;
    max-width: 600px;
    font-family: 'Courier New', monospace;
    line-height: 2;
    text-align: center;
}

.mapping-diagram .arrow {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.mapping-diagram .level {
    padding: 10px;
    margin: 5px 0;
    background: var(--bg-light);
    border-radius: 6px;
    font-weight: 600;
}

/* ========================================
   FEATURES GRID
   ======================================== */

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

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   GITHUB STATS
   ======================================== */

.github-stats {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

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

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    border-radius: 12px;
}

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

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

/* ========================================
   DOCUMENTATION
   ======================================== */

.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.docs-sidebar {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-sidebar h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

.docs-nav {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 12px;
}

.docs-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text);
}

.docs-nav a:hover,
.docs-nav a.active {
    background: var(--white);
    color: var(--primary);
}

.docs-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.docs-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.docs-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.docs-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.docs-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.docs-content code {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.docs-content pre {
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.docs-content pre code {
    background: none;
    color: var(--white);
    padding: 0;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.docs-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ========================================
   GET STARTED PAGE
   ======================================== */

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.download-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.download-card p {
    color: var(--gray);
    margin-bottom: 25px;
}

.step-guide {
    counter-reset: step-counter;
}

.step {
    margin: 40px 0;
    padding-left: 60px;
    position: relative;
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* ========================================
   BLOG
   ======================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 30px;
}

.blog-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.blog-card h3 a {
    color: var(--dark);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 30px;
    margin-top: 80px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
}

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

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

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

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 20px;
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .problem-solution {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .docs-layout {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: static;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   AUTHOR BIO BOX
   ======================================== */

.author-bio-box {
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.author-bio-content {
    display: flex;
    gap: 30px;
    align-items: start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--dark);
}

.author-bio-text {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.author-links a {
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.author-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .author-bio-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .author-links {
        justify-content: center;
    }
}