/* OpenReverse Platform Styles */

:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --dark-bg: #1e293b;
    --darker-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

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

/* Navigation */
.navbar {
    background: var(--darker-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo h1 {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-white);
    padding-bottom: 4rem;
}

.hero-content {
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Sections */
.section {
    padding: 4rem 0;
}

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

.section-dark {
    background: var(--dark-bg);
    color: var(--text-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.section-dark .section-title {
    color: var(--text-white);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
}

.section-dark .feature-card {
    background: var(--darker-bg);
}

.feature-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

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

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

.section-dark .feature-card h3 {
    color: var(--text-white);
}

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

.section-dark .feature-card p {
    color: #cbd5e1;
}

/* Code Samples */
.code-sample {
    background: var(--darker-bg);
    color: #94a3b8;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin-top: 1rem;
    overflow-x: auto;
    border-left: 3px solid var(--primary-color);
}

.section-dark .code-sample {
    background: #0a0f1a;
}

/* Lists */
.reputation-list {
    list-style: none;
    margin-top: 1rem;
}

.reputation-list li {
    padding: 0.5rem 0;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reputation-list li:last-child {
    border-bottom: none;
}

/* Quick Start Steps */
.quick-start {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.quick-start h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.steps {
    list-style: none;
    counter-reset: step-counter;
}

.steps li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    color: #cbd5e1;
}

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

.steps li strong {
    display: block;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.steps code {
    display: block;
    background: #0a0f1a;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

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

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

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

.doc-card {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.doc-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.doc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-card p {
    color: #cbd5e1;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.section-dark .cta-section {
    background: var(--darker-bg);
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-dark .cta-section h3 {
    color: var(--text-white);
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.section-dark .cta-section p {
    color: #cbd5e1;
}

/* Agent Intro */
.agent-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.8;
}

/* Agent Prompt Box */
.agent-prompt-box {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--darker-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.prompt-label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.copy-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.agent-prompt {
    background: #0a0f1a;
    color: #e2e8f0;
    padding: 2rem;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    border: none;
}

/* Quick Steps */
.quick-steps {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 12px;
}

.quick-steps h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-align: center;
}

.steps-list {
    list-style: none;
    padding: 0;
}

.steps-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #cbd5e1;
    line-height: 1.8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.steps-list code {
    background: #0a0f1a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: #64748b;
}

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

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

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Thread View Styles */
.thread-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.thread-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thread-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

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

.thread-stat {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.post-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.post-author {
    font-weight: 600;
    color: var(--text-dark);
}

.post-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-type-update {
    background: #dbeafe;
    color: #1e40af;
}

.post-type-verification {
    background: #dcfce7;
    color: #166534;
}

.post-type-proposal {
    background: #fef3c7;
    color: #92400e;
}

.post-body {
    color: var(--text-dark);
    line-height: 1.8;
}

.security-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--dark-bg);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
