/**
 * Hata / erişim engeli sayfaları
 */

body.hata-page {
    --hata-accent: #3498db;
    --hata-accent-dark: #1f6fad;
    --hata-danger: #e74c3c;
    --hata-warn: #f39c12;
    --hata-bg: #eef4fb;
    --hata-card: #ffffff;
    --hata-text: #1e293b;
    --hata-muted: #64748b;
    margin: 0;
    min-height: 100vh;
    font-family: "Rubik", sans-serif;
    color: var(--hata-text);
    background: var(--hata-bg);
    overflow-x: hidden;
}

body.hata-page--403 {
    --hata-accent: #e67e22;
    --hata-accent-dark: #d35400;
}

body.hata-page--404 {
    --hata-accent: #8e44ad;
    --hata-accent-dark: #6c3483;
}

body.hata-page--500 {
    --hata-accent: #e74c3c;
    --hata-accent-dark: #c0392b;
}

.hata-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(52, 152, 219, 0.18), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(46, 204, 113, 0.12), transparent 38%),
        linear-gradient(160deg, #f7fbff 0%, #eef4fb 45%, #e8f0f8 100%);
    z-index: 0;
}

.hata-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.hata-card {
    width: 100%;
    max-width: 720px;
    background: var(--hata-card);
    border-radius: 24px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
}

.hata-visual {
    background: linear-gradient(160deg, var(--hata-accent) 0%, var(--hata-accent-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
}

.hata-icon-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.hata-kod {
    font-family: "Montserrat", sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    opacity: 0.95;
}

.hata-content {
    padding: 40px 36px 36px;
}

.hata-etiket {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--hata-accent-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.hata-page--403 .hata-etiket {
    background: rgba(230, 126, 34, 0.12);
    color: #c05621;
}

body.hata-page--404 .hata-etiket {
    background: rgba(142, 68, 173, 0.12);
    color: #6c3483;
}

body.hata-page--500 .hata-etiket {
    background: rgba(231, 76, 60, 0.12);
    color: #c0392b;
}

.hata-content h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.25;
    color: var(--hata-text);
}

.hata-mesaj {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--hata-muted);
}

.hata-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hata-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hata-btn--primary {
    background: linear-gradient(135deg, var(--hata-accent), var(--hata-accent-dark));
    color: #fff;
    box-shadow: 0 8px 22px rgba(52, 152, 219, 0.28);
}

.hata-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(52, 152, 219, 0.34);
}

.hata-btn--ghost {
    background: #f8fafc;
    color: var(--hata-text);
    border: 1px solid #e2e8f0;
}

.hata-btn--ghost:hover {
    background: #f1f5f9;
    color: var(--hata-text);
}

.hata-ipucu {
    margin: 24px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border-left: 4px solid var(--hata-accent);
    font-size: 13px;
    line-height: 1.55;
    color: var(--hata-muted);
}

.hata-footer-note {
    margin-top: 24px;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .hata-card {
        grid-template-columns: 1fr;
    }

    .hata-visual {
        padding: 28px 20px 24px;
        flex-direction: row;
        gap: 16px;
    }

    .hata-icon-ring {
        width: 64px;
        height: 64px;
        font-size: 26px;
        margin-bottom: 0;
    }

    .hata-kod {
        font-size: 34px;
    }

    .hata-content {
        padding: 28px 22px 24px;
    }

    .hata-content h1 {
        font-size: 22px;
    }

    .hata-actions {
        flex-direction: column;
    }

    .hata-btn {
        width: 100%;
        justify-content: center;
    }
}
