/* ================================================
   FIXYOURMOOD.COM - MAIN STYLESHEET
   ================================================ */

:root {
  --primary:    #2D6A4F;
  --primary-lt: #52B788;
  --accent:     #F4A261;
  --dark:       #1B1F2E;
  --light:      #F8FAF9;
  --text:       #2C2C2C;
  --muted:      #6B7A8D;
  --card-bg:    #FFFFFF;
  --border:     #E8EDF0;
  --radius:     16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.14);
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark) !important;
}
.brand-icon { font-size: 1.8rem; }
.brand-text em { color: var(--primary); font-style: normal; }

.nav-link {
  font-weight: 600;
  color: var(--text) !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-link:hover { background: var(--light); color: var(--primary) !important; }

.search-input {
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 0.85rem;
  width: 180px;
}
.btn-search {
  background: var(--primary);
  color: white;
  border-radius: 20px;
  border: none;
  padding: 6px 12px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: white;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 540px;
}

.hero-btns { margin-top: 32px; }
.btn-hero-primary {
  background: var(--accent);
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(244,162,97,0.4);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244,162,97,0.5);
  color: var(--dark);
}
.btn-hero-secondary {
  background: transparent;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  margin-left: 12px;
  transition: all 0.3s;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: white;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.stat-item { color: rgba(255,255,255,0.9); }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  display: block;
}
.stat-label { font-size: 0.8rem; opacity: 0.8; }

/* ---- CATEGORIES BAR ---- */
.cats-bar {
  background: white;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.cats-bar::-webkit-scrollbar { height: 0; }
.cat-pills { display: flex; gap: 10px; white-space: nowrap; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ---- SECTION TITLE ---- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 32px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ---- POST CARDS ---- */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid var(--border);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.post-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card-img { transform: scale(1.05); }
.post-card-img-wrap { overflow: hidden; }

.post-card-body { padding: 22px; }
.post-cat-badge {
  display: inline-block;
  background: rgba(45,106,79,0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--dark);
}
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.post-card-meta i { color: var(--primary); }

/* ---- FEATURED POST ---- */
.featured-post {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.featured-post-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.featured-badge {
  background: var(--accent);
  color: var(--dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---- SIDEBAR ---- */
.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: var(--dark);
}

.popular-post {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.popular-post:last-child { border-bottom: none; }
.popular-post-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.popular-post-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
}
.popular-post-title a:hover { color: var(--primary); }
.popular-post-date { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* ---- SINGLE POST ---- */
.post-header { padding: 60px 0 40px; background: white; border-bottom: 1px solid var(--border); }
.post-feature-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
  box-shadow: var(--shadow-lg);
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.post-content h2 {
  font-size: 1.6rem;
  margin: 36px 0 16px;
  color: var(--dark);
}
.post-content h3 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
  color: var(--dark);
}
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol {
  margin: 20px 0;
  padding-left: 24px;
}
.post-content li { margin-bottom: 10px; }
.post-content img {
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}

/* ---- ADSENSE SLOTS ---- */
.ad-slot {
  background: #f0f4f8;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 28px 0;
  min-height: 100px;
}

/* ---- PAGINATION ---- */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 3px;
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 600;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0 40px; }
.footer .brand-text { color: white; }
.footer .brand-text em { color: var(--primary-lt); }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 300px; }
.footer-heading { color: white; font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-lt); }
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--primary); color: white; }
.newsletter-form .form-control {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  border-radius: 8px 0 0 8px;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.btn-subscribe {
  background: var(--primary-lt);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 8px 16px;
  font-weight: 600;
}
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--primary-lt); }

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.2s;
}
.scroll-top:hover { background: var(--dark); transform: translateY(-3px); }
.scroll-top.show { display: flex; }

/* ---- ABOUT PAGE ---- */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  padding: 80px 0;
  color: white;
  text-align: center;
}
.about-hero h1 { color: white; }

/* ---- CONTACT PAGE ---- */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,79,0.3);
  color: white;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 50px 0 40px; }
  .hero-stats { gap: 20px; }
  .hero-btns .btn-hero-secondary { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
  .post-card-img { height: 180px; }
  .featured-post-img { height: 240px; }
  .contact-form { padding: 24px; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up {
  animation: fadeInUp 0.5s ease forwards;
}
.animate-up:nth-child(1) { animation-delay: 0.1s; }
.animate-up:nth-child(2) { animation-delay: 0.2s; }
.animate-up:nth-child(3) { animation-delay: 0.3s; }

.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s;
}
/* Share buttons fix */
.post-header .d-flex {
    flex-wrap: wrap;
    overflow: hidden;
}
.post-header .ms-auto {
    flex-wrap: wrap;
}
.post-header .btn {
    margin-bottom: 5px;
    font-size: 0.8rem;
    padding: 4px 12px !important;
}
