/* ═══════════════════════════════════════════════
   YouWrapp Blog — Styles
   Fonts: Poppins (headings), Inter (body)
   Colors:
     Primary:   #FF6B35 (Orange)
     Secondary: #7C3AED (Purple)
     Accent:    #10B981 (Emerald)
     Dark:      #1A1A2E (Navy)
     Light:     #FFF8F0 (Warm White)
     Gray text: #6B7280
   ═══════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A2E;
  background: #FFF8F0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.highlight { color: #FF6B35; }

/* ─── CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: #FF6B35;
  color: white;
  border-color: #FF6B35;
}
.btn-primary:hover {
  background: #e55a2b;
  border-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}
.btn-primary:focus-visible {
  outline: 3px solid #FF6B35;
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  color: #1A1A2E;
  border-color: #1A1A2E;
}
.btn-outline:hover {
  background: #1A1A2E;
  color: white;
  transform: translateY(-2px);
}
.btn-outline:focus-visible {
  outline: 3px solid #1A1A2E;
  outline-offset: 2px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  padding: 16px 0;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-img {
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a:not(.btn-nav) {
  font-size: 14px;
  font-weight: 500;
  color: #4B5563;
  transition: color 0.3s ease;
}
.nav-links a:not(.btn-nav):hover {
  color: #FF6B35;
}

.btn-nav {
  background: #FF6B35;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-nav:hover {
  background: #e55a2b;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #1A1A2E;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ─── SECTION ─── */
.section {
  padding: 80px 0;
}
.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  color: #6B7280;
  font-size: 18px;
}

.section-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── BLOG HEADER ─── */
.blog-header {
  padding: 140px 0 60px;
  text-align: center;
  background: white;
}

/* ─── BLOG HEADER IMAGE ─── */
.blog-header-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 16px;
  margin: 0 auto 32px;
  display: block;
  object-fit: cover;
  aspect-ratio: 1200/627;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-header-image-wrapper {
  max-width: 720px;
  margin: 0 auto 32px;
}

.article-header-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  aspect-ratio: 1200/627;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-item {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.blog-post-item:last-child {
  border-bottom: none;
}

.blog-post-item .post-category {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-item h2 {
  margin-bottom: 12px;
}
.blog-post-item h2 a {
  color: #1A1A2E;
  transition: color 0.3s ease;
}
.blog-post-item h2 a:hover {
  color: #FF6B35;
}

.blog-post-item .meta {
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 16px;
}

.blog-post-item .excerpt {
  color: #6B7280;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FF6B35, #e55a2b) !important;
  color: white !important;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.index-box {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  padding: 24px 32px;
  margin: 24px 0;
}
.index-box h3 {
  color: #7C3AED;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.index-box ul {
  margin-bottom: 0;
  padding-left: 20px;
}
.index-box li {
  margin-bottom: 6px;
}
.index-box a {
  color: #7C3AED;
  text-decoration: none;
  transition: color 0.3s ease;
}
.index-box a:hover {
  color: #FF6B35;
  text-decoration: underline;
}

.cluster-links {
  margin: 20px 0;
}
.cluster-links ul {
  padding-left: 20px;
}
.cluster-links li {
  margin-bottom: 8px;
}

.read-more {
  color: #FF6B35;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
  cursor: pointer;
}
.read-more:hover {
  gap: 8px;
}

/* ─── ARTICLE POST ─── */
.post-header {
  padding: 140px 0 40px;
  background: white;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.post-content h2 {
  margin: 40px 0 16px;
  font-size: 1.8rem;
}
.post-content h3 {
  margin: 32px 0 12px;
  font-size: 1.3rem;
}
.post-content p {
  color: #4B5563;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.post-content ul, .post-content ol {
  color: #4B5563;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 24px;
}
.post-content li {
  margin-bottom: 8px;
}

.post-content .highlight-box {
  background: rgba(255,107,53,0.06);
  border-left: 4px solid #FF6B35;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.post-content .highlight-box p {
  margin-bottom: 0;
}

.post-meta {
  color: #9CA3AF;
  font-size: 14px;
  margin-bottom: 8px;
}

.back-link {
  color: #FF6B35;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  transition: gap 0.3s ease;
  cursor: pointer;
}
.back-link:hover {
  gap: 8px;
}

/* ─── POST CTA ─── */
.post-cta {
  background: linear-gradient(135deg, #FF6B35, #e55a2b);
  color: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin: 40px 0;
}
.post-cta h3 {
  color: white;
  margin-bottom: 12px;
}
.post-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.post-cta .btn {
  background: white;
  color: #FF6B35;
  border: none;
}
.post-cta .btn:hover {
  background: #FFF8F0;
}

.post-cta.purple {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
}
.post-cta.purple .btn {
  color: #7C3AED;
}
.post-cta.green {
  background: linear-gradient(135deg, #10B981, #059669);
}
.post-cta.green .btn {
  color: #10B981;
}

/* ─── SIDEBAR ─── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,107,53,0.15);
}

.sidebar-widget p {
  color: #6B7280;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sidebar-widget .btn {
  width: 100%;
  justify-content: center;
}

.sidebar-links {
  list-style: none;
}
.sidebar-links li {
  margin-bottom: 12px;
}
.sidebar-links a {
  color: #4B5563;
  font-size: 14px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-links a:hover {
  color: #FF6B35;
}
.sidebar-links .sidebar-link-active a {
  color: #FF6B35;
  font-weight: 600;
}

/* ─── POST NAVIGATION ─── */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.post-nav-item {
  padding: 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}
.post-nav-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.post-nav-item .nav-label {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 8px;
  font-weight: 500;
}
.post-nav-item .nav-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1A1A2E;
  transition: color 0.3s ease;
}
.post-nav-item:hover .nav-title {
  color: #FF6B35;
}
.post-nav-item.next {
  text-align: right;
}

/* ─── FOOTER ─── */
.footer {
  background: #1A1A2E;
  color: white;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo { height: 32px; margin-bottom: 12px; }

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  cursor: pointer;
}
.footer-links a:hover {
  color: #FF6B35;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* ─── SUBSCRIBE BAR ─── */
.subscribe-bar {
  background: #1A1A2E;
  padding: 40px 0;
  text-align: center;
}
.subscribe-bar h3 {
  color: white;
  margin-bottom: 8px;
}
.subscribe-bar p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  font-size: 15px;
}
.subscribe-bar .btn {
  background: #FF6B35;
  color: white;
  border: none;
}
.subscribe-bar .btn:hover {
  background: #e55a2b;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .post-navigation {
    grid-template-columns: 1fr;
  }
  .post-nav-item.next {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 248, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
  .section { padding: 60px 0; }
  .blog-header { padding: 120px 0 40px; }
  .post-header { padding: 120px 0 24px; }
  .post-content { padding: 0 24px 60px; }
  .post-cta { padding: 24px; margin: 24px 0; }
  .post-cta h3 { font-size: 1.2rem; }
  .post-content h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
