/*  WORLD-CLASS MAGAZINE BLOG STYLES (Soundabode Dark Edition)  */

:root {
  --blog-bg: #000000;
  --blog-panel: #0A0A0A;
  --blog-text: #FFFFFF;
  --blog-muted: #888888;
  --blog-dim: #555555;
  --blog-border: #222222;
  --accent: #FFFFFF;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-gradient: linear-gradient(110deg, #5a6065 0%, #869097 35%, #ffffff 45%, #ffffff 50%, #869097 55%, #5a6065 100%);

  /* Adaptable Font Scale (Responsive Figma Rules) */
  --fs-hero: clamp(2.2rem, 8vw, 4.2rem);
  --fs-title: clamp(1.2rem, 2.5vw, 1.5rem);
  --fs-sidebar-title: 1rem;
  --fs-body: 0.95rem;
  --fs-meta: 0.75rem;
}

body {
  background-color: var(--blog-bg);
  color: var(--blog-text);
  font-family: var(--font-main);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/*  TYPOGRAPHY  */
.hero-title,
.column-title,
.modal-title,
.subscribe-title {
  text-transform: uppercase;
  font-weight: 900;
  background: var(--heading-gradient);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glare-sweep 4s ease-in-out infinite;
  letter-spacing: -0.02em;
}

@keyframes glare-sweep {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/*  HERO  */
.blog-header-hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(circle at top, #0f0f0f 0%, #000 60%);
  border-bottom: 1px solid var(--blog-border);
}


.hero-title {
  font-size: var(--fs-hero);
  line-height: 0.95;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--blog-muted);
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 48px;
  font-weight: 400;
}

/*  SEARCH  */
.search-bar-container {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blog-dim);
}

.search-input-wrapper input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  background: var(--blog-panel);
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  color: #FFF;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.search-input-wrapper input:focus {
  border-color: #555;
}

.btn-search {
  padding: 18px 40px;
  background: #FFF;
  color: #000;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

/*  GRID LAYOUT  */
.blog-grid-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  padding: 100px 0;
}

.column-title {
  font-size: 1.5rem;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--blog-border);
  padding-bottom: 16px;
}

.main-blog-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/*  ARTICLE CARDS  */
.article-card {
  background: var(--blog-panel);
  border: 1px solid var(--blog-border);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: #333;
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 1.1;
  overflow: hidden;
  position: relative;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s;
}

.article-card:hover .card-image-wrap img {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 24px;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}

.card-title {
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.card-excerpt {
  font-size: var(--fs-body);
  color: var(--blog-muted);
  line-height: 1.5;
}

/*  BUTTONS  */
.load-more-container {
  display: flex;
  justify-content: center;
  padding: 80px 0;
  border-top: 1px solid var(--blog-border);
  margin-top: 80px;
}

.btn-load-more {
  padding: 18px 60px;
  background: transparent;
  color: #FFF;
  border: 1px solid var(--blog-border);
  border-radius: 99px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-load-more:hover {
  background: #FFF;
  color: #000;
  border-color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

/*  SIDEBAR  */
.sidebar-section {
  margin-bottom: 64px;
}

.sidebar-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blog-dim);
  font-weight: 800;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--blog-border);
  padding-bottom: 10px;
}

.mini-list-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  margin-bottom: 24px;
  cursor: pointer;
}

.mini-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--blog-border);
}

.mini-date {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
  text-transform: uppercase;
  opacity: 0.6;
}

.mini-title {
  font-size: var(--fs-sidebar-title);
  font-weight: 700;
  color: #FFF;
  line-height: 1.3;
}

/*  SUBSCRIBE SECTION  */
.subscribe-card {
  padding: 32px;
  background: var(--blog-panel);
  border-radius: 20px;
  border: 1px solid var(--blog-border);
  text-align: left;
}

.subscribe-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.subscribe-desc {
  font-size: 0.9rem;
  color: var(--blog-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.subscribe-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-with-icon {
  position: relative;
}

.field-with-icon svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blog-dim);
}

.field-with-icon input {
  width: 100%;
  padding: 14px 14px 14px 48px;
  background: var(--blog-bg);
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  color: #FFF;
  font-size: 0.9rem;
  outline: none;
}

.btn-subscribe {
  width: 100%;
  padding: 14px;
  background: #FFF;
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
}

.btn-subscribe:hover {
  background: #EEE;
  transform: translateY(-1px);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.7rem;
  color: var(--blog-muted);
  cursor: pointer;
}

/*  FOOTER  */
.blog-footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--blog-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 24px;
}

.footer-about,
.footer-address {
  color: var(--blog-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-nav-col h4 {
  font-size: 0.75rem;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-nav-col a {
  color: var(--blog-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.footer-nav-col a:hover {
  color: #FFF;
}

.footer-bottom {
  border-top: 1px solid var(--blog-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  color: var(--blog-dim);
  font-size: 0.75rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--blog-dim);
  text-decoration: none;
}


/*  BLOG MODAL  */
.blog-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 780px;
  height: 82vh;
  background: var(--blog-panel);
  border: 1px solid var(--blog-border);
  border-radius: 28px;
  overflow-y: auto;
  transform: translateY(40px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.blog-modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.modal-close {
  position: sticky;
  top: 24px;
  right: 24px;
  margin-left: auto;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: #FFF;
  color: #000;
  transform: rotate(90deg);
}

.modal-article-body {
  padding: 0 50px 60px;
}

.modal-header {
  margin-bottom: 48px;
  text-align: left;
}

.modal-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 20px 0;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blog-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-hero-img {
  width: calc(100% + 100px);
  margin: 0 -50px 40px;
  height: 380px;
  overflow: hidden;
}

.modal-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #DDD;
  max-width: 650px;
}

.modal-text-content p {
  margin-bottom: 32px;
}

.modal-text-content h2,
.modal-text-content h3 {
  color: #FFF;
  margin: 60px 0 24px;
  font-weight: 800;
}

/*  RESPONSIVE OVERRIDES  */
@media (max-width: 1024px) {
  .blog-grid-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .container {
    padding: 0 32px;
  }

  .modal-article-body {
    padding: 0 40px 60px;
  }

  .modal-hero-img {
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .blog-header-hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .blog-grid-layout {
    padding: 40px 0 60px;
  }

  .main-blog-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .column-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }

  .card-image-wrap {
    aspect-ratio: 1;
  }

  .card-overlay-content {
    padding: 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  }

  .card-title {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .card-excerpt {
    font-size: 0.75rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .card-badge {
    top: 12px;
    left: 12px;
    padding: 3px 8px;
    font-size: 0.55rem;
  }


  .btn-search {
    padding: 14px 24px;
    font-size: 0.8rem;
  }

  .modal-content {
    height: 85vh;
    width: 92%;
    border-radius: 24px;
  }

  .modal-article-body {
    padding: 0 24px 60px;
  }

  .modal-hero-img {
    width: calc(100% + 48px);
    margin: 0 -24px 40px;
    height: 240px;
  }

  .modal-text-content {
    font-size: 1.05rem;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

.hero-title {
  font-size: 1.8rem;
}

.main-blog-feed {
  gap: 10px;
}

.card-title {
  font-size: 0.75rem;
}

.card-excerpt {
  display: none;
}

.container {
  padding: 0 20px;
}