:root {
    --bg: #0b0b0b;
    --panel: #1a1512;
    --border: #4a3a20;
    --gold: #d4af37;
    --red: #7a1f1f;
    --red-hover: #a32828;
    --text: #e6e0d0;
    --text-dim: #cfc8b8;
    --text-faint: #8a8272;
    --divider: #332a1c;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a {
    color: inherit;
}

/* --- Ust nav, tum sayfalarda ortak --- */
.site-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-dim);
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-nav a:hover {
    color: var(--gold);
    border-color: var(--border);
}

.site-nav a.active {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

/* --- Genel sayfa govdesi --- */
.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 60px;
}

.box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 40px 50px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    text-align: center;
}

h1 {
    color: var(--gold);
    margin-top: 0;
    letter-spacing: 1px;
}

h2 {
    color: var(--gold);
    letter-spacing: 0.5px;
}

p {
    line-height: 1.6;
    color: var(--text-dim);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid var(--gold);
    transition: background 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.steps {
    text-align: left;
    margin: 25px auto 0;
    max-width: 460px;
    color: var(--text-dim);
    font-size: 0.95em;
    line-height: 1.7;
}

.steps li {
    margin-bottom: 6px;
}

.info {
    margin-top: 30px;
    font-size: 0.85em;
    color: var(--text-faint);
    border-top: 1px solid var(--divider);
    padding-top: 15px;
}

.version {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--gold);
}

/* --- Tanitim sayfasina ozel: ozellik grid'i, ekran goruntuleri --- */
.hero {
    max-width: 720px;
}

.hero .subtitle {
    font-size: 1.05em;
    color: var(--text-dim);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 30px 0;
    text-align: left;
}

.feature {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 16px 18px;
}

.feature h3 {
    color: var(--gold);
    margin: 0 0 8px;
    font-size: 1em;
}

.feature p {
    margin: 0;
    font-size: 0.9em;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 30px 0;
}

.screenshots img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--divider);
    display: block;
}

.placeholder {
    color: #7a6a3a;
    font-style: italic;
}

/* --- Form (kayit sayfasi) --- */
form.card {
    text-align: left;
}

form.card label {
    display: block;
    margin: 14px 0 4px;
    color: var(--text-dim);
    font-size: 0.9em;
}

form.card input[type="text"],
form.card input[type="password"],
form.card input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    background: #100d0b;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1em;
}

form.card input:focus {
    outline: none;
    border-color: var(--gold);
}

form.card .btn {
    width: 100%;
    margin-top: 22px;
    border: 1px solid var(--gold);
}

.field-hint {
    font-size: 0.8em;
    color: var(--text-faint);
    margin-top: 3px;
}

.flash {
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.92em;
    text-align: left;
}

.flash-success {
    background: rgba(60, 140, 60, 0.15);
    border: 1px solid #3c8c3c;
    color: #b6e6b6;
}

.flash-error {
    background: rgba(140, 40, 40, 0.15);
    border: 1px solid #8c2828;
    color: #e6b6b6;
}

/* Honeypot: gercek kullanicilar gormez, botlar cogunlukla doldurur */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* --- Canli sunucu durumu widget'i (/api/status'tan JS ile dolduruluyor) --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--divider);
    font-size: 0.9em;
    color: var(--text-dim);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6a6a6a;
    flex-shrink: 0;
}

.status-badge.is-online .status-dot {
    background: #3c8c3c;
    box-shadow: 0 0 6px #3c8c3c;
}

.status-badge.is-offline .status-dot {
    background: #8c2828;
    box-shadow: 0 0 6px #8c2828;
}

/* --- Footer, tum sayfalarda ortak --- */
.site-footer {
    margin-top: auto;
    padding: 24px 20px;
    text-align: center;
    font-size: 0.82em;
    color: var(--text-faint);
    border-top: 1px solid var(--divider);
}

.site-footer a {
    color: var(--text-faint);
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--gold);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page {
    flex: 1;
}

/* --- SSS (FAQ) sayfasi --- */
.faq-box {
    max-width: 720px;
    text-align: left;
}

.faq-box h1 {
    text-align: center;
}

.faq-item {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--divider);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--gold);
    margin: 0 0 8px;
    font-size: 1.02em;
}

.faq-item p {
    margin: 0;
}
