/* FastFan Blog — liste + yazı sayfası ortak temaya uyumlu */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-deep: #020617;
    --bg-panel: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.09);
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    --accent: #fb588c;
    --accent-soft: #ff8aaa;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% -10%, rgba(251, 88, 140, 0.18), transparent 42%),
        radial-gradient(circle at 88% 0%, rgba(99, 102, 241, 0.12), transparent 45%),
        var(--bg-deep);
    color: var(--text-main);
    padding-top: 64px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Üst navigasyon — ana FastFan hissine yakın */
.blog-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.blog-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.blog-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f8fafc !important;
    text-decoration: none !important;
}

.blog-brand:hover {
    color: #fff !important;
}

.blog-brand span {
    color: var(--accent);
}

.blog-topbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.blog-topbar-nav a {
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    color: #cbd5e1 !important;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.blog-topbar-nav a:hover {
    color: #fff !important;
    background: rgba(248, 250, 252, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}

/* Blog liste */
.blog-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.blog-hero {
    text-align: center;
    margin-bottom: 48px;
}

.blog-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #fff 25%, rgba(251, 88, 140, 0.95));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 14px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    align-items: stretch;
}

.blog-card {
    background: var(--bg-panel);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
    border-color: rgba(251, 88, 140, 0.35);
}

.blog-card:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    pointer-events: none;
    user-select: none;
}

.blog-card-content {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc;
}

.blog-card-content p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.92rem;
    color: #c7cdd8;
    line-height: 1.55;
    flex: 1;
}

.blog-card-content small {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Tekil yazı */
.post-page-wrap {
    max-width: 800px;
    margin: 0 auto 96px;
    padding: 0 20px 48px;
}

.post-cover-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0f172a;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.post-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.post-meta {
    margin-top: 28px;
}

.post-title {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
}

.post-date {
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.post-content {
    margin-top: 28px;
    font-size: 1.065rem;
    line-height: 1.82;
    color: #cbd5e1;
}

.post-content h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.post-content p {
    margin: 0 0 1rem;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.post-content li {
    margin-bottom: 0.45rem;
}

.post-content code {
    font-size: 0.92em;
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    color: #fde68a;
}

.post-content br + br {
    display: none;
}

.post-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-soft) !important;
    text-decoration: none !important;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.post-back-link:hover {
    opacity: 0.88;
    text-decoration: underline !important;
}

/* Blog admin — temel uyum */
.admin-box {
    max-width: 560px;
    margin: 100px auto 60px;
    padding: 32px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-main);
}

.admin-box h2 {
    margin-top: 0;
    color: #fff;
}

.admin-box input,
.admin-box textarea,
.admin-box button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-main);
    font: inherit;
}

.admin-box textarea {
    min-height: 180px;
    resize: vertical;
}

.admin-box button {
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    border: none;
    color: #fff;
    font-weight: 700;
    margin-top: 18px;
}

.admin-box button:hover {
    opacity: 0.95;
}
