/* ═══════════════════════════════════════════════════════════
   OxiSec Blog CSS
   Ana style.css'e ek — blog sayfaları için özel stiller
═══════════════════════════════════════════════════════════ */

/* ─── Blog Hero ──────────────────────────────── */
.blog-hero {
    padding: 80px 0 40px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(0, 224, 163, 0.08), transparent 60%);
}
.blog-hero-title {
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 12px 0 18px;
    background: linear-gradient(180deg, #fff 0%, #aab2c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-hero-desc {
    max-width: 620px;
    margin: 0 auto;
    color: var(--tx-2);
    font-size: 18px;
    line-height: 1.7;
}

/* ─── Filter Chips ───────────────────────────── */
.blog-filters {
    display: flex;
    gap: 8px;
    padding: 24px 0;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid var(--bd-2);
    margin-bottom: 40px;
}
.filter-chip {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--bd-2);
    border-radius: 999px;
    color: var(--tx-3);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all .2s;
}
.filter-chip:hover {
    color: var(--ac);
    border-color: var(--ac);
    background: var(--ac-soft);
}
.filter-chip.active {
    color: var(--bg);
    background: var(--ac);
    border-color: var(--ac);
}

/* ─── Featured Card ──────────────────────────── */
.blog-featured { padding: 20px 0 60px; }
.featured-card {
    display: block;
    padding: 48px;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--bd-2);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--ac-soft), transparent 70%);
    pointer-events: none;
}
.featured-card:hover {
    border-color: var(--ac);
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 224, 163, 0.1);
}
.featured-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ac-soft);
    color: var(--ac);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}
.read-time {
    color: var(--tx-4);
    font-size: 13px;
    font-family: var(--font-mono);
}
.featured-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--tx);
    position: relative;
}
.featured-excerpt {
    font-size: 17px;
    color: var(--tx-2);
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 640px;
    position: relative;
}
.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.author {
    display: flex;
    gap: 12px;
    align-items: center;
}
.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ac), #00a074);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg);
    font-size: 16px;
}
.author-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--tx);
}
.author-date {
    font-size: 12.5px;
    color: var(--tx-4);
    font-family: var(--font-mono);
}
.featured-arrow {
    color: var(--ac);
    font-weight: 600;
    font-size: 15px;
    transition: transform .2s;
}
.featured-card:hover .featured-arrow {
    transform: translateX(4px);
}

/* ─── Post Grid ──────────────────────────────── */
.blog-grid-section { padding: 20px 0 100px; }
.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin: 0 0 24px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.post-card {
    display: block;
    padding: 28px;
    background: var(--bg-3);
    border: 1px solid var(--bd-2);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
    position: relative;
}
.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--ac);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.post-card.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}
.post-tag-row { margin-bottom: 14px; }
.post-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--tx);
    letter-spacing: -0.01em;
}
.post-excerpt {
    color: var(--tx-3);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 20px;
}
.post-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--tx-4);
    font-family: var(--font-mono);
    padding-top: 16px;
    border-top: 1px solid var(--bd-2);
}

/* ─── Newsletter Box ─────────────────────────── */
.newsletter-section { padding: 40px 0 100px; }
.newsletter-box {
    display: flex;
    gap: 32px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--ac-soft);
    border-radius: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}
.newsletter-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--tx);
}
.newsletter-desc {
    color: var(--tx-3);
    font-size: 14.5px;
    margin: 0;
    max-width: 480px;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 340px;
}
.newsletter-form input[type=email] {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    background: var(--bg-1);
    border: 1px solid var(--bd-2);
    border-radius: 10px;
    color: var(--tx);
    font-size: 14.5px;
    font-family: var(--font-body);
    transition: border-color .2s;
}
.newsletter-form input[type=email]:focus {
    outline: none;
    border-color: var(--ac);
}

/* ═══════════════════════════════════════════════════════════
   BLOG POST (tekil yazı sayfası) — detay görünümü
═══════════════════════════════════════════════════════════ */

.post-hero {
    padding: 60px 0 40px;
    max-width: 780px;
    margin: 0 auto;
}
.post-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--tx-4);
    font-size: 13px;
    font-family: var(--font-mono);
    margin-bottom: 24px;
}
.post-breadcrumb a {
    color: var(--tx-3);
    text-decoration: none;
}
.post-breadcrumb a:hover { color: var(--ac); }
.post-breadcrumb .sep { color: var(--tx-4); }

.post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--tx-4);
    font-size: 13.5px;
    margin: 20px 0 24px;
    flex-wrap: wrap;
}
.post-h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 18px;
    color: var(--tx);
}
.post-subtitle {
    font-size: 19px;
    color: var(--tx-2);
    line-height: 1.6;
    margin: 0 0 40px;
}

/* Article body */
.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 60px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--tx-2);
}
.post-body h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 48px 0 16px;
    color: var(--tx);
    padding-top: 12px;
}
.post-body h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 32px 0 12px;
    color: var(--tx);
}
.post-body p {
    margin: 0 0 20px;
    color: var(--tx-2);
    font-size: 17px;
}
.post-body ul, .post-body ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}
.post-body li {
    margin: 0 0 10px;
    color: var(--tx-2);
    line-height: 1.7;
}
.post-body a {
    color: var(--ac);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.post-body a:hover {
    text-decoration-thickness: 2px;
}
.post-body strong {
    color: var(--tx);
    font-weight: 600;
}
.post-body code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    padding: 2px 8px;
    background: var(--bg-3);
    border: 1px solid var(--bd-2);
    border-radius: 5px;
    color: var(--ac);
}
.post-body pre {
    background: var(--bg-3);
    border: 1px solid var(--bd-2);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.6;
}
.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--tx);
    font-size: inherit;
}
.post-body blockquote {
    border-left: 4px solid var(--ac);
    padding: 4px 0 4px 24px;
    margin: 28px 0;
    color: var(--tx-2);
    font-style: italic;
    background: var(--ac-soft);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
}
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14.5px;
}
.post-body th, .post-body td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--bd-2);
}
.post-body th {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--tx-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-3);
}

/* Callout boxes */
.callout {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.65;
    display: flex;
    gap: 14px;
}
.callout-icon { font-size: 22px; line-height: 1; }
.callout-body { flex: 1; }
.callout-body strong {
    display: block;
    margin-bottom: 4px;
    color: var(--tx);
}
.callout.info {
    background: var(--ac-soft);
    border-left: 3px solid var(--ac);
}
.callout.warn {
    background: rgba(255, 179, 0, 0.1);
    border-left: 3px solid #ffb300;
}
.callout.danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
}
.callout.tip {
    background: rgba(139, 92, 246, 0.08);
    border-left: 3px solid #8b5cf6;
}

/* TOC (sidebar) */
.post-toc {
    position: sticky;
    top: 100px;
    width: 220px;
    padding-left: 20px;
    border-left: 1px solid var(--bd-2);
    align-self: start;
}
.post-toc h4 {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--tx-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
}
.post-toc a {
    display: block;
    padding: 6px 0;
    color: var(--tx-3);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
    border-left: 2px solid transparent;
    padding-left: 10px;
    margin-left: -12px;
    transition: all .15s;
}
.post-toc a:hover,
.post-toc a.active {
    color: var(--ac);
    border-color: var(--ac);
}

/* Post footer */
.post-footer-cta {
    max-width: 720px;
    margin: 60px auto 80px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--ac-soft);
    border-radius: 16px;
    text-align: center;
}
.post-footer-cta h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--tx);
}
.post-footer-cta p {
    color: var(--tx-2);
    margin: 0 0 24px;
    font-size: 16px;
}

/* Related posts */
.related-posts {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 24px;
}
.related-posts-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .blog-hero { padding: 48px 0 24px; }
    .featured-card { padding: 28px 24px; }
    .post-toc { display: none; }
    .newsletter-form { width: 100%; min-width: 0; }
    .newsletter-form input[type=email] { min-width: 0; }
}
