   /* =========================
   COLOR VARIABLES
========================= */
:root {
  --bg: #fff5fa;
  --text: #222;
  --card: #ffffff;
  --primary: #ff4d8d;
  --secondary: #ffd1e3;
  --border: #f2a1c2;
  --shadow: rgba(255, 77, 141, 0.15);
}

/* 🌙 NIGHT MODE */
body.dark {
  --bg: #0b0b0f;
  --text: #f5f5f5;
  --card: #15151d;
  --primary: #ff4da6;
  --secondary: #2a0f1f;
  --border: #ff4da6;
  --shadow: rgba(255, 77, 166, 0.35);
}

/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
  transition: 
    background-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease,
    border 0.4s ease;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   HEADER
========================= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--card);
  border-bottom: 2px solid var(--secondary);
  box-shadow: 0 4px 14px var(--shadow);
}

.header.sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}
.header  a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 6px;
}

.header a:hover {
  text-decoration: underline;
}


.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

#searchInput {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  outline: none;
}

#searchInput:focus {
  border-color: var(--primary);
}

/* =========================
   BUTTONS
========================= */
button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--primary);
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1150px;
  margin: auto;
  padding: 22px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* =========================
   POST CARD
========================= */
.post-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow);
  border: 1px solid var(--secondary);
}

.post-card:hover {
  transform: translateY(-6px);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card .content {
  padding: 16px;
}

.post-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.post-card a {
  text-decoration: none;
  color: var(--text);
}

.post-card a:hover {
  color: var(--primary);
}

/* =========================
   SINGLE POST
========================= */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  background: var(--card);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 6px 20px var(--shadow);
}

/* =========================
   SHARE BUTTONS
========================= */
.share button {
  margin: 6px 6px 6px 0;
}

/* =========================
   ADSENSE SLOTS
========================= */
.ad {
  background: linear-gradient(
    45deg,
    var(--secondary),
    transparent
  );
  border: 1px dashed var(--border);
  text-align: center;
  padding: 22px;
  border-radius: 14px;
  margin: 25px 0;
  color: var(--primary);
  font-weight: 600;
}

/* =========================
   PAGINATION
========================= */
  .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.pagination button {
  min-width: 38px;
  padding: 8px 12px;
  border-radius: 50%;
  background: var(--card);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
}

.pagination button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary);
}

.pagination button:hover {
  background: var(--primary);
  color: #fff;
}


/* =========================
   FOOTER
========================= */
.footer {
  background: var(--card);
  border-top: 2px solid var(--secondary);
  padding: 22px;
  text-align: center;
  margin-top: 50px;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 6px;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 12px;
  }
}









    /* SOCIAL ICONS */
.social-icons {
  gap: 14px;
  align-items: center;

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 77, 141, 0.12);
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
}

/* DARK MODE SUPPORT */
body.dark .social-icons a {
  background: rgba(255, 77, 166, 0.18);
}


  @media(max-width:600px){
  .social-icons {
    margin-top: 8px;
  }
}



