/* ============================================================
   Rehberivize Blog — Standalone CSS
   Matches the React app's dark tech design system exactly.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;700&display=swap');

/* ---- CSS Variables ---------------------------------------- */
:root {
    --bg-dark:    #0a0e27;
    --bg-panel:   #1a1f3a;
    --bg-hover:   #252f48;
    --border:     #2d3a52;
    --cyan:       #06d6d6;
    --mint:       #00FF9D;
    --blue:       #0ea5e9;
    --purple:     #a855f7;
    --amber:      #f59e0b;
    --text:       #cbd5e1;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --white:      #ffffff;
    --font-sans:  'Inter', system-ui, sans-serif;
    --font-mono:  'JetBrains Mono', monospace;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(6, 214, 214, 0.25); color: #fff; }

a { color: inherit; text-decoration: none; }

/* ---- Scrollbar -------------------------------------------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-panel); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ---- Layout ----------------------------------------------- */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; padding-top: 64px; /* header height */ }

.container {
    width: 100%;
    max-width: 64rem; /* max-w-4xl */
    margin: 0 auto;
    padding: 0 1rem;
}

.container--narrow {
    max-width: 48rem; /* max-w-3xl */
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---- Header ----------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.site-header__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo__name {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.site-logo__name-white {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.site-logo__name-cyan {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: -0.02em;
}

.site-logo__tagline {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(6, 214, 214, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.site-nav a:hover, .site-nav a.active { color: var(--cyan); }

@media (max-width: 640px) {
    .site-nav { display: none; }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(6, 214, 214, 0.1);
    border: 1px solid rgba(6, 214, 214, 0.5);
    color: var(--cyan);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: rgba(6, 214, 214, 0.2);
    box-shadow: 0 0 12px rgba(6, 214, 214, 0.4);
    color: var(--cyan);
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
    padding: 2rem 1rem;
    text-align: center;
}

.site-footer p {
    font-size: 0.8125rem;
    color: var(--text-faint);
}

.site-footer a {
    color: var(--cyan);
    transition: color 0.15s;
}

.site-footer a:hover { color: var(--mint); }

.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* ---- Animated background ---------------------------------- */
.blog-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blog-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(6, 214, 214, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
}

.blog-bg::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(6, 214, 214, 0.012) 90deg,
        transparent 180deg,
        rgba(0, 255, 157, 0.008) 270deg,
        transparent 360deg
    );
    animation: slow-rotate 70s linear infinite;
}

@keyframes slow-rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- Tech card component ---------------------------------- */
.tech-card {
    background: rgba(10, 17, 32, 0.85);
    border: 1px solid rgba(6, 214, 214, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tech-card:hover {
    border-color: rgba(6, 214, 214, 0.25);
    box-shadow: 0 4px 40px rgba(6, 214, 214, 0.1), 0 0 20px rgba(6, 214, 214, 0.05);
}

/* Corner accents */
.tech-card::before,
.tech-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(6, 214, 214, 0.2);
    pointer-events: none;
    z-index: 1;
}

.tech-card::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.tech-card::after  { bottom: 0; right: 0; border-left: none; border-top: none; }

/* ---- Tag badge -------------------------------------------- */
.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    border: 1px solid;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tag-schengen       { color: #60a5fa; background: rgba(96,165,250,0.1);  border-color: rgba(96,165,250,0.3); }
.tag-abd            { color: #00FF9D; background: rgba(0,255,157,0.1);   border-color: rgba(0,255,157,0.3); }
.tag-finansal       { color: #fbbf24; background: rgba(251,191,36,0.1);  border-color: rgba(251,191,36,0.3); }
.tag-genel          { color: #c084fc; background: rgba(192,132,252,0.1); border-color: rgba(192,132,252,0.3); }
.tag-vize-rehberi   { color: #06d6d6; background: rgba(6,214,214,0.1);   border-color: rgba(6,214,214,0.3); }

/* ---- Meta row (date, readtime) ---------------------------- */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.post-meta__item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-faint);
}

.post-meta__icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

/* ---- Blog Index Page -------------------------------------- */
.blog-index { padding: 2.5rem 0; }

.blog-index__kicker {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(6, 214, 214, 0.6);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-index__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.blog-index__title span { color: var(--cyan); }

.blog-index__desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 36rem;
    margin-bottom: 2.5rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
}

/* ---- Post Card -------------------------------------------- */
.post-card {
    display: block;
    padding: 1.5rem 2rem;
    cursor: pointer;
    text-decoration: none;
}

.post-card__bg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    pointer-events: none;
    border-radius: inherit;
}

.post-card__bg--blue   { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(6,214,214,0.1)); }
.post-card__bg--mint   { background: linear-gradient(135deg, rgba(0,255,157,0.2), rgba(16,185,129,0.1)); }
.post-card__bg--amber  { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(249,115,22,0.1)); }
.post-card__bg--purple { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(6,214,214,0.1)); }

.post-card__inner { position: relative; z-index: 1; }

.post-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin: 1rem 0 0.75rem;
    transition: color 0.15s;
}

.post-card:hover .post-card__title { color: var(--cyan); }

.post-card__excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.post-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cyan);
    transition: color 0.15s;
}

.post-card:hover .post-card__cta { color: rgba(6, 214, 214, 0.75); }

.post-card__cta-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.15s;
}

.post-card:hover .post-card__cta-icon { transform: translateX(3px); }

/* ---- Blog disclaimer -------------------------------------- */
.blog-disclaimer {
    margin-top: 2.5rem;
    padding: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.75rem;
}

/* ---- Single Post ------------------------------------------ */
.post-page { padding: 2.5rem 0 4rem; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.breadcrumb a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cyan);
    font-weight: 500;
    transition: color 0.15s;
}

.breadcrumb a:hover { color: rgba(6, 214, 214, 0.75); }

.breadcrumb__sep { color: var(--text-faint); }

.breadcrumb__current {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.article-header { margin-bottom: 2rem; }

.article-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.article-header__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-header__lead {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    border-left: 2px solid rgba(6, 214, 214, 0.4);
    padding-left: 1rem;
}

/* ---- Featured Image --------------------------------------- */
.article-featured-img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(6, 214, 214, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(6,214,214,0.3), var(--border), transparent);
    margin-bottom: 2rem;
}

.article-body {
    padding: 1.5rem 2rem;
}

@media (min-width: 640px) { .article-body { padding: 2.5rem; } }

/* ---- CTA Box ---------------------------------------------- */
.article-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(6,214,214,0.1), rgba(0,255,157,0.05));
    border: 1px solid rgba(6, 214, 214, 0.3);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .article-cta {
        flex-direction: row;
        align-items: center;
    }
}

.article-cta__icon {
    width: 16px;
    height: 16px;
    stroke: var(--cyan);
    fill: none;
    flex-shrink: 0;
}

.article-cta__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.article-cta__desc {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.article-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(6, 214, 214, 0.15);
    border: 1px solid rgba(6, 214, 214, 0.5);
    color: var(--cyan);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.article-cta__btn:hover {
    background: rgba(6, 214, 214, 0.25);
    box-shadow: 0 0 12px rgba(6, 214, 214, 0.4);
}

.article-cta__btn-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* ---- Back link -------------------------------------------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2rem;
    transition: color 0.15s;
}

.back-link:hover { color: var(--cyan); }

.back-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* ---- Prose Blog Styles (from index.css) ------------------- */
.prose-blog {
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.prose-blog h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.prose-blog h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(6, 214, 214, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    scroll-margin-top: 6rem;
}

.prose-blog h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cyan);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    scroll-margin-top: 6rem;
}

.prose-blog h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.prose-blog p { margin: 0.75rem 0; }

.prose-blog a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.prose-blog a:hover { color: var(--mint); }

.prose-blog strong, .prose-blog b {
    color: var(--white);
    font-weight: 600;
}

.prose-blog em, .prose-blog i {
    color: var(--text-muted);
    font-style: italic;
}

.prose-blog ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.prose-blog ul li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.9rem;
}

.prose-blog ul li::before {
    content: '▸';
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.prose-blog ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.prose-blog ol li { font-size: 0.9rem; padding-left: 0.25rem; }
.prose-blog ol li::marker { color: var(--cyan); }

.prose-blog blockquote {
    border-left: 3px solid rgba(6, 214, 214, 0.4);
    padding-left: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.prose-blog code {
    font-family: var(--font-mono);
    background: rgba(6, 214, 214, 0.08);
    border: 1px solid rgba(6, 214, 214, 0.15);
    border-radius: 0.25rem;
    padding: 0.1em 0.4em;
    font-size: 0.85em;
    color: var(--cyan);
}

.prose-blog pre {
    background: rgba(10, 17, 32, 0.9);
    border: 1px solid rgba(6, 214, 214, 0.15);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.prose-blog pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text);
}

.prose-blog table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 1.25rem 0;
    overflow-x: auto;
    display: block;
}

@media (min-width: 640px) { .prose-blog table { display: table; } }

.prose-blog th {
    background: rgba(10, 17, 32, 0.9);
    border: 1px solid rgba(6, 214, 214, 0.2);
    color: var(--cyan);
    font-family: var(--font-mono);
    padding: 0.5rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.prose-blog td {
    border: 1px solid rgba(6, 214, 214, 0.12);
    padding: 0.5rem 1rem;
    color: var(--text);
}

.prose-blog tr:nth-child(even) td { background: rgba(6, 214, 214, 0.03); }

.prose-blog hr {
    border: none;
    border-top: 1px solid rgba(6, 214, 214, 0.15);
    margin: 2rem 0;
}

.prose-blog img { max-width: 100%; border-radius: 0.5rem; margin: 1rem 0; }

/* ---- Related Posts ---------------------------------------- */
.related-posts {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.related-posts__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.related-posts__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-posts__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: border-color 0.15s, background 0.15s;
}

.related-posts__link:hover {
    border-color: rgba(6, 214, 214, 0.3);
    background: rgba(6, 214, 214, 0.05);
}

.related-posts__link-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.15s;
}

.related-posts__link:hover .related-posts__link-title {
    color: var(--cyan);
}

/* ---- Table of Contents ------------------------------------ */
.toc {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.toc__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.toc__icon {
    flex-shrink: 0;
    stroke: var(--cyan);
    fill: none;
}

.toc__list {
    list-style: decimal;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.toc__list li { font-size: 0.875rem; }
.toc__list li::marker { color: var(--cyan); }

.toc__list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.toc__list a:hover { color: var(--cyan); }

/* ---- Quick Answer / Featured Snippet Box ------------------ */
.quick-answer {
    background: linear-gradient(135deg, rgba(6,214,214,0.08), rgba(0,255,157,0.04));
    border: 1px solid rgba(6, 214, 214, 0.25);
    border-left: 4px solid var(--cyan);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.quick-answer strong:first-child {
    display: block;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ---- FAQ Section Styling ---------------------------------- */
.prose-blog details {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
}

.prose-blog details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--white);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prose-blog details summary::before {
    content: '▸';
    color: var(--cyan);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.prose-blog details[open] summary::before {
    transform: rotate(90deg);
}

.prose-blog details[open] summary {
    margin-bottom: 0.5rem;
    color: var(--cyan);
}

.prose-blog details p {
    margin: 0.25rem 0 0;
    color: var(--text);
    font-size: 0.9rem;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 640px) {
    .blog-index__title { font-size: 1.75rem; }
    .article-header__title { font-size: 1.625rem; }
    .post-card { padding: 1.25rem; }
    .article-body { padding: 1.25rem; }
}
