/* ==========================================================================
   terminal.css — Tasarım 1 (terminal kabuğu)
   Bu dosyayı değiştirmek base.css'i etkilemez; tersi de geçerli.
   ========================================================================== */

/* ---------- palette (light is the default) ---------- */
html {
    --bg-color: #f4f5f7;
    --text-color: #1f2328;
    --container-bg: #ffffff;
    --border-color: #d0d7de;
    --accent-color: #0969da;
    --accent-ink: #ffffff;
    --dim-text: #57606a;
    --code-bg: #f6f8fa;
}
html[data-theme="dark"] {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --container-bg: #161b22;
    --border-color: #30363d;
    --accent-color: #58a6ff;
    --accent-ink: #0d1117;
    --dim-text: #8b949e;
    --code-bg: #1f242c;
}

/* ---------- page ---------- */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font);
    margin: 0;
    padding: clamp(16px, 4.5vw, 24px);
    display: flex;
    justify-content: center;
    min-height: var(--vh);
    min-height: 100dvh;
    overflow-x: hidden;
}
.terminal-container {
    width: 100%; max-width: min(900px, 100%);
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: clamp(18px, 2.4vw, 32px);
    box-sizing: border-box;
    margin: auto;
}

/* ---------- header ---------- */
.site-header { display: block; }
.terminal-header {
    display: flex; flex-direction: column;
    gap: clamp(8px, 1.2vw, 10px);
    margin-bottom: clamp(14px, 2.5vw, 20px);
    font-size: clamp(11.5px, 1.5vw, 14px);
}
.header-controls {
    display: flex; gap: 8px; flex-wrap: wrap;
    justify-content: flex-end; margin-left: auto;
    padding-bottom: clamp(8px, 1.4vw, 12px);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}
.command { color: var(--accent-color); font-weight: bold; }
.theme-toggle, .lang-toggle, .font-toggle, .design-toggle {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: clamp(7px, .8vw, 9px) clamp(10px, 1.4vw, 14px);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(11px, 1.3vw, 13px);
    white-space: nowrap;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.theme-toggle:hover, .lang-toggle:hover, .font-toggle:hover, .design-toggle:hover {
    border-color: var(--accent-color);
}
.lang-toggle.active { color: var(--accent-color); font-weight: bold; }
.design-toggle {
    border-style: dashed;
    color: var(--accent-color);
}
.design-toggle:hover { background: var(--accent-color); color: var(--accent-ink, #fff); }

/* ---------- logs / version ---------- */
.system-logs {
    font-size: clamp(11px, 1.4vw, 13px);
    color: var(--dim-text);
    margin-bottom: clamp(14px, 2.5vw, 20px);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.manifesto-version { font-size: clamp(11px, 1.4vw, 13px); color: var(--dim-text); overflow-wrap: anywhere; }

/* ---------- status bar ---------- */
.status-bar {
    display: flex; justify-content: space-between; align-items: center;
    gap: clamp(6px, 1.5vw, 16px); flex-wrap: nowrap;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: clamp(8px, 1.2vw, 9px) clamp(10px, 1.6vw, 14px);
    margin-bottom: clamp(12px, 2vw, 16px);
    font-size: clamp(10.5px, 1.2vw, 11px);
    line-height: 1.6;
    color: var(--dim-text);
    overflow-wrap: anywhere;
}
.status-bar b { color: var(--accent-color); font-weight: 700; font-size: clamp(11px, 1.4vw, 12.5px); }
.status-sep { margin: 0 clamp(4px, 1vw, 8px); opacity: .45; }
.status-right { flex: 0 0 auto; white-space: nowrap; margin-left: auto; }
.status-left  { flex: 1 1 auto; min-width: 0; }
.prompt-line { min-width: 0; overflow-wrap: anywhere; }

/* ---------- manifesto ---------- */
.manifesto-content {
    font-size: clamp(13px, 1.65vw, 15px);
    max-width: none;
    line-height: 1.8;
    margin-bottom: clamp(16px, 3vw, 24px);
}
.manifesto-content p { margin: 0 0 1.8em; }
.manifesto-content p:last-child { margin-bottom: 0; }
.manifesto-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    padding: 5px 1px;
}
.manifesto-content a:hover { text-decoration-thickness: 2px; }
.manifesto-content p {
    overflow-wrap: break-word;
    text-align: left;
    text-indent: 1.5em;
    hyphens: auto;
    -webkit-hyphens: auto;
}
/* Justified edges read well on wide screens; on narrow ones justify stretches
   the few word-spaces too far, so mobile stays left-aligned. */
@media (min-width: 900px) { .manifesto-content p { text-align: justify; } }

/* ---------- font credits ---------- */
.font-credits {
    font-size: clamp(11px, 1.2vw, 12px);
    color: var(--dim-text);
    line-height: 1.7;
    margin-bottom: clamp(14px, 2.5vw, 20px);
    overflow-wrap: anywhere;
}
.font-credits a { color: var(--accent-color); text-decoration: none; padding: 6px 1px; }
.font-credits a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.terminal-footer {
    border-top: 1px solid var(--border-color);
    padding-top: clamp(12px, 2vw, 16px);
    display: flex; justify-content: space-between; align-items: center;
    font-size: clamp(11px, 1.4vw, 13px);
    flex-wrap: wrap; gap: 10px;
}
.channels { display: flex; flex-wrap: wrap; gap: 6px 0; min-width: 0; }
.channels a {
    color: var(--accent-color); text-decoration: none;
    margin-left: 7px; display: inline-block;
    padding: 11px 6px;
}
.channels a:first-child { margin-left: 0; }
.channels a:hover { text-decoration: underline; }
.terminal-footer > div { min-width: 0; }
.terminal-footer > div:first-child { overflow-wrap: anywhere; }

/* ---------- epigraph ---------- */
.quote {
    margin: clamp(16px, 3vw, 26px) 0 0;
    padding: clamp(10px, 2vw, 14px) clamp(12px, 2.4vw, 18px);
    border-left: 3px solid var(--accent-color);
    background: var(--code-bg);
    border-radius: 0 4px 4px 0;
    font-size: clamp(11px, 1.35vw, 13px);
    line-height: 1.7;
    color: var(--dim-text);
    font-style: italic;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .terminal-footer { flex-direction: column; align-items: flex-start; }
    .channels { margin-top: 5px; flex-wrap: nowrap; justify-content: space-between; width: 100%; }
    .channels a { margin-left: 0; margin-right: 0; padding: 9px 4px; font-size: clamp(10.5px, 2.8vw, 12px); }
    .terminal-header { flex-direction: column; align-items: flex-start; }
    .status-right { white-space: normal; margin-left: 0; align-self: flex-start; }
    .status-bar { flex-direction: column; align-items: stretch; }
    .header-controls { width: 100%; justify-content: flex-start; }
    .theme-toggle, .lang-toggle, .font-toggle, .design-toggle { padding: 11px 14px; font-size: 12px; min-height: 44px; }
    .manifesto-content p { text-align: left; text-indent: 1em; }
    .manifesto-content a { padding: 7px 1px; }
    .font-credits a { padding: 8px 1px; }
    .terminal-container {
        border-radius: 0;
        margin: 0 calc(-1 * clamp(16px, 4.5vw, 24px));
        width: calc(100% + 2 * clamp(16px, 4.5vw, 24px));
        max-width: none;
        border-left: 0; border-right: 0;
    }
}
/* Very narrow phones (≤400px): the channel links cannot fit one row — wrap. */
@media (max-width: 400px) {
    .channels { flex-wrap: wrap; justify-content: flex-start; gap: 0 4px; width: auto; }
    .channels a { margin-left: 0; margin-right: 0; padding: 10px 5px; }
}
@media (max-height: 560px) and (orientation: landscape) {
    body { align-items: flex-start; }
    .manifesto-content { line-height: 1.8; }
    .system-logs { line-height: 1.4; }
}
