/*
Theme Name: WA Link Pro
Theme URI: https://walinkpro.com
Author: WA Link Pro Team
Author URI: https://walinkpro.com
Description: Custom high-performance theme for WA Link Pro Blog with news/magazine hero spotlight & responsive grid layout.
Version: 1.2.0
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #0a1410;
  --muted: #66736d;
  --paper: #f5f7f3;
  --card: rgba(255, 255, 255, .76);
  --green: #1ed87e;
  --green-dark: #103e2a;
  --green-deep: #07120d;
  --lime: #c8ff75;
  --line: rgba(12, 31, 23, .11);
  --shadow: 0 30px 80px rgba(18, 45, 33, .12);
  --radius: 28px;
  --lg-bg-color: rgba(255, 255, 255, .24);
  --lg-highlight: rgba(255, 255, 255, .82);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 5%, rgba(30,216,126,.13), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(200,255,117,.16), transparent 24%),
    linear-gradient(180deg, #fbfdf9 0%, var(--paper) 42%, #eef5ef 100%);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* Header Sticky & Brand Fixes */
.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 19px/1 "Manrope", sans-serif;
  letter-spacing: -.7px;
  white-space: nowrap;
}
.brand > span { white-space: nowrap; }
.brand > span:last-child > span { color: #12b965; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
}

@media (min-width: 821px) {
  .desktop-nav { display: flex; align-items: center; gap: 34px; }
  .header-actions { display: flex; align-items: center; gap: 14px; }
}

@media (max-width: 820px) {
  .desktop-nav, .header-actions { display: none !important; }
  .mobile-header-login { display: inline-flex !important; margin-left: auto; }
  .menu-button { display: block !important; margin-left: 0; }
  .site-header { gap: 10px; padding-inline: 16px; }
}

.desktop-nav a {
  color: rgba(10,20,16,.72);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }

.button {
  border: 0;
  border-radius: 13px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  background: linear-gradient(135deg, var(--ink), #123425);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(10,20,16,.16);
  transition: transform .2s ease;
}
.button:hover { transform: translateY(-2px); }

/* Main Wrapper */
.main-wrapper {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

/* Filter Bar & Search Box */
.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 35px;
  padding: 12px 18px;
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(18,45,33,.04);
}
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-pill {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--green-dark);
  color: var(--lime);
}
.blog-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 14px;
  width: 240px;
  flex-shrink: 0;
}
.blog-search-box svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.blog-search-box input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--ink);
}

/* Magazine Hero Layout (Latest Main Article on Left + Recent Stories List on Right) */
.magazine-hero-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 50px;
}
.main-featured-post {
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}
.main-featured-post:hover {
  transform: translateY(-4px);
}
.main-featured-image-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}
.main-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.main-featured-post:hover .main-featured-img {
  transform: scale(1.04);
}
.main-featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30,216,126,.25), rgba(16,62,42,.15));
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font: 800 24px "Manrope", sans-serif;
}
.live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(16,62,42,.92);
  color: #c8ff75;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  backdrop-filter: blur(10px);
  letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.main-featured-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.post-category-tag {
  background: var(--green-dark);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
}
.read-time-pill {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.main-featured-title {
  font: 800 clamp(24px, 3vw, 32px)/1.25 "Manrope", sans-serif;
  letter-spacing: -.8px;
  margin: 0 0 14px;
}
.main-featured-title a {
  color: var(--ink);
  transition: color .2s ease;
}
.main-featured-post:hover .main-featured-title a {
  color: #12b965;
}
.main-featured-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}
.main-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.author-name {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.post-date {
  font-size: 12px;
  color: var(--muted);
}

/* Sidebar Recent List */
.recent-sidebar-list {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 40px rgba(18,45,33,.06);
  display: flex;
  flex-direction: column;
}
.recent-sidebar-title {
  font: 800 20px "Manrope", sans-serif;
  letter-spacing: -.4px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.recent-stories-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.recent-story-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.recent-story-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.recent-story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.recent-category-label {
  font-weight: 800;
  color: #12b965;
  text-transform: uppercase;
  font-size: 11px;
}
.recent-story-title {
  font: 700 16px/1.35 "Manrope", sans-serif;
  margin: 0 0 6px;
}
.recent-story-title a {
  color: var(--ink);
  transition: color .2s ease;
}
.recent-story-item:hover .recent-story-title a {
  color: #12b965;
}
.recent-story-snippet {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Section Divider Heading */
.section-divider-heading {
  margin: 50px 0 28px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.section-divider-heading h2 {
  font: 800 clamp(24px, 3.5vw, 32px)/1.2 "Manrope", sans-serif;
  letter-spacing: -.8px;
  margin: 0 0 8px;
}
.section-divider-heading p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* Grid Section for Older Posts */
.posts-grid-section {
  margin-bottom: 50px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.post-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(18,45,33,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(30, 216, 126, 0.4);
}
.post-thumb-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}
.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-thumb {
  transform: scale(1.05);
}
.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30,216,126,.15), rgba(16,62,42,.08));
  display: grid;
  place-items: center;
  font: 800 20px "Manrope", sans-serif;
  color: var(--green-dark);
}
.post-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(16,62,42,.88);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  backdrop-filter: blur(10px);
}
.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.post-title {
  font: 800 20px/1.3 "Manrope", sans-serif;
  letter-spacing: -.4px;
  margin: 0 0 10px;
  color: var(--ink);
  transition: color .2s ease;
}
.post-card:hover .post-title { color: #12b965; }
.post-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.author-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.read-more-link {
  color: #12b965;
  font-size: 13px;
  font-weight: 700;
}

/* Newsletter Section */
.blog-newsletter-card {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--green-dark), #092317);
  color: white;
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
  box-shadow: var(--shadow);
}
.newsletter-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: 1px;
}
.blog-newsletter-card h2 {
  font: 800 clamp(28px, 4vw, 42px)/1.2 "Manrope", sans-serif;
  margin: 12px 0;
}
.blog-newsletter-card h2 span { color: var(--green); }
.blog-newsletter-card p {
  color: rgba(255,255,255,.8);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: white;
  font-size: 14px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }

/* Single Article Styling */
.single-post-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.active-crumb {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}
.single-post-title {
  font: 800 clamp(28px, 4.5vw, 46px)/1.2 "Manrope", sans-serif;
  letter-spacing: -1.2px;
  margin: 16px 0 24px;
}
.single-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.author-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.author-details { flex: 1; }
.share-buttons { display: flex; gap: 8px; }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10,20,16,.06);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background .2s ease;
}
.share-btn:hover { background: rgba(30,216,126,.2); }

.single-featured-image img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 36px;
}

.single-post-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.button-outline {
  background: rgba(10,20,16,.08);
  color: var(--ink);
  box-shadow: none;
}

@media (max-width: 820px) {
  .magazine-hero-layout { grid-template-columns: 1fr; }
  .blog-filter-bar { flex-direction: column; align-items: stretch; }
  .blog-search-box { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .posts-grid { grid-template-columns: 1fr; }
}
