/* ── RESET & ROOT ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:      #ffffff;
  --bg2:     #f8f9fc;
  --border:  #e8eaed;
  --border2: #dadce0;
  --text:    #1a1a2e;
  --text2:   #3c4043;
  --muted:   #80868b;
  --accent:  #4285f4;
  --accent2: #1a73e8;
  --accent3: #0d47a1;
}

html  { scroll-behavior: smooth; }
body  { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; }
a     { color: inherit; }
img   { max-width: 100%; height: auto; display: block; }

/* ── CANVAS ── */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.wrapper   { position: relative; z-index: 2; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  text-decoration: none;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 8px; }

.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #4285f4, #1a73e8);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem; font-weight: 900;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav-links a:hover  { background: #f1f3f4; color: var(--text); }
.nav-links a.active { background: #e8f0fe; color: var(--accent2); }

.nav-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: #f1f3f4; border: 1px solid transparent;
  border-radius: 999px; padding: 0.45rem 1rem;
  font-size: 0.875rem; color: var(--muted); cursor: pointer;
  min-width: 160px; transition: border-color .2s, background .2s;
}
.nav-search:hover { border-color: var(--border2); background: #fff; }

/* Arama overlay */
.search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  z-index: 200; align-items: center; justify-content: center;
}
.search-overlay.open { display: flex; }
.search-overlay .search-form { display: flex; gap: 0.5rem; width: 100%; max-width: 500px; padding: 0 2rem; }
.search-overlay input[type="search"] {
  flex: 1; border: 2px solid var(--border2); border-radius: 12px;
  padding: 0.9rem 1.2rem; font-size: 1rem; outline: none;
  transition: border-color .2s;
}
.search-overlay input[type="search"]:focus { border-color: var(--accent); }
.search-overlay input[type="submit"] {
  background: var(--accent2); color: #fff; border: none;
  border-radius: 12px; padding: 0.9rem 1.5rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
}

/* ── HERO ── */
.hero {
  text-align: center; padding: 4rem 2rem 3rem;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent2); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 1rem;
}
.live-dot {
  width: 7px; height: 7px; background: #34a853; border-radius: 50%;
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,168,83,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(52,168,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,168,83,0); }
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 300;
  letter-spacing: -1.5px; color: var(--text); line-height: 1.1;
  margin-bottom: 0.9rem;
}
.hero h1 strong { font-weight: 700; color: var(--accent2); }
.hero-sub {
  color: var(--muted); font-size: 1rem; max-width: 480px;
  margin: 0 auto; line-height: 1.6;
}

/* ── CATEGORY HERO (kategori sayfaları) ── */
.cat-hero {
  text-align: center; padding: 3rem 2rem 2rem;
}
.cat-hero-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.cat-hero h1  { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.5rem; }
.cat-hero p   { color: var(--muted); font-size: 1rem; max-width: 400px; margin: 0 auto 0.75rem; }
.cat-hero-meta span { font-size: 0.8rem; color: var(--muted); background: #f1f3f4; padding: 0.3rem 0.8rem; border-radius: 999px; }

/* ── TICKER ── */
.ticker-wrap {
  background: #f8f9ff;
  border-top: 1px solid #e3e8ff; border-bottom: 1px solid #e3e8ff;
  padding: 0.6rem 0; overflow: hidden; position: relative;
}
.ticker-fade-l, .ticker-fade-r {
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 3; pointer-events: none;
}
.ticker-fade-l { left: 0;  background: linear-gradient(to right, #f8f9ff, transparent); }
.ticker-fade-r { right: 0; background: linear-gradient(to left,  #f8f9ff, transparent); }
.ticker-inner  {
  display: flex; gap: 3rem;
  animation: tickerMove 50s linear infinite; white-space: nowrap;
}
.ticker-inner span {
  color: var(--text2); font-size: 0.82rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.ticker-inner span::before {
  content: ''; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%; flex-shrink: 0;
}
@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CATEGORY BAR ── */
.cat-bar {
  max-width: 1180px; margin: 0 auto;
  padding: 1.75rem 2rem 1.25rem;   /* ← üst boşluk artırıldı */
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #fff; border: 1px solid var(--border);
  color: var(--text2); font-size: 0.82rem; font-weight: 500;
  padding: 0.45rem 1rem; border-radius: 999px;
  text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.cat-chip:hover  { border-color: var(--accent); color: var(--accent2); background: #e8f0fe; }
.cat-chip.active { border-color: var(--accent2); background: #e8f0fe; color: var(--accent2); font-weight: 600; }

/* ── MAIN LAYOUT ── */
.main-layout {
  max-width: 1180px; margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 2.5rem; align-items: start;
}

/* ── SECTION HEADING ── */
.section-heading {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
}
.section-heading h2 {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
}
.section-heading a, .section-heading span {
  font-size: 0.78rem; color: var(--accent2);
  text-decoration: none; font-weight: 500;
}

/* ── FEATURED POST ── */
.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  margin-bottom: 1.5rem; text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s; background: #fff;
}
.featured-post:hover {
  box-shadow: 0 6px 28px rgba(66,133,244,.12);
  transform: translateY(-2px);
}
.featured-img {
  aspect-ratio: 4/3; display: flex; align-items: center;
  justify-content: center; font-size: 4.5rem; position: relative; overflow: hidden;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.featured-title {
  font-size: 1.25rem; font-weight: 700; line-height: 1.3;
  color: var(--text); margin-bottom: 0.6rem; letter-spacing: -0.2px;
}
.featured-excerpt { font-size: 0.875rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.post-footer-meta { display: flex; align-items: center; justify-content: space-between; }
.author-row { display: flex; align-items: center; gap: 0.5rem; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg,#4285f4,#1a73e8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.author-name { font-size: 0.78rem; color: var(--muted); }

/* ── POST LIST ── */
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 0.9rem;
  padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; border-radius: 8px;
  transition: background .15s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: #f8f9fc; }
.post-thumb {
  width: 80px; height: 60px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; flex-shrink: 0;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-info   { display: flex; flex-direction: column; gap: 0.2rem; }
.post-tag-row{ display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* Tags */
.tag { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.3px; padding: 0.15rem 0.5rem; border-radius: 4px; text-transform: uppercase; }
.tag-blue   { background: #e8f0fe; color: #1a73e8; }
.tag-green  { background: #e6f4ea; color: #1e8e3e; }
.tag-red    { background: #fce8e6; color: #d93025; }
.tag-orange { background: #fef3e2; color: #e37400; }
.tag-purple { background: #f3e8fd; color: #9334e6; }

.post-date    { font-size: 0.72rem; color: var(--muted); }
.post-title   { font-size: 0.88rem; font-weight: 600; line-height: 1.4; color: var(--text); }
.post-excerpt {
  font-size: 0.78rem; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-read { font-size: 0.72rem; color: var(--muted); }

/* ── CARD BG COLORS ── */
.bg-blue   { background: linear-gradient(135deg,#e8f0fe,#c5d8ff); }
.bg-teal   { background: linear-gradient(135deg,#e0f7f4,#b2dfdb); }
.bg-purple { background: linear-gradient(135deg,#f3e8fd,#e1bee7); }
.bg-green  { background: linear-gradient(135deg,#e6f4ea,#c8e6c9); }
.bg-orange { background: linear-gradient(135deg,#fef3e2,#ffe0b2); }
.bg-red    { background: linear-gradient(135deg,#fce8e6,#ffcdd2); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 1.5rem 0; }
.pagination .page-numbers {
  padding: 0.5rem 0.9rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.85rem; text-decoration: none;
  color: var(--text2); transition: all .15s;
}
.pagination .page-numbers.current { background: var(--accent2); color: #fff; border-color: var(--accent2); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent2); background: #e8f0fe; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 80px; }
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sidebar-box-head {
  padding: 0.9rem 1.1rem 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.sidebar-list { list-style: none; }
.sidebar-list li a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  text-decoration: none; color: var(--text2);
  font-size: 0.83rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  justify-content: flex-start;
}
.sidebar-list li:last-child a { border-bottom: none; }
.sidebar-list li a:hover { background: #f8f9fc; }
.sidebar-num {
  width: 20px; height: 20px; background: #f1f3f4; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: var(--muted); flex-shrink: 0;
}
.cat-count-badge { margin-left: auto; font-size: 0.72rem; color: var(--muted); }

.trending-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.9rem 1.1rem; }
.pill {
  background: #f1f3f4; color: var(--text2); font-size: 0.76rem;
  font-weight: 500; padding: 0.3rem 0.7rem; border-radius: 999px;
  text-decoration: none; transition: background .15s, color .15s;
}
.pill:hover { background: #e8f0fe; color: var(--accent2); }

.newsletter-mini { padding: 1.1rem; }
.newsletter-mini p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.65rem; }
.newsletter-mini input[type="email"] {
  width: 100%; border: 1px solid var(--border2); border-radius: 8px;
  padding: 0.55rem 0.85rem; font-size: 0.82rem; color: var(--text);
  outline: none; margin-bottom: 0.5rem; transition: border-color .2s;
}
.newsletter-mini input[type="email"]:focus { border-color: var(--accent); }
.btn-blue {
  width: 100%; background: var(--accent2); color: #fff; border: none;
  border-radius: 8px; padding: 0.6rem; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.btn-blue:hover { background: var(--accent3); }

/* ── SINGLE POST ── */
.single-article { max-width: 780px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.78rem; color: var(--muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent2); }
.single-hero { margin-bottom: 1.5rem; }
.single-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; margin: 1rem 0; color: var(--text); }
.single-meta { margin-top: 1rem; }
.single-featured-img { margin-bottom: 2rem; }
.single-featured-img img { border-radius: 14px; width: 100%; }
.single-content { font-size: 1.05rem; line-height: 1.8; color: var(--text2); }
.single-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); letter-spacing: -0.3px; }
.single-content h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.single-content p  { margin-bottom: 1.25rem; }
.single-content ul, .single-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.single-content li { margin-bottom: 0.4rem; }
.single-content blockquote {
  border-left: 3px solid var(--accent); padding: 0.75rem 1.25rem;
  background: #f8f9ff; border-radius: 0 8px 8px 0;
  color: var(--text2); font-style: italic; margin: 1.5rem 0;
}
.single-content code { background: #f1f3f4; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.single-content pre { background: #1e1e2e; color: #cdd6f4; padding: 1.25rem; border-radius: 10px; overflow-x: auto; margin: 1.5rem 0; }
.single-content pre code { background: none; padding: 0; }
.single-content img { border-radius: 10px; margin: 1.5rem 0; }
.single-content a { color: var(--accent2); text-decoration: underline; }

.single-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2rem 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.post-nav-item { display: flex; flex-direction: column; gap: 0.3rem; }
.post-nav-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.post-nav-item a { font-size: 0.88rem; font-weight: 600; color: var(--accent2); text-decoration: none; }
.post-nav-item a:hover { text-decoration: underline; }

/* Related posts */
.related-posts { margin: 2.5rem 0; }
.posts-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.post-card-mini { text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s; }
.post-card-mini:hover { box-shadow: 0 4px 16px rgba(66,133,244,.1); }
.post-thumb-lg { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.post-thumb-lg img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 0.75rem; }
.post-card-body .post-title { font-size: 0.82rem; }
.post-card-body .post-date  { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; }

/* Comments */
.comments-area { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-area .comment-list { list-style: none; }
.comments-area .comment { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comments-area .comment-author { font-weight: 600; font-size: 0.88rem; }
.comments-area .comment-content p { font-size: 0.9rem; color: var(--text2); margin-top: 0.4rem; }
.comment-respond { margin-top: 2rem; }
.comment-respond h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.comment-respond input, .comment-respond textarea {
  width: 100%; border: 1px solid var(--border2); border-radius: 8px;
  padding: 0.65rem 0.9rem; font-size: 0.9rem; font-family: inherit;
  outline: none; margin-bottom: 0.75rem; transition: border-color .2s;
}
.comment-respond input:focus, .comment-respond textarea:focus { border-color: var(--accent); }
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond input[type="submit"] {
  width: auto; background: var(--accent2); color: #fff; cursor: pointer;
  font-weight: 600; border: none;
}

/* ── PAGE ── */
.page-title { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.3px; }
.page-body  { font-size: 1rem; line-height: 1.8; color: var(--text2); max-width: 680px; }
.page-body p { margin-bottom: 1rem; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2rem; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.footer-copy  { font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { aspect-ratio: 16/9; }
  .posts-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav .nav-links { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .single-article { padding: 1.5rem 1rem 3rem; }
  .post-nav { grid-template-columns: 1fr; }
}
