:root {
  --bg-deep: #0f0c29;
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-gold: #ffd700;
  --accent-gold-glow: rgba(255, 215, 0, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --card-hover-bg: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.3s;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --sidebar-width: 350px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul li {
  padding: 0;
  margin: 0;
  list-style: none;
}


body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Stars Animation */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
  z-index: -1;
  opacity: 0.8;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: starsMove 100s linear infinite;
}

@keyframes starsMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -1000px 1000px;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  text-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Header */
header {
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(15, 12, 41, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.logo a {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  background: linear-gradient(45deg, #ffd700, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo a:hover {
  text-shadow: none;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Common Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffd700, #bf953f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

/* Blog Grid (Home) */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.post-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
  background: var(--card-hover-bg);
  border-color: var(--accent-gold);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image {
  transform: scale(1.05);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-excerpt {
  flex-grow: 1;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--accent-gold);
  border-radius: 50px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  background: var(--accent-gold);
  color: #0f0c29;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}


/* --- POST DETAILS PAGE LAYOUT --- */
.page-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Generic Glass Panel Style */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 2rem;
}

/* Left Column: Main Article */
.main-article {
  flex: 1;
  /* Takes available space */
}

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

.post-category {
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
}

.main-article h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
  line-height: 1.2;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.article-body {
  font-size: 1.1rem;
  color: #d1d1d1;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h3 {
  color: #fff;
  margin-top: 2rem;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-gold);
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: rgba(255, 215, 0, 0.05);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.share-buttons {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: 0.3s;
}

.social-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-3px);
}

/* Comments Section */
.comments-section h3 {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.comment-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 8px;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.comment-head .date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.reply-btn {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: inline-block;
}

/* Comment Form */
.comment-form {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  /* very dark/transparent */
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.btn-submit,
.btn-full {
  background: var(--accent-gold);
  color: #0f0c29;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover,
.btn-full:hover {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* Right Column: Sidebar */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  /* slightly less padding than main article */
}

.widget h3 {
  font-size: 1.3rem;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-bottom: 1.2rem;
}

/* Search Widget */
.search-widget form {
  display: flex;
}

.search-widget input {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 4px 0 0 4px;
  color: #fff;
}

.search-widget button {
  padding: 10px 15px;
  background: var(--accent-gold);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.newsletter-widget input {
  width: 100%;
  padding: 10px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #fff;
  border-radius: 4px;
}

.btn-full {
  width: 100%;
}

/* Categories & Recent Posts Widget */
.widget ul {
  list-style: none;
}

.categories-widget li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.categories-widget li a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
  /* slide effect */
}

.recent-list li {
  margin-bottom: 1rem;
}

.recent-list a {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.recent-list img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.recent-list div {
  display: flex;
  flex-direction: column;
}

.recent-list span {
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.recent-list small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-cloud a {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.tags-cloud a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Ad Widgets */
.ad-placeholder {
  width: 100%;
  min-height: 250px;
  background: rgba(0, 0, 0, 0.3);
  display: block;
  text-align: center;
  overflow: hidden;
  border: 1px dashed #444;
}

.ad-placeholder-small {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 215, 0, 0.3);
  min-height: 150px;
  display: block;
  text-align: center;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* RSS Widget */
.rss-widget {
  text-align: center;
}

.rss-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(45deg, #f7b733, #fc4a1a);
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(252, 74, 26, 0.4);
}

.rss-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(252, 74, 26, 0.6);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    /* Sidebar takes full width on mobile/tablet */
    position: static;
    /* No longer sticky on mobile */
  }

  .main-article h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  nav ul {
    display: none;
  }

  /* Simplified for mobile */
}

/* Bottom Ads Area (3 Columns) */
.bottom-ads-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.ad-placeholder-small {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 215, 0, 0.3);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.ad-placeholder-small:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* Sidebar Tag Cloud Specifics */
.tags-cloud a {
  display: inline-block;
  margin-bottom: 5px;
}

/* Header Modifications for Detail Page */
/* Header Modifications for Detail Page */
.header-centered {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wider, bigger title + Separator Line */
.article-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  /* Altına düz çizgi */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 800px;
  /* Çizgi çok uzun olmasın */
  background: linear-gradient(to right, #ffd700, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* New Meta Section (Plain and Simple) */
/* Meta & Social Bar (Container under title) */
.meta-social-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  /* Düz çizgiye biraz boşluk */
  flex-wrap: wrap;
  gap: 1rem;
}

/* Left: Meta Info */
.post-meta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.post-meta-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta-left i {
  color: var(--accent-gold);
  font-size: 1rem;
}

/* Right: Social Icons */
.post-social-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-social-right a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.post-social-right a:hover {
  background: var(--accent-gold);
  color: #0f0c29;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Category styling */
.meta-badge {
  color: var(--accent-gold) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: none;
  padding: 0;
}


@media (max-width: 768px) {
  .article-title {
    font-size: 1.8rem;
  }

  .meta-social-bar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .post-meta-left {
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
  }
}

/* Dropdown Menu */
nav ul li {
  position: relative;
}

.has-dropdown>a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  min-width: 220px;
  border-radius: 8px;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  gap: 0;
  /* Override default nav gap */
}

.dropdown-menu li {
  width: 100%;
  margin: 0;
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  white-space: nowrap;
  text-transform: none;
  /* Keep capilatization natural */
  text-align: left;
}

.dropdown-menu a:hover {
  background: var(--accent-gold);
  color: #0f0c29;
  padding-left: 1.8rem;
  text-shadow: none;
}

.has-dropdown:hover .dropdown-menu {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

/* Pagination Fixes */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  width: 100%;
  list-style: none;
}

.pagination ul,
.pagination li {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.pagination a,
.pagination span,
.pagination strong {
  padding: 0.6rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  font-weight: 500;
}

.pagination a:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pagination span.active,
.pagination .current,
.pagination strong {
  background: var(--accent-gold);
  color: #0f0c29;
  border-color: var(--accent-gold);
  font-weight: bold;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}