:root {
    --yzp-ink: #1c2430;
    --yzp-muted: #5a6570;
    --yzp-paper: #f7f3ec;
    --yzp-surface: #fffdf9;
    --yzp-problem: #c43c2f;
    --yzp-problem-soft: #f6ebe8;
    --yzp-project: #2f7a4a;
    --yzp-project-soft: #e8f2ec;
    --yzp-community: #2a6f9e;
    --yzp-community-soft: #e7f0f6;
    --yzp-font-display: "Fraunces", "Times New Roman", serif;
    --yzp-font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

html, body {
    font-family: var(--yzp-font-body);
    color: var(--yzp-ink);
    background-color: var(--yzp-paper);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("img/seljuk-star.svg");
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: min(70vw, 560px);
    opacity: 0.035;
}

.page,
.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

h1, h2, h3, .brand, .section-title, .feed-card-title {
    font-family: var(--yzp-font-display);
}

a, .btn-link {
    color: var(--yzp-community);
}

.btn-primary {
    color: #fff;
    background-color: var(--yzp-ink);
    border-color: var(--yzp-ink);
}

.btn-primary:hover {
    background-color: #2a3442;
    border-color: #2a3442;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(42, 111, 158, 0.35);
}

.content {
    padding-top: 0;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Bir hata oluştu.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.page-shell {
    padding: 1.75rem 0 3rem;
}

.page-shell .container-xl {
    max-width: 1140px;
}

.section-block {
    padding: 2rem 0 0.5rem;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    font-weight: 650;
}

.section-subtitle {
    margin: 0.35rem 0 0;
    color: var(--yzp-muted);
    font-size: 0.98rem;
}

.section-link {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.section-problem .section-title,
.section-problem .section-link {
    color: var(--yzp-problem);
}

.section-project .section-title,
.section-project .section-link {
    color: var(--yzp-project);
}

.section-community .section-title,
.section-community .section-link {
    color: var(--yzp-community);
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.feed-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 9.5rem;
    padding: 1rem 1.05rem;
    text-decoration: none;
    color: inherit;
    background: var(--yzp-surface);
    border: 1px solid rgba(28, 36, 48, 0.08);
    border-radius: 0.55rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feed-card:hover {
    transform: translateY(-2px);
    color: inherit;
    box-shadow: 0 8px 22px rgba(28, 36, 48, 0.08);
}

.feed-card-theme-problem {
    border-top: 3px solid var(--yzp-problem);
}

.feed-card-theme-problem:hover {
    border-color: rgba(196, 60, 47, 0.35);
}

.feed-card-theme-project {
    border-top: 3px solid var(--yzp-project);
}

.feed-card-theme-project:hover {
    border-color: rgba(47, 122, 74, 0.35);
}

.feed-card-theme-community {
    border-top: 3px solid var(--yzp-community);
}

.feed-card-theme-community:hover {
    border-color: rgba(42, 111, 158, 0.35);
}

.feed-card-meta {
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--yzp-muted);
}

.feed-card-theme-problem .feed-card-meta {
    color: var(--yzp-problem);
}

.feed-card-theme-project .feed-card-meta {
    color: var(--yzp-project);
}

.feed-card-theme-community .feed-card-meta {
    color: var(--yzp-community);
}

.feed-card-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.25;
}

.feed-card-summary {
    margin: 0;
    color: var(--yzp-muted);
    font-size: 0.92rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-hero {
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid rgba(28, 36, 48, 0.08);
    margin-bottom: 1.5rem;
}

.detail-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.detail-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 700;
}

.detail-lead {
    margin: 0;
    max-width: 48rem;
    color: var(--yzp-muted);
    font-size: 1.05rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.detail-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(28, 36, 48, 0.06);
    color: var(--yzp-ink);
}

.detail-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.detail-panel {
    background: var(--yzp-surface);
    border: 1px solid rgba(28, 36, 48, 0.08);
    border-radius: 0.55rem;
    padding: 1rem 1.1rem;
    min-height: 8rem;
}

.detail-panel h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

.detail-panel p,
.detail-panel li {
    color: var(--yzp-muted);
    font-size: 0.95rem;
}

.detail-sections {
    display: grid;
    gap: 0.85rem;
}

.detail-section {
    background: var(--yzp-surface);
    border: 1px solid rgba(28, 36, 48, 0.08);
    border-radius: 0.55rem;
    padding: 1rem 1.15rem;
}

.detail-section h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.placeholder-note {
    color: var(--yzp-muted);
    font-size: 0.95rem;
}

.theme-problem .detail-eyebrow { color: var(--yzp-problem); }
.theme-project .detail-eyebrow { color: var(--yzp-project); }
.theme-community .detail-eyebrow { color: var(--yzp-community); }

.auth-page {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.auth-card {
    width: min(100%, 26rem);
    background: var(--yzp-surface);
    border: 1px solid rgba(28, 36, 48, 0.08);
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem 1.5rem;
}

.auth-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yzp-muted);
}

.auth-title {
    margin: 0 0 0.45rem;
    font-family: var(--yzp-font-display);
    font-size: 1.85rem;
    font-weight: 700;
}

.auth-lead {
    margin: 0 0 1.25rem;
    color: var(--yzp-muted);
    font-size: 0.98rem;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.45rem;
    background: var(--yzp-problem-soft);
    color: var(--yzp-problem);
    font-size: 0.92rem;
}

.auth-form {
    display: grid;
    gap: 0.35rem;
}

.auth-label {
    margin-top: 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    border: 1px solid rgba(28, 36, 48, 0.16);
    border-radius: 0.45rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    font: inherit;
}

.auth-input:focus {
    outline: none;
    border-color: var(--yzp-community);
    box-shadow: 0 0 0 0.2rem rgba(42, 111, 158, 0.2);
}

.auth-submit {
    margin-top: 1.1rem;
    border: 0;
    border-radius: 0.45rem;
    padding: 0.75rem 1rem;
    background: var(--yzp-ink);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.auth-submit:hover {
    background: #2a3442;
}

.auth-switch {
    margin: 1.15rem 0 0;
    text-align: center;
    color: var(--yzp-muted);
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .feed-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}
