/* ===== THEME VARIABLES ===== */
[data-theme="dark"] {
  --bg: #05080f;
  --bg2: #090d18;
  --surface: rgba(16,16,26,0.82);
  --surface2: rgba(22,22,36,0.90);
  --border: rgba(255,255,255,0.08);
  --text: #f0f0ff;
  --text2: #9090b0;
  --text3: #606080;
  --accent: #7c6dfa;
  --accent2: #a78bfa;
  --accent3: #ec4899;
  --glow: rgba(124,109,250,0.3);
  --card-hover: rgba(124,109,250,0.06);
  --gradient: linear-gradient(135deg, #7c6dfa, #ec4899);
  --tag-bg: rgba(124,109,250,0.15);
  --tag-color: #a78bfa;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --nav-bg: rgba(5,8,15,0.85);
}
[data-theme="light"] {
  --bg: #0d1b3e;
  --bg2: #0a1530;
  --surface: rgba(10,22,55,0.78);
  --surface2: rgba(8,18,48,0.88);
  --border: rgba(100,160,255,0.18);
  --text: #e8f0ff;
  --text2: #90b8d8;
  --text3: #5888a8;
  --accent: #5b9eff;
  --accent2: #80bcff;
  --accent3: #ff6eb4;
  --glow: rgba(91,158,255,0.3);
  --card-hover: rgba(91,158,255,0.07);
  --gradient: linear-gradient(135deg, #5b9eff, #ff6eb4);
  --tag-bg: rgba(91,158,255,0.15);
  --tag-color: #80bcff;
  --shadow: 0 20px 60px rgba(0,0,50,0.5);
  --nav-bg: rgba(8,16,40,0.90);
}
[data-theme="neon"] {
  --bg: #000008;
  --bg2: #050510;
  --surface: rgba(8,8,24,0.85);
  --surface2: rgba(12,12,32,0.92);
  --border: rgba(0,255,200,0.15);
  --text: #e0fff8;
  --text2: #80c8b8;
  --text3: #406858;
  --accent: #00ffc8;
  --accent2: #00e5ff;
  --accent3: #ff00aa;
  --glow: rgba(0,255,200,0.4);
  --card-hover: rgba(0,255,200,0.05);
  --gradient: linear-gradient(135deg, #00ffc8, #00e5ff, #ff00aa);
  --tag-bg: rgba(0,255,200,0.1);
  --tag-color: #00ffc8;
  --shadow: 0 20px 60px rgba(0,255,200,0.15);
  --nav-bg: rgba(0,0,8,0.90);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== GALAXY CANVAS ===== */
#bgCanvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* ===== LAYOUT ===== */
.wrapper { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ===== NAVBAR ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo span { font-weight: 300; }

/* ===== THEME SWITCHER ===== */
.theme-switcher {
  display: flex; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
}
.theme-btn {
  width: 32px; height: 32px;
  border: none; border-radius: 100px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: transparent;
  color: var(--text2);
  transition: all 0.25s ease;
}
.theme-btn.active { background: var(--accent); color: white; box-shadow: 0 0 12px var(--glow); }
.theme-btn:hover:not(.active) { background: var(--surface2); color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden; white-space: nowrap;
  font-family: inherit;
}
.btn::before { content:''; position:absolute; inset:0; background:white; opacity:0; transition:opacity 0.2s; }
.btn:hover::before { opacity: 0.08; }
.btn-primary {
  background: var(--gradient); color: white;
  box-shadow: 0 4px 20px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--tag-bg); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== HERO ===== */
.hero { padding: 70px 0 60px; }
.hero-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

/* ===== PROFILE CARD - SOL, BÜYÜK ===== */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 88px;
}
.profile-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: var(--gradient); opacity: 0.12;
}
.profile-avatar-wrapper {
  position: relative; display: inline-block; margin-bottom: 20px;
}
.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative; z-index: 1;
  border: 4px solid var(--bg);
}
.avatar-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  background: var(--gradient);
  z-index: 0;
  animation: spin 8s linear infinite;
}
.avatar-ring::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--surface);
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 6px;
}
.profile-role {
  font-size: 0.85rem; color: var(--tag-color);
  font-weight: 500; margin-bottom: 20px;
  background: var(--tag-bg);
  display: inline-block;
  padding: 4px 14px; border-radius: 100px;
}
.profile-bio {
  font-size: 0.88rem; color: var(--text2);
  line-height: 1.65; margin-bottom: 20px;
}
.profile-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border); border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 20px;
}
.stat { background: var(--surface2); padding: 14px 8px; text-align: center; }
.stat-num {
  font-size: 1.25rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.65rem; color: var(--text2); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.profile-follow { margin-bottom: 24px; width: 100%; justify-content: center; font-size: 0.85rem; }

/* ===== SKILL BADGES ===== */
.skill-section-title {
  font-size: 0.7rem; font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
  text-align: left;
}
.skill-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: flex-start;
}
.skill-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  transition: all 0.22s ease;
  cursor: default;
  white-space: nowrap;
}
.skill-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tag-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--glow);
}
.skill-badge .badge-icon { font-size: 0.9rem; }

/* ===== HERO RIGHT SIDE ===== */
.hero-content { padding-top: 16px; }
.hero-badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--tag-color);
  font-size: 0.75rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.3); } }
.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -2px; margin-bottom: 20px;
}
.hero-content h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.1rem; color: var(--text2);
  line-height: 1.75; max-width: 520px; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px;
}
.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FEATURED POST ===== */
.featured-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  cursor: pointer; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); margin-bottom: 48px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}
.featured-post:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 30px 80px var(--glow); }
.featured-img {
  background: var(--gradient); min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; overflow: hidden;
}
.featured-img::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0.05),transparent); }
.featured-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.featured-label::before { content:''; width:20px; height:2px; background:var(--gradient); border-radius:2px; }
.featured-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.featured-content p { color: var(--text2); line-height: 1.65; font-size: 0.95rem; margin-bottom: 24px; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text2); flex-wrap: wrap; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text3); }

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  cursor: pointer; text-decoration: none; color: inherit;
  display: block; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(12px);
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 60px var(--glow), 0 0 0 1px var(--accent); }
.card-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; overflow: hidden; }
.card-img .overlay { position:absolute; inset:0; background:linear-gradient(to bottom,transparent 50%,var(--bg) 100%); }
.card-body { padding: 20px 22px 24px; }
.card-tags { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem; font-weight: 600;
  background: var(--tag-bg); color: var(--tag-color);
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.3px; text-transform: uppercase;
  border: 1px solid rgba(124,109,250,0.2);
}
[data-theme="light"] .tag { border-color: rgba(91,158,255,0.2); }
[data-theme="neon"] .tag { border-color: rgba(0,255,200,0.2); }
.card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; letter-spacing: -0.3px; }
.card-excerpt { font-size: 0.85rem; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.read-more { font-size: 0.8rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.blog-card:hover .read-more { gap: 8px; }
.read-more svg { width: 14px; height: 14px; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; background: var(--gradient);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--glow); width: 0%;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  padding: 40px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 0.85rem; color: var(--text2); }
.social-links { display: flex; gap: 8px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: all 0.2s;
  text-decoration: none; color: var(--text2);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px var(--glow); }

/* ===== NEON EXTRAS ===== */
[data-theme="neon"] .btn-primary { box-shadow: 0 0 20px rgba(0,255,200,0.5), 0 0 40px rgba(0,255,200,0.2); }
[data-theme="neon"] .blog-card:hover { box-shadow: 0 0 30px rgba(0,255,200,0.3), 0 0 0 1px rgba(0,255,200,0.5); }
[data-theme="neon"] .logo { filter: drop-shadow(0 0 8px rgba(0,255,200,0.5)); }

/* ===== MODAL ===== */
.article-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.article-overlay.open { opacity: 1; pointer-events: all; }
.article-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px; width: 100%; max-width: 720px;
  max-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  transform: translateY(32px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  backdrop-filter: blur(20px);
}
.article-overlay.open .article-modal { transform: translateY(0) scale(1); }
[data-theme="neon"] .article-modal { box-shadow: 0 0 80px rgba(0,255,200,0.15), 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,255,200,0.2); }
.modal-banner { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 5rem; position: relative; overflow: hidden; flex-shrink: 0; }
.modal-banner::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom,transparent 40%,var(--bg) 100%); }
.modal-banner-emoji { position:relative; z-index:1; filter:drop-shadow(0 8px 24px rgba(0,0,0,0.4)); animation:bannerFloat 4s ease-in-out infinite; }
@keyframes bannerFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg) scale(1.1); }
.modal-body { overflow-y: auto; padding: 0 40px 40px; flex: 1; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; margin-top: -10px; }
.modal-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; line-height: 1.2; letter-spacing: -1px; margin-bottom: 16px; }
.modal-meta-bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.modal-author { display: flex; align-items: center; gap: 10px; flex: 1; }
.modal-author-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.modal-author-name { font-size: 0.85rem; font-weight: 600; }
.modal-author-date { font-size: 0.75rem; color: var(--text2); }
.modal-stats { display: flex; gap: 12px; }
.modal-stat-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text2); }
.modal-stat-item svg { width: 13px; height: 13px; opacity: 0.7; }
.modal-content { font-size: 0.975rem; line-height: 1.85; color: var(--text2); }
.modal-content p { margin-bottom: 18px; }
.modal-content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 28px 0 12px; letter-spacing: -0.3px; }
.modal-content strong { color: var(--text); font-weight: 600; }
.modal-content .highlight-box { background: var(--tag-bg); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 20px 0; color: var(--text); font-size: 0.92rem; }
.modal-read-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 5; }
.modal-read-progress-bar { height: 100%; background: var(--gradient); width: 0%; transition: width 0.1s linear; border-radius: 0 2px 2px 0; box-shadow: 0 0 6px var(--glow); }
.modal-actions { display: flex; gap: 10px; align-items: center; padding: 20px 40px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.modal-action-btn { display: flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--surface2); color: var(--text2); transition: all 0.2s; font-family: inherit; }
.modal-action-btn svg { width: 14px; height: 14px; }
.modal-action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--tag-bg); transform: translateY(-1px); }
.modal-action-btn.liked { border-color: #ec4899; color: #ec4899; background: rgba(236,72,153,0.1); }
.modal-share-btn { margin-left: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .profile-card { position: static; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 180px; }
  .article-overlay { padding: 12px; }
  .article-modal { border-radius: 20px; max-height: 92vh; }
  .modal-body { padding: 0 20px 28px; }
  .modal-banner { height: 140px; font-size: 3.5rem; }
  .modal-actions { padding: 16px 20px; gap: 8px; }
}
