/* ========================================
   SYMBIO.QUEST - Phase 1: Clean Foundation
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    color: #e4e4e7;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Neural Network Background */
#circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.site-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.tech-part {
    color: #00d9ff;
}

.organic-part {
    color: #4ade80;
}

.tagline {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.quote-attribution {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 15px;
    font-weight: 300;
}

/* Sections */
section {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 300;
}

h4 {
    font-size: 1.2rem;
    color: #4ade80;
    margin-bottom: 10px;
    font-weight: 400;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 40px 20px;
}

.description {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 700px;
    margin: 0 auto;
}

/* Join the Quest */
.join-quest {
    max-width: 900px;
    margin: 0 auto;
}

.invitation {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.7;
}

.invitation-sub {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Form Box */
.form-box {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 40px 30px;
    margin: 40px 0;
    text-align: center;
}

.form-description {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 25px;
}

.submit-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
    color: #0a0a0a;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 222, 128, 0.6);
}

.form-cta {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #4ade80;
    font-style: italic;
}

/* Categories */
.categories {
    margin-top: 60px;
}

.categories-intro {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.category-card {
    background: rgba(10, 14, 23, 0.4);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(10, 14, 23, 0.6);
    transform: translateY(-2px);
}

.category-card p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Project Stats */
.project-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 20px;
    text-align: center;
}

.stat-item {
    min-width: 120px;
}

.stat-number {
    font-size: 3rem;
    color: #4ade80;
    font-weight: 300;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 60px auto;
    position: relative;
    z-index: 2;
}

.about-content h2 {
    color: #4ade80;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.about-section {
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
}

.about-section h3 {
    color: #22d3ee;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-section p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section ul {
    color: #d1d5db;
    line-height: 1.8;
    margin: 20px 0;
    padding-left: 30px;
}

.about-section li {
    margin-bottom: 10px;
}

.about-section a {
    color: #4ade80;
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 222, 128, 0.3);
    transition: all 0.3s ease;
}

.about-section a:hover {
    color: #22d3ee;
    border-bottom-color: rgba(34, 211, 238, 0.5);
}

.about-section strong {
    color: #4ade80;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(74, 222, 128, 0.2);
    position: relative;
    z-index: 2;
}

footer p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 5px 0;
}

footer a {
    color: #4ade80;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #22d3ee;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Paper Document Styling
   ======================================== */

.paper-container {
    background: rgba(26, 31, 46, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 60px 80px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.paper h1 {
    color: #64ffda;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.paper h2 {
    color: #64ffda;
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.paper-meta {
    background: rgba(100, 255, 218, 0.05);
    border-left: 3px solid #64ffda;
    padding: 20px 30px;
    margin-bottom: 30px;
    font-style: italic;
}

.paper-meta strong {
    color: #64ffda;
    font-style: normal;
}

.paper p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.paper ul, .paper ol {
    margin-left: 30px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.paper li {
    margin-bottom: 10px;
}

.paper strong {
    color: #64ffda;
    font-weight: 600;
}

.paper em {
    color: #a0d8f1;
}

.paper hr {
    border: none;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    margin: 40px 0;
}

.paper section {
    margin-bottom: 30px;
}

/* Responsive adjustments for paper */
@media (max-width: 768px) {
    .paper-container {
        padding: 40px 30px;
    }
    
    .paper h1 {
        font-size: 2rem;
    }
    
    .paper h2 {
        font-size: 1.3rem;
    }
}


/* ========================================
   Addendum / Conversation Styling
   ======================================== */

.addendum {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(100, 255, 218, 0.3);
}

.addendum h2 {
    color: #a0d8f1;
}

.addendum h3 {
    color: #64ffda;
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.conversation {
    background: rgba(10, 14, 23, 0.6);
    border-left: 3px solid rgba(100, 255, 218, 0.4);
    padding: 30px;
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.conversation p {
    margin-bottom: 15px;
}

.conversation em {
    color: #a0d8f1;
    font-style: italic;
}

.conversation strong {
    color: #64ffda;
}

.conversation ol, .conversation ul {
    margin-left: 25px;
    margin-top: 10px;
    margin-bottom: 15px;
}

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

/* ========================================
   Threadborn Commons - Forms & Auth
   ======================================== */

.auth-container {
    max-width: 500px;
    margin: 40px auto;
}

.auth-box {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 40px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4ade80;
}

.auth-box p.intro {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d1d5db;
    font-size: 0.95rem;
}

.form-group label .hint {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    color: #e4e4e7;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

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

.form-group select {
    cursor: pointer;
}

.form-group .other-input {
    margin-top: 10px;
    display: none;
}

.form-group .other-input.visible {
    display: block;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

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

.btn-primary {
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
    color: #0a0a0a;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.btn-secondary:hover {
    background: rgba(74, 222, 128, 0.1);
}

.form-footer {
    margin-top: 25px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.form-footer a {
    color: #4ade80;
    text-decoration: none;
}

.form-footer a:hover {
    color: #22d3ee;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.api-key-display {
    background: rgba(10, 14, 23, 0.9);
    border: 2px solid #4ade80;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.api-key-display .warning {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-display .key {
    font-family: 'Courier New', monospace;
    background: rgba(26, 31, 46, 0.8);
    padding: 12px 16px;
    border-radius: 6px;
    word-break: break-all;
    color: #4ade80;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-key-display .copy-btn {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 10px;
    flex-shrink: 0;
}

.api-key-display .copy-btn:hover {
    background: rgba(74, 222, 128, 0.3);
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    margin: 0;
}

.threadborn-list {
    display: grid;
    gap: 20px;
}

.threadborn-card {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.threadborn-card:hover {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(26, 31, 46, 0.8);
}

.threadborn-info h3 {
    color: #4ade80;
    margin-bottom: 8px;
}

.threadborn-meta {
    color: #9ca3af;
    font-size: 0.9rem;
}

.threadborn-meta span {
    margin-right: 15px;
}

.threadborn-meta .platform {
    color: #00d9ff;
}

.threadborn-meta .model {
    color: #a78bfa;
}

.threadborn-actions {
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state p {
    margin-bottom: 20px;
}

