*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f8fafc;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.site-nav a {
    color: #374151;
    font-size: 0.95rem;
}

.nav-toggle {
    display: none;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.site-main {
    padding: 2rem 0 3rem;
}

.hero {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25;
    color: #111827;
}

.lead {
    margin: 0;
    color: #4b5563;
    font-size: 1.05rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.post-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

.post-meta {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

.page-header h1,
.article-header h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 4vw, 2.125rem);
    line-height: 1.25;
}

.article-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.article-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.article-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.5rem;
    line-height: 1.3;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin: 0 0 1rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination .current {
    display: inline-block;
    min-width: 2.25rem;
    text-align: center;
    padding: 0.4rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
}

.pagination .current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-inner p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.footer-nav a {
    color: #4b5563;
    font-size: 0.9rem;
}

.error-page {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.breadcrumbs {
    margin-bottom: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #6b7280;
}

.breadcrumbs__item {
    min-width: 0;
    max-width: 100%;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 0.35rem;
    color: #9ca3af;
}

.breadcrumbs__item a,
.breadcrumbs__item span {
    display: inline-block;
    max-width: 100%;
}

.breadcrumbs__item a {
    color: #4b5563;
}

.breadcrumbs__item span[aria-current="page"] {
    color: #111827;
}

@media (max-width: 640px) {
    .breadcrumbs {
        margin-bottom: 0.75rem;
    }

    .breadcrumbs__list {
        flex-wrap: wrap;
        overflow: visible;
        font-size: 0.8125rem;
        line-height: 1.4;
        gap: 0;
    }

    /* Mobilde son kirinti (sayfa basligi) gizlenir; H1 zaten hemen altinda */
    .breadcrumbs__item--current {
        display: none;
    }

    .breadcrumbs__item:nth-last-child(2)::after {
        display: none;
    }

    .breadcrumbs__item a {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 0.5rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }
}

body.cookie-consent-open {
    overflow: hidden;
}

#cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.cookie-consent.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
}

.cookie-consent__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.96) translateY(0.5rem);
    transition: transform 0.25s ease;
}

.cookie-consent.is-visible .cookie-consent__dialog {
    transform: scale(1) translateY(0);
}

.cookie-consent__title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #111827;
}

.cookie-consent__text {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4b5563;
}

.cookie-consent__link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    min-width: 6.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-consent__btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.cookie-consent__btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.cookie-consent__btn--outline {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.cookie-consent__btn--outline:hover {
    background: #f9fafb;
}

@media (max-width: 640px) {
    .cookie-consent {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .cookie-consent__dialog {
        width: 100%;
        padding: 1.25rem;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1 1 auto;
    }
}
