/* Blog magazine layout — loaded only on /blog* */

body.is-blog {
    background: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blg-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #eef1f5;
}

.blg-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
    min-height: 4.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.blg-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    min-width: 0;
}

.blg-logo img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
}

.blg-logo-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1;
    white-space: nowrap;
}

.blg-logo-word {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ef7f1a;
    line-height: 1;
}

.blg-search {
    position: relative;
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
}

.blg-search input {
    width: 100%;
    height: 2.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    padding: 0 3rem 0 1.15rem;
    font-size: 0.875rem;
    color: #111827;
    outline: none;
}

.blg-search input::placeholder {
    color: #9ca3af;
}

.blg-search input:focus {
    border-color: #ef7f1a;
    box-shadow: 0 0 0 3px rgba(239, 127, 26, 0.12);
}

.blg-search button {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.blg-search button:hover {
    color: #ef7f1a;
}

.blg-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.5rem;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.blg-back:hover {
    border-color: #ef7f1a;
    color: #ef7f1a;
}

.blg-page {
    padding: 0.75rem 0 3.5rem;
}

.blg-page .breadcrumb {
    margin-bottom: 1.25rem;
}

.blg-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.blg-kicker::before {
    content: "";
    width: 4px;
    height: 1.05em;
    border-radius: 999px;
    background: #ef7f1a;
}

.blg-more {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ef7f1a;
    text-decoration: none;
    white-space: nowrap;
}

.blg-more:hover {
    color: #d96e10;
}

.blg-hero {
    display: grid;
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2.15fr);
    gap: 1.15rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.blg-featured {
    position: relative;
    display: block;
    min-height: 280px;
    border-radius: 1.15rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.blg-featured .blg-cover {
    position: absolute;
    inset: 0;
}

.blg-featured-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 28%, rgba(15, 23, 42, 0.78) 100%);
}

.blg-featured-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.15rem 1.2rem 1.25rem;
}

.blg-featured-body h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.blg-featured-body time {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.blg-types {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.blg-types .blg-kicker-row {
    margin-bottom: 0.75rem;
}

.blg-rail {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.blg-rail-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 1fr);
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.15rem 0.15rem 0.35rem;
}

.blg-rail-track::-webkit-scrollbar {
    display: none;
}

.blg-latest-track {
    grid-auto-columns: minmax(240px, 1fr);
}

.blg-type {
    position: relative;
    display: block;
    height: 250px;
    border-radius: 1.05rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    scroll-snap-align: start;
    border: 2px solid #ef7f1a;
    box-shadow: 0 0 0 1px rgba(239, 127, 26, 0.08);
}

.blg-type .blg-cover,
.blg-type-shade {
    position: absolute;
    inset: 0;
}

.blg-type-shade {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 35%, rgba(15, 23, 42, 0.78) 100%);
}

.blg-type-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 0.9rem 0.95rem 1rem;
}

.blg-type-body strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
}

.blg-type-body span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}

.blg-rail-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    margin-top: -1.2rem;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff;
    color: #ef7f1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.blg-rail-btn:hover {
    background: #fff7ed;
}

.blg-rail-btn.is-prev {
    left: -0.7rem;
}

.blg-rail-btn.is-next {
    right: -0.7rem;
}

.blg-rail-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    min-height: 0.55rem;
}

.blg-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
}

.blg-dot.is-active {
    width: 1.15rem;
    background: #ef7f1a;
}

.blg-chips {
    margin: 0.35rem 0 2rem;
}

.blg-chips-track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.2rem 2.2rem;
}

.blg-chips-track::-webkit-scrollbar {
    display: none;
}

.blg-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    height: 2.55rem;
    padding: 0 0.85rem 0 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.blg-chip svg {
    color: #6b7280;
}

.blg-chip.is-active,
.blg-chip:hover {
    border-color: #ef7f1a;
    color: #ef7f1a;
}

.blg-chip.is-active svg,
.blg-chip:hover svg {
    color: #ef7f1a;
}

.blg-chip-chevron {
    color: #9ca3af;
}

.blg-section {
    margin-bottom: 2.25rem;
}

.blg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 1.05rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blg-card:hover {
    transform: translateY(-3px);
    border-color: #fed7aa;
    box-shadow: 0 14px 28px rgba(239, 127, 26, 0.12);
}

.blg-card-media {
    position: relative;
    height: 168px;
}

.blg-card-media .blg-cover {
    position: absolute;
    inset: 0;
}

.blg-badge {
    position: absolute;
    z-index: 1;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: #ef7f1a;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.blg-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem 1rem 1.05rem;
    flex: 1;
}

.blg-card-body h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    color: #111827;
}

.blg-card:hover .blg-card-body h3 {
    color: #ef7f1a;
}

.blg-card-excerpt {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blg-card-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
}

.blg-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.blg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.blg-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed #e5e7eb;
    border-radius: 1rem;
    color: #6b7280;
}

.blg-cover {
    background-size: cover;
    background-position: center;
}

.blg-cover--rehber { background: linear-gradient(160deg, #12324a 0%, #ef7f1a 100%); }
.blg-cover--bakim { background: linear-gradient(160deg, #134e4a 0%, #0f766e 100%); }
.blg-cover--guvenlik { background: linear-gradient(160deg, #1e293b 0%, #475569 100%); }
.blg-cover--suspansiyon { background: linear-gradient(160deg, #1c1917 0%, #57534e 100%); }
.blg-cover--yaglar { background: linear-gradient(160deg, #1e3a5f 0%, #0284c7 100%); }
.blg-cover--genel { background: linear-gradient(160deg, #3b1d0f 0%, #ef7f1a 100%); }

body.is-blog .post-layout {
    margin-top: 0.5rem;
}

body.is-blog .post-article {
    border-radius: 1.15rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1100px) {
    .blg-hero {
        grid-template-columns: 1fr;
    }

    .blg-featured {
        min-height: 240px;
    }

    .blg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blg-types-track,
    .blg-latest-track {
        grid-auto-columns: minmax(200px, 70vw);
    }
}

@media (max-width: 720px) {
    .blg-header-inner {
        grid-template-columns: 1fr auto;
        gap: 0.65rem 0.75rem;
    }

    .blg-search {
        grid-column: 1 / -1;
        max-width: none;
        order: 3;
    }

    .blg-logo-name,
    .blg-logo-word {
        font-size: 1.15rem;
    }

    .blg-back span {
        display: inline;
    }

    .blg-back {
        font-size: 0.75rem;
        padding: 0 0.7rem;
    }

    .blg-grid {
        grid-template-columns: 1fr;
    }

    .blg-rail-btn {
        display: none;
    }

    .blg-chips-track {
        padding-left: 0;
        padding-right: 0;
    }

    .blg-kicker {
        font-size: 1.05rem;
    }
}
