/* === BLOG SHARED STYLES === */
/* Matches zaferteber.com main site design system */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

[data-theme="dark"] {
    --bg-primary: #000000; --bg-secondary: rgba(255,255,255,0.02);
    --bg-card: rgba(255,255,255,0.03); --bg-card-hover: rgba(255,255,255,0.06);
    --text-primary: #ffffff; --text-secondary: #a1a1a6; --text-tertiary: #98989d;
    --accent: #0a84ff; --accent-secondary: #5e5ce6;
    --accent-gradient: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 50%, #bf5af2 100%);
    --glass-bg: rgba(0,0,0,0.8); --border-color: rgba(255,255,255,0.08);
    --blockquote-bg: rgba(255,255,255,0.03);
}
[data-theme="light"] {
    --bg-primary: #ffffff; --bg-secondary: #f5f5f7;
    --bg-card: #ffffff; --bg-card-hover: #f5f5f7;
    --text-primary: #1d1d1f; --text-secondary: #6e6e73; --text-tertiary: #757579;
    --accent: #0071e3; --accent-secondary: #5856d6;
    --accent-gradient: linear-gradient(135deg, #0071e3 0%, #5856d6 50%, #af52de 100%);
    --glass-bg: rgba(255,255,255,0.8); --border-color: rgba(0,0,0,0.06);
    --blockquote-bg: #f5f5f7;
}

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; transition: background 0.4s, color 0.4s; -webkit-font-smoothing: antialiased; }
a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: white; }
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: var(--glass-bg); border-bottom: 0.5px solid var(--border-color); padding: 0.75rem 1.5rem; }
.nav-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-primary); }
.nav-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.nav-info { display: flex; flex-direction: column; }
.nav-name { font-weight: 700; font-size: 0.95rem; }
.nav-role { font-size: 0.75rem; color: var(--text-tertiary); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle { background: none; border: none; cursor: pointer; padding: 6px; display: flex; align-items: center; border-radius: 50%; transition: transform 0.3s; }
.theme-toggle:hover { transform: scale(1.15); }
.theme-toggle svg { width: 26px; height: 26px; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--accent-gradient); transition: all 0.3s; border-radius: 2px; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-primary); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a { color: var(--text-primary); text-decoration: none; font-size: 1.5rem; font-weight: 600; }

/* ARTICLE HEADER */
.article-header { max-width: 720px; margin: 0 auto; padding: 7.5rem 1.5rem 2rem; }
.article-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); text-decoration: none; margin-bottom: 2rem; transition: gap 0.3s; }
.article-back:hover { gap: 0.6rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.article-date { font-size: 0.85rem; color: var(--text-tertiary); }
.article-tag { font-size: 0.75rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 0.2rem 0.7rem; border-radius: 20px; }
.article-read { font-size: 0.85rem; color: var(--text-tertiary); }
.article-header h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.article-excerpt { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; border-left: 3px solid var(--accent); padding-left: 1.25rem; }

/* ARTICLE BODY */
.article-body { max-width: 720px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.article-body h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; }
.article-body blockquote { background: var(--blockquote-bg); border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 12px 12px 0; font-style: italic; color: var(--text-secondary); }
.article-body strong { font-weight: 700; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem 1.5rem; font-size: 1.05rem; line-height: 1.8; }
.article-body li { margin-bottom: 0.5rem; }
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border-color); }
.article-tags span { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); background: var(--bg-secondary); padding: 0.35rem 0.9rem; border-radius: 20px; }
.article-share { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; }
.article-share span { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.share-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-secondary); border: none; cursor: pointer; transition: all 0.3s; color: var(--text-secondary); text-decoration: none; }
.share-btn:hover { background: var(--accent); color: white; }
.article-cta { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; margin-top: 2.5rem; text-align: center; }
.article-cta h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.article-cta p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.25rem; }
.cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: white; padding: 0.75rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: transform 0.3s, box-shadow 0.3s; }
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,113,227,0.3); }
.cta-btns { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.cta-btn-x { background: #000; }
[data-theme="dark"] .cta-btn-x { background: #fff; color: #000; }
.cta-btn-x:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
[data-theme="dark"] .cta-btn-x:hover { box-shadow: 0 4px 15px rgba(255,255,255,0.2); }

/* Author Box - X link */
.author-box { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.author-box img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-box-info { flex: 1; }
.author-box-info h4 { font-size: 0.95rem; font-weight: 600; }
.author-box-info p { font-size: 0.8rem; color: var(--text-tertiary); }
.author-x-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; margin-top: 0.2rem; transition: color 0.3s; }
.author-x-link:hover { color: var(--text-primary); }
.author-x-link svg { width: 13px; height: 13px; }

/* FOOTER */
footer { text-align: center; padding: 2rem 1.5rem; color: var(--text-tertiary); font-size: 0.8rem; border-top: 0.5px solid var(--border-color); }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* SCROLL TO TOP */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all 0.4s; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* LANGUAGE TOGGLE */
.lang-toggle { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; transition: all 0.3s; background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lang-toggle:hover { transform: scale(1.15); }
.lang-toggle.switching { animation: langSwitch 0.4s ease; }
@keyframes langSwitch { 0% { transform: scale(1) rotateY(0deg); } 50% { transform: scale(0.8) rotateY(90deg); } 100% { transform: scale(1) rotateY(0deg); } }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .article-header { padding: 6rem 1rem 1.5rem; }
    .article-body { padding: 0 1rem 2rem; }
    .article-header h1 { font-size: 1.6rem; }
}
@media (max-width: 375px) { .nav-info { display: none; } .article-header { padding: 5rem 0.75rem 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
@media print { nav, .mobile-menu, footer, .article-share, .article-cta { display: none !important; } .article-header { padding-top: 1rem; } }
