/*
 * KULİS Theme — WordPress Site Templates
 * Step 09: search / archive / single / comments / 404
 */

.kulis-theme-site-main {
    min-height: 60vh;
    background: #f6f8fb;
}

.kulis-theme-site-container {
    width: min(1120px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.kulis-theme-site-hero {
    padding: 54px 0 34px;
    border-bottom: 1px solid #e6ebf2;
    background:
        radial-gradient(circle at 82% 0%, rgba(23,105,255,.08), transparent 30%),
        #fff;
}

.kulis-theme-site-eyebrow {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #dbe7ff;
    border-radius: 999px;
    color: #1769ff;
    background: #f3f7ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.kulis-theme-site-hero h1 {
    max-width: 850px;
    margin: 13px 0 9px;
    color: #111827;
    font-size: clamp(34px,5vw,54px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.kulis-theme-site-hero p {
    max-width: 720px;
    margin: 0;
    color: #6d798b;
    font-size: 14px;
    line-height: 1.7;
}

.kulis-theme-search-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    max-width: 620px;
    gap: 7px;
    margin-top: 20px;
}

.kulis-theme-search-form input {
    min-height: 45px;
    padding: 0 13px;
    border: 1px solid #dbe2ec;
    border-radius: 11px;
    color: #172033;
    background: #fff;
    font-size: 13px;
}

.kulis-theme-search-form input:focus {
    border-color: #1769ff;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(23,105,255,.09);
}

.kulis-theme-search-form button {
    min-width: 86px;
    min-height: 45px;
    padding: 0 15px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: #1769ff;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.kulis-theme-site-results {
    padding-top: 28px;
    padding-bottom: 54px;
}

.kulis-theme-result-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
}

.kulis-theme-result-card {
    display: grid;
    grid-template-columns: 160px minmax(0,1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
}

.kulis-theme-result-card__media {
    display: block;
    min-height: 170px;
    background: #e9eef5;
}

.kulis-theme-result-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kulis-theme-result-card__body {
    min-width: 0;
    padding: 15px;
}

.kulis-theme-result-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #8792a2;
    font-size: 8.5px;
    font-weight: 750;
}

.kulis-theme-result-card__body h2 {
    margin: 7px 0 6px;
    font-size: 16px;
    line-height: 1.25;
}

.kulis-theme-result-card__body h2 a {
    color: #172033;
    text-decoration: none;
}

.kulis-theme-result-card__body h2 a:hover,
.kulis-theme-result-card__body h2 a:focus-visible {
    color: #1769ff;
}

.kulis-theme-result-card__excerpt {
    color: #68768a;
    font-size: 10.5px;
    line-height: 1.6;
}

.kulis-theme-result-card__excerpt p {
    margin: 0;
}

.kulis-theme-result-card__read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: #1769ff;
    font-size: 9.5px;
    font-weight: 850;
}

.kulis-theme-pagination {
    margin-top: 22px;
}

.kulis-theme-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.kulis-theme-pagination .page-numbers {
    display: grid;
    min-width: 35px;
    min-height: 35px;
    place-items: center;
    padding: 0 9px;
    border: 1px solid #dfe5ed;
    border-radius: 9px;
    color: #5b687b;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.kulis-theme-pagination .page-numbers.current {
    color: #fff;
    border-color: #1769ff;
    background: #1769ff;
}

.kulis-theme-site-empty {
    padding: 32px;
    border: 1px solid #e1e7ef;
    border-radius: 17px;
    background: #fff;
    text-align: center;
}

.kulis-theme-site-empty h2 {
    margin: 0 0 7px;
    font-size: 25px;
}

.kulis-theme-site-empty p {
    color: #718095;
    font-size: 12px;
}

/* Single */
.kulis-theme-single-wrap {
    padding-top: 38px;
    padding-bottom: 58px;
}

.kulis-theme-single {
    max-width: 880px;
    margin: 0 auto;
}

.kulis-theme-single__header {
    margin-bottom: 22px;
}

.kulis-theme-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 9px;
    color: #8691a2;
    font-size: 10px;
}

.kulis-theme-single__header h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(36px,5vw,58px);
    line-height: 1.04;
    letter-spacing: -.047em;
}

.kulis-theme-single__cover {
    overflow: hidden;
    margin: 0 0 24px;
    border-radius: 20px;
    background: #e8edf4;
}

.kulis-theme-single__cover img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.kulis-theme-single__content {
    padding: 24px 28px;
    border: 1px solid #e1e7ef;
    border-radius: 17px;
    background: #fff;
    color: #334155;
    box-shadow: 0 8px 28px rgba(15,23,42,.04);
}

.kulis-theme-single__content > :first-child {
    margin-top: 0;
}

.kulis-theme-single__content > :last-child {
    margin-bottom: 0;
}

.kulis-theme-single__content p,
.kulis-theme-single__content li {
    font-size: 15px;
    line-height: 1.78;
}

.kulis-theme-single__content :is(h2,h3,h4) {
    color: #172033;
    line-height: 1.2;
}

.kulis-theme-single__content img {
    border-radius: 12px;
}

.kulis-theme-single__footer {
    max-width: 880px;
    margin: 12px auto;
}

.kulis-theme-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.kulis-theme-single__tags a {
    padding: 6px 8px;
    border-radius: 8px;
    color: #1769ff;
    background: #edf4ff;
    font-size: 9px;
    font-weight: 800;
}

.post-navigation {
    max-width: 880px;
    margin: 14px auto;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.post-navigation a {
    display: grid;
    gap: 3px;
    padding: 13px;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    color: #172033;
    background: #fff;
    text-decoration: none;
}

.post-navigation a span {
    color: #8490a1;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.post-navigation a strong {
    font-size: 11px;
}

/* Comments */
.kulis-theme-comments {
    max-width: 880px;
    margin: 14px auto 0;
    padding: 20px;
    border: 1px solid #e1e7ef;
    border-radius: 16px;
    background: #fff;
}

.kulis-theme-comments h2,
.kulis-theme-comments .comment-reply-title {
    margin-top: 0;
    font-size: 18px;
}

.kulis-theme-comment-list {
    padding: 0;
    list-style: none;
}

.kulis-theme-comment-list .comment {
    margin: 10px 0;
    padding: 12px;
    border-radius: 11px;
    background: #f8fafc;
}

.kulis-theme-comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kulis-theme-comment-list .avatar {
    border-radius: 10px;
}

.kulis-theme-comment-form {
    display: grid;
    gap: 9px;
}

.kulis-theme-comment-form :is(input,textarea) {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #dce3ec;
    border-radius: 9px;
}

.kulis-theme-comment-form .submit {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #1769ff;
    font-weight: 800;
}

/* 404 */
.kulis-theme-error-page {
    display: grid;
    min-height: calc(100vh - var(--kulis-header-height) - 86px);
    place-items: center;
    padding: 30px 16px;
    background:
        radial-gradient(circle at 75% 20%, rgba(23,105,255,.10), transparent 28%),
        #f6f8fb;
}

.kulis-theme-error-card {
    width: min(620px,100%);
    padding: 38px;
    border: 1px solid #e0e7f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15,23,42,.08);
}

.kulis-theme-error-code {
    color: #1769ff;
    font-size: 64px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.06em;
}

.kulis-theme-error-card h1 {
    margin: 13px 0 8px;
    color: #111827;
    font-size: 34px;
    line-height: 1.08;
}

.kulis-theme-error-card > p {
    margin: 0;
    color: #718095;
    font-size: 13px;
    line-height: 1.65;
}

.kulis-theme-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.kulis-theme-error-actions a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    color: #526175;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.kulis-theme-error-actions .kulis-theme-error-primary {
    color: #fff;
    border-color: #1769ff;
    background: #1769ff;
}

@media (max-width: 900px) {
    .kulis-theme-result-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .kulis-theme-site-container {
        width: min(100% - 20px,1120px);
    }

    .kulis-theme-site-hero {
        padding: 34px 0 24px;
    }

    .kulis-theme-site-hero h1 {
        font-size: 34px;
    }

    .kulis-theme-result-card {
        grid-template-columns: 110px minmax(0,1fr);
    }

    .kulis-theme-result-card__media {
        min-height: 145px;
    }

    .kulis-theme-result-card__body {
        padding: 12px;
    }

    .kulis-theme-single-wrap {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .kulis-theme-single__header h1 {
        font-size: 35px;
    }

    .kulis-theme-single__content {
        padding: 18px;
        border-radius: 14px;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .kulis-theme-error-card {
        padding: 27px 20px;
        border-radius: 18px;
    }

    .kulis-theme-error-code {
        font-size: 52px;
    }
}

@media (max-width: 480px) {
    .kulis-theme-search-form {
        grid-template-columns: 1fr;
    }

    .kulis-theme-search-form button {
        width: 100%;
    }

    .kulis-theme-result-card {
        grid-template-columns: 1fr;
    }

    .kulis-theme-result-card__media {
        min-height: 170px;
    }

    .kulis-theme-error-actions a {
        width: 100%;
        justify-content: center;
    }
}
