/* I'm Seeking — Prototype Styles */
/* Dark, quiet, minimal. The brand IS the restraint. */

:root {
    --bg: #0d0d0d;
    --surface: #161616;
    --surface-hover: #1e1e1e;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #777;
    --accent: #7c8cff;
    --accent-dim: #4a5290;
    --danger: #8b3a3a;
    --radius: 12px;
    --font: 'Georgia', 'Times New Roman', serif;
    --font-mono: 'Courier New', monospace;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Hero */
.hero {
    width: 100%;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.brand {
    font-size: 2.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
}

.cursor {
    animation: blink 1.5s ease-in-out infinite;
    color: var(--accent);
}

/* Labyrinth header mark */
.labyrinth-mark {
    margin-bottom: 1.5rem;
}

.labyrinth-svg {
    width: 80px;
    height: 80px;
}

.labyrinth-svg path {
    fill: none;
    stroke: var(--accent-dim);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}

.labyrinth-cursor {
    fill: var(--accent);
    opacity: 0.9;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Input */
#seek-form {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    transition: border-color 0.3s;
}

#seek-form:focus-within {
    border-color: var(--accent-dim);
}

.seek-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 1.4rem;
    font-style: italic;
    padding: 0.75rem 0.25rem;
    outline: none;
}

.seek-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.submit-btn:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0.7;
}

/* Privacy checkbox */
.privacy-row {
    max-width: 500px;
    margin: 0.5rem auto 0;
    text-align: center;
}

.privacy-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-style: italic;
    transition: color 0.2s;
}

.privacy-label:hover {
    color: var(--text);
}

.privacy-checkbox {
    appearance: none;
    width: 12px;
    height: 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.privacy-checkbox:checked {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
}

/* Feed header row */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.feed-header .card-label {
    margin-bottom: 0;
}

.resonates-header {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-family: var(--font-mono);
    opacity: 0.5;
    padding-right: 2px;
}

/* Clear session — above feed, centered, muted */
.clear-session-row {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.clear-session-row .footer-link {
    font-size: 0.7rem;
    opacity: 0.4;
}

/* Resonance dot — on the right */
.feed-entry-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.feed-entry-row:last-child {
    border-bottom: none;
}

.feed-entry-text {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    flex: 1;
}

.resonance-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.3rem;
    order: 2;
}

.resonance-dot:hover {
    border-color: var(--accent-dim);
    background: rgba(124, 140, 255, 0.15);
}

.resonance-dot.resonated {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
    box-shadow: 0 0 6px rgba(124, 140, 255, 0.3);
}

.resonance-count {
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 16px;
    text-align: center;
    margin-top: 0.2rem;
    order: 1;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-dim);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.8); }
}

/* Response */
.response {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

/* Reframe */
.reframe-content {
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
}

.reframe-content p {
    margin-bottom: 0.75rem;
}

/* Feed */
.feed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feed-list li {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.feed-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

/* Takeaway */
.takeaway-card {
    border-color: var(--accent-dim);
}

.takeaway-text {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-dim);
    color: var(--text);
}

.copy-confirm {
    color: var(--accent);
    font-size: 0.8rem;
    margin-left: 0.75rem;
    font-style: italic;
}

/* Continue Area — Thoughts? bar + Keep going as siblings */
.continue-area {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.thoughts-form {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    transition: border-color 0.3s;
}

.thoughts-form:focus-within {
    border-color: var(--accent-dim);
}

.thoughts-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    font-style: italic;
    padding: 0.5rem 0.25rem;
    outline: none;
}

.thoughts-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.thoughts-submit-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thoughts-submit-btn:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* Keep Going — mirrors the thoughts form row exactly */
.keep-going-row {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    margin-top: 0.5rem;
    transition: border-color 0.3s;
}

.keep-going-row:hover {
    border-color: var(--accent-dim);
}

.keep-going-btn {
    flex: 1;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 1rem;
    font-style: italic;
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    transition: color 0.2s;
}

.keep-going-btn:hover {
    color: var(--accent);
}

/* Conversation Thread */
.conversation-thread {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thread-user-entry {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.thread-agent-response {
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
    padding-bottom: 0.5rem;
}

/* Footer */
footer {
    margin-top: 0;
    padding-bottom: 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-style: italic;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text);
}

.footer-sep {
    color: var(--border);
    font-size: 0.8rem;
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    opacity: 0.6;
}

.suggestions-form {
    margin-top: 0.75rem;
}

#suggest-form {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    max-width: 320px;
    margin: 0 auto;
    transition: border-color 0.3s;
}

#suggest-form:focus-within {
    border-color: var(--accent-dim);
}

.privacy-note {
    color: var(--text-muted);
    font-size: 0.65rem;
    margin-top: 0.25rem;
    opacity: 0.6;
}

.crisis-resources {
    opacity: 0.3;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
    text-align: center;
    margin-top: 10rem;
}

.crisis-resources p {
    margin: 0;
    line-height: 1.3;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-content h2 {
    font-weight: 400;
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.modal-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text);
}

.kofi-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--bg)  !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s;
}
.kofi-button:hover { opacity: 0.85; }

.kofi-sub {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted)  !important;
}

.manifesto-closer {
    font-style: italic;
    color: var(--accent)  !important;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 500px) {
    .hero { padding-top: 2rem; }
    .brand { font-size: 1.8rem; }
    .seek-input { font-size: 1.2rem; }
    .modal-content { padding: 1.5rem; }
}
