/* =================================================
   BLOG — modern tasarım (site ana rengi kırmızı/beyaz)
   ================================================= */

:root {
    --blog-red: #DC1F26;
    --blog-red-dark: #B71C1C;
    --blog-red-light: #FEF2F2;
    --blog-text: #1a1a1a;
    --blog-muted: #6b7280;
    --blog-border: #E5E7EB;
    --blog-bg: #F9FAFB;
}

/* ===== HERO ===== */
.blog-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(220, 31, 38, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(220, 31, 38, 0.12) 0%, transparent 45%);
    pointer-events: none;
}
.blog-hero__inner { position: relative; }
.blog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.blog-hero__title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.blog-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== LİSTE GRID ===== */
.blog-list-section {
    background: var(--blog-bg);
    padding: 56px 0 70px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.1);
    border-color: #D1D5DB;
}
.blog-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F3F4F6;
    position: relative;
}
.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.06); }
.blog-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
}
.blog-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--blog-muted);
}
.blog-card__cat {
    background: var(--blog-red-light);
    color: var(--blog-red);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.blog-card__date::after {
    content: '·';
    margin-left: 8px;
    color: #D1D5DB;
}
.blog-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
}
.blog-card__title a {
    color: var(--blog-text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-card__title a:hover { color: var(--blog-red); }
.blog-card__desc {
    font-size: 14px;
    color: var(--blog-muted);
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blog-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s ease;
}
.blog-card__more:hover { gap: 10px; color: var(--blog-red-dark); }

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--blog-muted);
}

/* ===== DETAY (MAKALE) ===== */
.blog-article {
    background: #fff;
    padding-bottom: 70px;
}
.blog-article__hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 50px 0 56px;
    position: relative;
    overflow: hidden;
}
.blog-article__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(220, 31, 38, 0.2) 0%, transparent 50%);
    pointer-events: none;
}
.blog-article__hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.blog-article__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 22px;
    transition: color 0.2s ease;
}
.blog-article__back:hover { color: #fff; }
.blog-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}
.blog-article__meta > span { position: relative; }
.blog-article__meta > span:not(:last-child):not(.blog-article__cat)::after {
    content: '·';
    position: absolute;
    right: -9px;
    color: rgba(255,255,255,0.3);
}
.blog-article__cat {
    background: var(--blog-red);
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
}
.blog-article__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Sosyal paylaşım */
.blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--blog-border);
}
.blog-share__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-text);
    margin-right: 4px;
}
.blog-share__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s ease, filter 0.2s ease;
}
.blog-share__btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
.blog-share__btn--wa   { background: #25D366; }
.blog-share__btn--x    { background: #000; }
.blog-share__btn--fb   { background: #1877F2; }
.blog-share__btn--copy { background: #6B7280; }
.blog-share__btn--copied { background: #22C55E; }
.blog-share__btn--copied::after {
    content: 'Kopyalandı!';
    position: absolute;
    transform: translateY(-34px);
    background: #22C55E;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* İlgili yazılar */
.blog-related {
    max-width: 760px;
    margin: 50px auto 0;
    padding: 0 20px;
}
.blog-related__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--blog-text);
    margin: 0 0 22px;
}
.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.blog-related__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-related__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.blog-related__img {
    aspect-ratio: 16 / 10;
    background: #F3F4F6;
    overflow: hidden;
}
.blog-related__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-related__img--ph {
    display: flex; align-items: center; justify-content: center; color: #D1D5DB;
}
.blog-related__info { padding: 14px 16px; }
.blog-related__info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--blog-text);
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-related__info span { font-size: 12px; color: var(--blog-muted); }

.blog-article__body {
    max-width: 760px;
    margin: -28px auto 0;
    padding: 44px 48px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}
/* Makale tipografisi */
.blog-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5 {
    color: var(--blog-text);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.8em 0 0.6em;
}
.blog-content h2 { font-size: 26px; }
.blog-content h3 { font-size: 22px; }
.blog-content h4 { font-size: 19px; }
.blog-content p { margin: 0 0 1.3em; }
.blog-content a { color: var(--blog-red); text-decoration: underline; }
.blog-content a:hover { color: var(--blog-red-dark); }
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5em 0;
}
.blog-content ul, .blog-content ol {
    margin: 0 0 1.3em;
    padding-left: 1.6em;
}
.blog-content li { margin-bottom: 0.5em; }
.blog-content blockquote {
    border-left: 4px solid var(--blog-red);
    background: var(--blog-red-light);
    margin: 1.5em 0;
    padding: 14px 22px;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.blog-content th, .blog-content td {
    border: 1px solid var(--blog-border);
    padding: 10px 14px;
    text-align: left;
}
.blog-content th { background: var(--blog-bg); font-weight: 600; }

/* Makale altı geri dön */
.blog-article__footer {
    max-width: 760px;
    margin: 36px auto 0;
    padding: 0 20px;
    text-align: center;
}
.blog-article__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blog-red);
    color: #fff;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}
.blog-article__back-btn:hover {
    background: var(--blog-red-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .blog-hero__title { font-size: 32px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .blog-related__grid { grid-template-columns: repeat(2, 1fr); }
    .blog-article__title { font-size: 28px; }
    .blog-article__body { padding: 32px 28px; }
}
@media (max-width: 600px) {
    .blog-hero { padding: 44px 0 36px; }
    .blog-hero__title { font-size: 26px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-related__grid { grid-template-columns: 1fr; }
    .blog-article__body { padding: 26px 20px; margin-top: -20px; }
    .blog-content { font-size: 16px; }
    .blog-content h2 { font-size: 22px; }
    .blog-share { flex-wrap: wrap; }
}
