/* CogTracker Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

h2 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

h3 {
    color: #00d4ff;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

h4 {
    color: #eee;
    margin-bottom: 0.5rem;
}

a {
    color: #00d4ff;
}

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

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0055aa;
}

.btn-secondary {
    background: #333;
    color: #eee;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background: #444;
}

.btn-danger {
    background: #cc3333;
    color: white;
}

.btn-danger:hover {
    background: #aa2222;
}

.btn-link {
    background: none;
    color: #00d4ff;
    padding: 0;
    text-decoration: underline;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Forms */
input[type="email"],
input[type="text"],
input[type="password"] {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #333;
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: #00d4ff;
}

/* Landing Page */
.landing header {
    text-align: center;
    margin-bottom: 2rem;
}

.tagline {
    color: #888;
    font-size: 1.2rem;
}

.hero {
    margin-bottom: 3rem;
}

.key-message {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border: 1px solid #0f3460;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.key-message h2 {
    margin-bottom: 1rem;
}

.how-it-works {
    margin-bottom: 2rem;
}

.how-it-works .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.how-it-works .step {
    background: #16213e;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.how-it-works .step-number {
    width: 40px;
    height: 40px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.how-it-works .step h4 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.how-it-works .step p {
    font-size: 0.95rem;
    color: #ccc;
}

.how-it-works ol {
    margin-left: 1.5rem;
}

.how-it-works li {
    margin-bottom: 0.75rem;
}

.signup-box {
    background: #16213e;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.signup-box form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 1rem auto;
}

.signup-box input {
    flex: 1;
}

.privacy-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

.science {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #16213e;
    border-radius: 12px;
}

.science blockquote {
    font-style: italic;
    border-left: 3px solid #00d4ff;
    padding-left: 1rem;
    margin: 1rem 0;
}

.science cite {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

.test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.test-card {
    background: #16213e;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Trust Signals */
.trust-signals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

/* Differentiators Section */
.differentiators {
    margin: 2rem 0;
}

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

.diff-item {
    background: #16213e;
    border-radius: 12px;
    padding: 1.5rem;
}

.diff-item h4 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.diff-item p {
    font-size: 0.95rem;
    color: #ccc;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

.final-cta h3 {
    margin-bottom: 0.5rem;
}

.final-cta > p {
    color: #888;
    margin-bottom: 1.5rem;
}

.signup-form-inline {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.signup-form-inline input {
    flex: 1;
}

/* Footer */
footer {
    background: #0f0f1a;
    color: #888;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    font-size: 0.85rem;
}

footer .container {
    padding: 0 2rem;
}

.footer-links {
    margin-top: 0.75rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

.disclaimer {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.message.success {
    background: #1a4d2e;
    border: 1px solid #27ae60;
}

.message.error {
    background: #4d1a1a;
    border: 1px solid #c0392b;
}

.hidden {
    display: none !important;
}

/* Test Page */
.test-page {
    text-align: center;
}

.phase {
    padding: 2rem 0;
}

.instruction {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.green {
    color: #27ae60;
    font-weight: bold;
}

/* Reaction Test Stimulus */
.stimulus {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 2rem auto;
    transition: background-color 0.1s;
}

.stimulus.ready {
    background: #2c3e50;
}

.stimulus.wait {
    background: #c0392b;
}

.stimulus.go {
    background: #27ae60;
}

.stimulus.early {
    background: #f39c12;
}

.info {
    font-size: 1.1rem;
    margin: 1rem 0;
}

.progress {
    color: #888;
}

.note {
    color: #888;
    font-size: 0.95rem;
    margin: 1rem 0;
}

/* Stroop Test */
.color-key {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.color-key span {
    padding: 0.5rem 1rem;
    background: #16213e;
    border-radius: 4px;
    font-weight: bold;
}

.key-r { color: #e74c3c; }
.key-g { color: #2ecc71; }
.key-b { color: #3498db; }
.key-y { color: #f1c40f; }

.stroop-stimulus {
    width: 100%;
    max-width: 400px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    margin: 1.5rem auto;
    background: #16213e;
    border-radius: 12px;
}

.feedback {
    min-height: 1.5rem;
    margin: 0.5rem 0;
}

.feedback.correct {
    color: #27ae60;
}

.feedback.incorrect {
    color: #e74c3c;
}

/* Results Page */
.results-box {
    background: #16213e;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.result-section {
    margin-bottom: 1.5rem;
}

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

.result-metric {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.result-metric .label {
    color: #888;
}

.result-metric .value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00d4ff;
}

.result-metric .value-small {
    font-weight: bold;
}

.result-detail {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Save Section */
.save-section {
    background: #16213e;
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    margin-top: 2rem;
}

.save-options {
    margin: 1rem 0;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
}

.radio-option:hover,
.checkbox-option:hover {
    background: #1a1a2e;
}

.save-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.password-input-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.password-input-row input {
    flex: 1;
}

.warning-box {
    background: #4d3a1a;
    border: 1px solid #f39c12;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.info-text {
    color: #888;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.email-options {
    margin-top: 1.5rem;
}

#email-password-option {
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.action-buttons {
    margin-top: 2rem;
    text-align: center;
}

/* History Section */
.history-section {
    background: #16213e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.history-table th,
.history-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.history-table th {
    color: #888;
    font-weight: normal;
}

.change-positive {
    color: #27ae60;
}

.change-negative {
    color: #e74c3c;
}

/* Error/Success Pages */
.error-page,
.success-page {
    text-align: center;
    padding: 4rem 2rem;
}

.delete-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.delete-section h3 {
    color: #cc3333;
}

/* Policy Pages */
.policy-section {
    margin: 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.policy-section:last-of-type {
    border-bottom: none;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

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

.error-message {
    font-size: 1.2rem;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .signup-box form,
    .signup-form-inline {
        flex-direction: column;
    }

    .trust-signals {
        font-size: 0.8rem;
    }

    .trust-signals span:nth-child(2),
    .trust-signals span:nth-child(4) {
        display: none;
    }

    .stimulus {
        width: 200px;
        height: 200px;
    }

    .stroop-stimulus {
        font-size: 3rem;
        height: 120px;
    }

    .color-key {
        font-size: 0.9rem;
    }
}
