/* ============================================
   COMPLETE RESPONSIVE BLOG STYLESHEET
   ============================================ */

/* NAVBAR */
.nav {
  background: rgba(10, 15, 40, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(255, 122, 200, 0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  color: #ff7ac8;
  font-size: 22px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  margin-left: 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #7cffc4;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: linear-gradient(45deg, #ff7ac8, #ff9de1);
  color: #000 !important;
  font-weight: 700;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ff7ac8;
  border-radius: 2px;
  transition: 0.3s;
}

/* THEME COLORS */
:root {
  --pink: #ff7ac8;
  --green: #7cffc4;
  --dark1: #0b1020;
  --dark2: #1a2340;
  --box1: #12193b;
  --box2: #1e2a66;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(135deg, var(--dark1), var(--dark2));
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Poppins, sans-serif;
  color: #fff;
  line-height: 1.7;
  min-height: 100vh;
}

.wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px 70px;
}

/* ADS SECTION */
.ads-top {
  max-width: 1100px;
  margin: 20px auto 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

/* ANNOUNCEMENT BAR - TOP */
.announcement-top {
  background: linear-gradient(135deg, #1a1f3a, #2b2f5c);
  padding: 18px 25px;
  margin-bottom: 30px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(124, 252, 196, 0.35);
  text-align: center;
}

.announcement-top h3 {
  color: var(--green);
  margin: 0 0 8px 0;
  font-size: 20px;
}

.announcement-top p {
  margin: 5px 0;
  opacity: 0.95;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--box1), var(--box2));
  border-radius: 30px;
  padding: 55px 45px;
  box-shadow: 0 0 60px rgba(255, 122, 200, 0.45);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 38px;
  color: var(--pink);
  margin-bottom: 12px;
}

.hero h2 {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.domain {
  font-size: 22px;
  color: var(--green);
  font-weight: 800;
  margin: 20px 0;
}

.main-btn {
  display: inline-block;
  padding: 18px 44px;
  border-radius: 45px;
  background: linear-gradient(45deg, var(--pink), #ff9de1);
  color: #000;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(255, 122, 200, 0.9);
  transition: transform 0.3s ease;
}

.main-btn:hover {
  transform: scale(1.05);
}

.note {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 15px;
}

/* VIEW TOGGLE BUTTONS */
.view-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.view-toggle {
  display: flex;
  gap: 10px;
}

.view-btn {
  padding: 10px 20px;
  background: rgba(255, 122, 200, 0.2);
  border: 2px solid var(--pink);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-btn.active {
  background: linear-gradient(45deg, var(--pink), #ff9de1);
  color: #000;
}

/* ARTICLES SECTION */
.articles-section {
  margin-top: 60px;
}

.articles-section h2 {
  color: #ff7ac8;
  font-size: 28px;
  margin-bottom: 20px;
}

/* GRID VIEW */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  transition: all 0.3s ease;
}

/* LIST VIEW */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  background: linear-gradient(135deg, #12193b, #1e2a66);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 122, 200, 0.35);
  transition: 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(255, 122, 200, 0.55);
}

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

.article-card .card-body {
  padding: 18px;
}

.article-card h3 {
  color: #ff9de1;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.article-card .meta {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 10px;
}

.article-card a {
  display: inline-block;
  margin-top: 10px;
  color: #7cffc4;
  font-weight: 600;
  text-decoration: none;
}

/* LIST VIEW STYLING */
.articles-list .article-card {
  display: flex;
  flex-direction: row;
}

.articles-list .article-card img {
  width: 280px;
  height: 200px;
  flex-shrink: 0;
}

.articles-list .article-card .card-body {
  flex: 1;
  padding: 25px;
}

.articles-list .article-card h3 {
  font-size: 22px;
}

.articles-list .article-card p {
  font-size: 15px;
}

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

.pagination a,
.pagination span {
  padding: 10px 16px;
  background: rgba(255, 122, 200, 0.2);
  border: 2px solid var(--pink);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: linear-gradient(45deg, var(--pink), #ff9de1);
  color: #000;
}

.pagination .active {
  background: linear-gradient(45deg, var(--pink), #ff9de1);
  color: #000;
}

/* SINGLE ARTICLE PAGE */
.article-page {
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 40px;
  background: linear-gradient(135deg, #12193b, #1e2a66);
  border-radius: 26px;
  box-shadow: 0 0 50px rgba(255, 122, 200, 0.4);
}

.article-page h1 {
  color: #ff7ac8;
  margin-bottom: 15px;
  font-size: 32px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.summary {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--green);
}

.article-page img {
  width: 100%;
  border-radius: 20px;
  margin: 25px 0;
}

/* ARTICLE CONTENT STYLING */
.article-content {
  font-size: 16px;
  line-height: 1.9;
  margin: 30px 0;
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.9;
}

.article-content {
  white-space: pre-wrap; /* Preserve line breaks */
  word-wrap: break-word; /* Break long words */
}

.article-content br {
  display: block;
  content: "";
  margin-top: 10px;
}

.article-content strong {
  color: var(--pink);
  font-weight: 700;
}

.article-content em {
  color: var(--green);
  font-style: italic;
}

.article-page h2 {
  color: #7cffc4;
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 24px;
}

.article-page h3 {
  color: #ff9de1;
  margin-top: 25px;
  font-size: 20px;
}

.article-page p {
  font-size: 16px;
  margin-bottom: 18px;
}

.article-page ul,
.article-page ol {
  margin: 15px 0 15px 25px;
}

.article-page li {
  margin-bottom: 10px;
}

/* WATCH/ACTION BUTTON */
.watch-box {
  margin: 45px 0;
  text-align: center;
}

.watch-btn {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 40px;
  background: linear-gradient(45deg, #ff7ac8, #ff9de1);
  color: #000;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(255, 122, 200, 0.9);
  font-size: 18px;
  transition: transform 0.3s ease;
}

.watch-btn:hover {
  transform: scale(1.08);
}

/* RECOMMENDATIONS SECTION */
.recommendations {
  margin-top: 60px;
  padding: 35px;
  background: linear-gradient(135deg, #1a1f3a, #2b2f5c);
  border-radius: 26px;
  box-shadow: 0 0 40px rgba(124, 252, 196, 0.25);
}

.recommendations h3 {
  color: #ff7ac8;
  font-size: 24px;
  margin-bottom: 20px;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rec-card {
  background: linear-gradient(135deg, #12193b, #1e2a66);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s ease;
}

.rec-card:hover {
  transform: translateY(-4px);
}

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

.rec-card .rec-body {
  padding: 15px;
}

.rec-card h4 {
  color: #ff9de1;
  font-size: 15px;
  margin-bottom: 8px;
}

.rec-card a {
  color: #7cffc4;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

/* ANNOUNCEMENT BOTTOM */
.announcement {
  margin-top: 55px;
  padding: 35px 40px;
  border-radius: 26px;
  background: linear-gradient(135deg, #1a1f3a, #2b2f5c);
  box-shadow: 0 0 40px rgba(124, 252, 196, 0.35);
}

.announcement h3 {
  color: var(--green);
  margin-bottom: 12px;
}

/* FOOTER */
.footer {
  background: rgba(10, 15, 40, 0.95);
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
  border-top: 2px solid rgba(255, 122, 200, 0.3);
}

.footer p {
  margin: 5px 0;
  opacity: 0.8;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile menu */
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    background: rgba(10, 15, 40, 0.98);
    flex-direction: column;
    padding: 20px;
    transition: left 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    text-align: center;
  }
  
  /* Articles */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .articles-list .article-card {
    flex-direction: column;
  }
  
  .articles-list .article-card img {
    width: 100%;
    height: 180px;
  }
  
  /* Hero */
  .hero {
    padding: 35px 25px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero h2 {
    font-size: 18px;
  }
  
  /* Article page */
  .article-page {
    padding: 25px 20px;
  }
  
  .article-page h1 {
    font-size: 24px;
  }
  
  .recommendations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .view-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .wrapper {
    padding: 20px 15px;
  }
}

/* LOADING ANIMATION */
.loading {
  text-align: center;
  padding: 50px;
  color: var(--pink);
  font-size: 18px;
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}
