/* ReddJSON Website Styles - Light Theme */

:root {
    --primary: #FF4500;
    --primary-dark: #cc3700;
    --primary-light: #fff0eb;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #6b6b7b;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-off-white: #fafbfc;
    --border-light: #e8e8ec;
    --border-medium: #d1d1d8;
    --success: #22c55e;
    --error: #ef4444;
    --info: #f59e0b;
    --code-bg: #f4f4f8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 0 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-github {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--text-dark);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.nav-github:hover {
    opacity: 0.9;
    color: white !important;
}

.nav-github svg {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero {
    padding: 140px 2rem 80px;
    text-align: center;
    background: var(--bg-off-white);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.hero-logo img {
    width: 100%;
    height: 100%;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Badges Row */
.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-orange {
    background: #fff0eb;
    color: #FF4500;
}

.badge-blue {
    background: #eef4ff;
    color: #4285F4;
}

.badge-green {
    background: #ecfdf5;
    color: #16a34a;
}

.badge-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

/* Sections */
.section {
    padding: 80px 2rem;
}

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

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* How It Works */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

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

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Code Block */
.code-block {
    background: var(--text-dark);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.code-block pre {
    color: #e0e0e0;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre;
}

.code-block .comment {
    color: #6b7280;
}

.code-block .string {
    color: #a5d6ff;
}

.code-block .key {
    color: #7dd3fc;
}

/* Screenshot Section */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.screenshot-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.screenshot-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-card .caption {
    padding: 1.25rem;
}

.screenshot-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.screenshot-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 2rem;
    background: var(--bg-off-white);
    border-top: 1px solid var(--border-light);
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: #a0a0b0;
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-logo img {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #a0a0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.85rem;
    color: #6b6b7b;
}

/* Page Header (for sub-pages) */
.page-header {
    padding: 120px 2rem 60px;
    text-align: center;
    background: var(--bg-off-white);
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Area */
.content-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-area h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.content-area h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.content-area p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.content-area ul,
.content-area ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-medium);
}

.content-area li {
    margin-bottom: 0.5rem;
}

.content-area code {
    background: var(--code-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.content-area pre {
    background: var(--text-dark);
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.content-area pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content-area th,
.content-area td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.content-area th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.content-area td {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Installation Steps */
.install-steps {
    counter-reset: step;
}

.install-step {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    counter-increment: step;
}

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

.install-step h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.install-step p {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 50px 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}