/*
Theme Name: Commenter.ai Blog
Theme URI: https://commenter.ai
Author: Commenter.ai
Description: Custom theme for Commenter.ai blog listing and detail pages.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: commenter-ai
*/

/* Reset / base
---------------------------------------------*/

@font-face {
  font-family: "SF Pro Display";
  src: url("./assets/fonts/SFPRODISPLAYREGULAR.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("./assets/fonts/SFPRODISPLAYMEDIUM.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("./assets/fonts/SFPRODISPLAYBOLD.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --main-bg: #0f0f0f;
  --primary: #18181b;
  --border: #27272a;
  --secondary-text: #bababa;
  --my-accent-300: #c7c7cc;
}

body {
  margin: 0;
  font-family: "SF Pro Display", sans-serif;
  background: var(--main-bg);
  color: white;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header
---------------------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 2rem;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  border-radius: 15px;
  padding: 12px 20px;
}

.header-logo img {
  display: block;
  width: 9rem;
  height: auto;
}

.header-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 45px;
}

.header-nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 1px;
}

.header-nav-links a {
  text-decoration: none;
  letter-spacing: 0.06em;
}

.header-cta--parent {
  width: 167px;
  height: 49px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border-radius: 12px;
  background: linear-gradient(90deg, #79a4f3 0%, #3273b4 100%);
}

.header-cta {
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 11px;
  background: linear-gradient(93.66deg, #0050b2 -13.92%, #41bcff 166.78%);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
  display: grid;
  place-content: center;
}

.header-menu-toggle {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  color: white;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  max-width: 320px;
  height: 100%;
  padding: 1rem;
  background: var(--primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  z-index: 101;
  transform: translateX(100%);
  transition: 0.3s all;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  margin-inline-start: auto;
  color: white;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex: 1;
  height: 100%;
}

.mobile-menu-list a {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.mobile-menu-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border-radius: 12px;
  background: linear-gradient(90deg, #79a4f3 0%, #3273b4 100%);
  margin-top: auto;
}

.mobile-menu-cta-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 11px;
  background: linear-gradient(93.66deg, #0050b2 -13.92%, #41bcff 166.78%);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
}

/* Hero / intro
---------------------------------------------*/

.page-hero {
  position: relative;
  padding-block: 100px;
  text-align: center;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700; /* bold */
  margin-bottom: 1.5rem;
  max-width: 794px;
  width: 100%;
  margin-inline: auto;
}

.page-subtitle {
  max-width: 794px;
  width: 100%;
  margin-inline: auto;
  font-size: 1.125rem; /* text-xl */
  font-weight: 300; /* light */
  letter-spacing: 0.05em; /* tracking-wider */
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.page-subtitle p {
  margin: 0;
}

/* Background overlay like Tailwind absolute element */
.page-hero-bg {
  position: absolute;
  top: 8.75rem; /* top-15 */
  left: 0;
  width: 100%;
  height: 305px; /* same as Tailwind */
  background: linear-gradient(
    180deg,
    rgba(65, 188, 255, 0) 0%,
    rgba(13, 68, 98, 0.5) 100%
  );
  opacity: 0.6;
  backdrop-filter: blur(100px);
  z-index: 0;
}

/* Blog grid
---------------------------------------------*/

.blog-grid-wrap {
  padding-bottom: 5rem;
}

.blog-grid-wrap-text {
  margin-bottom: 65px;
  text-align: center;
}
.blog-grid-wrap-text .page-subtitle {
  font-size: 25px;
  margin-block: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.blog-card {
  height: 366px;
  background: linear-gradient(
    129.82deg,
    rgba(255, 255, 255, 0.15) 13.51%,
    rgba(153, 153, 153, 0.075) 96.44%
  );
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out,
    border-color 150ms ease-out;
}

.blog-card-thumb {
  position: relative;
  width: 100%;
  height: 205px;
  background: radial-gradient(
    circle at 20% 20%,
    #22d3ee 0,
    #1d4ed8 40%,
    #020617 100%
  );
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body--container {
  padding: 0 1px 1px;
  background: linear-gradient(
    313.35deg,
    rgba(255, 255, 255, 0.375) -68.62%,
    rgba(153, 153, 153, 0) 100.06%
  );
  flex: 1;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.blog-card-body--inner-container {
  width: 100%;
  height: 100%;
  background: var(--main-bg);
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}

.blog-card-body {
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    129.82deg,
    rgba(255, 255, 255, 0.15) 13.51%,
    rgba(153, 153, 153, 0.075) 96.44%
  );
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-card-body > * {
  margin: 0;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.blog-card-chip {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-chip img {
  width: 16px;
  height: 16px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  display: -webkit-box; /* Needed for line clamping */
  line-clamp: 3; /* Number of lines */
  -webkit-box-orient: vertical; /* Required for -webkit-line-clamp */
  overflow: hidden; /* Hide the rest */
  text-overflow: ellipsis;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 5px;
  font-size: 12px;
  font-weight: 300;
}

.blog-card-footer img {
  width: 16px;
  height: 16px;
}

/* Pagination
---------------------------------------------*/

.pagination {
  margin: 65px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pagination a,
.pagination span {
  min-width: 45px;
  height: 45px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(
    129.82deg,
    rgba(255, 255, 255, 0.15) 13.51%,
    rgba(153, 153, 153, 0.075) 96.44%
  );
  letter-spacing: 0.5px;
}

.pagination span {
  background: linear-gradient(
    140.19deg,
    rgba(255, 255, 255, 0.35) 13.22%,
    rgba(153, 153, 153, 0.175) 264.26%
  );
}

.pagination .current {
  background: linear-gradient(129.82deg, #065bba 13.51%, #2791e1 96.44%);
}

/* Single post
---------------------------------------------*/

/* ============================= */
/* SINGLE BLOG PAGE */
/* ============================= */

/* HERO IMAGE */

.single-hero-image {
  width: 100%;
  overflow: hidden;
}

.single-hero-image img {
  width: 100%;
  height: 660px;
  object-fit: cover;
  display: block;
}

/* MAIN CONTAINER */

.single-container {
  max-width: 986px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* BACK BUTTON */

.single-back {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--secondary-text);
  text-decoration: none;
  margin-bottom: 40px;
  transition: opacity 0.2s ease;
}

.single-back img {
  width: 21px;
  height: 21px;
}

.single-back:hover {
  opacity: 0.7;
}

/* TITLE */

.single-title {
  font-size: 35px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 21px;
  color: #ffffff;
}

/* SUBTITLE */

.single-subtitle {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
  color: #9ca3af;
  margin-bottom: 21px;
}

.blog-card-meta.single {
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}
/* META SECTION */

.blog-card-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #cbd5e1;
}

.blog-card-chip img {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* DIVIDER */

.single-divider {
  border: none;
  border-top: 1px solid var(--secondary-text);
  margin: 80px 0;
}

.single-divider.second {
  margin-block: 50px;
}

/* ARTICLE */

.single-article {
  margin-bottom: 30px;
}

.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: #d1d5db;
}

/* HEADINGS */

.single-content h2 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: #ffffff;
}

.single-content h3 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #ffffff;
}

/* PARAGRAPHS */

.single-content p {
  margin-bottom: 18px;
}

/* IMAGES */

.single-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 30px 0;
}

/* BLOCKQUOTE */

.single-content blockquote {
  background: var(--primary);
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
  text-align: center;
  color: #e5e7eb;
}

/* LISTS */

.single-content ul {
  margin: 20px 0;
  padding-left: 20px;
}

.single-content li {
  margin-bottom: 8px;
}

/* RELEVANT POST BOX */

.related-post-box--container {
  background: linear-gradient(
    130.99deg,
    rgba(255, 255, 255, 0.25) 6.86%,
    rgba(153, 153, 153, 0) 88.72%
  );
  padding: 1px;
  border-radius: 10px;
  margin-top: 100px;
}

.related-post-box--inner-container {
  background: var(--main-bg);
  width: 100%;
  height: 100%;
  border-radius: 9px;
}

.related-post-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    129.82deg,
    rgba(255, 255, 255, 0.05) 13.51%,
    rgba(153, 153, 153, 0.025) 96.44%
  );
  padding: 40px 50px;
  border-radius: 9px;
}

.related-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.related-post-box p {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 10px;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 300;
  margin-top: 30px;
}

.related-link img {
  width: 20px;
  height: 20px;
}

.related-link:hover {
  text-decoration: underline;
}

/* SHARE */

.single-share {
  display: flex;
  align-items: center;
  gap: 20px;
}

.single-share span {
  font-size: 14px;
  font-weight: 300;
  color: var(--secondary-text);
}

.single-share-links {
  display: flex;
  gap: 10px;
}

.single-share-links a img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.single-share-links a {
  transition: opacity 0.2s ease;
}

.single-share-links a:hover {
  opacity: 80;
}

/* AUTHOR */

.single-author {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 80px;
  max-width: 705px;
  letter-spacing: 0.5px;
}

.single-author-avatar {
  border-radius: 50%;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  overflow: hidden;
}
.single-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-author-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  color: #ffffff;
}

.single-author-description {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.1;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .single-hero-image img {
    height: 420px;
  }

  .single-title {
    font-size: 30px;
  }

  .single-container {
    padding: 40px 18px;
  }

  .single-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* .single-hero {
  padding: 2.8rem 0 2.2rem;
}

.single-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

.single-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.single-featured {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.85);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
  margin-bottom: 2.2rem;
}

.single-content {
  max-width: 720px;
  margin: 0 auto 2.8rem;
  font-size: 0.98rem;
  color: #d1d5db;
}

.single-content h2,
.single-content h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.single-content p {
  margin-bottom: 0.9rem;
}

.single-content ul,
.single-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.single-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  border-left: 3px solid #22c55e;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.single-author {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  padding: 1.2rem 1.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(
    circle at top left,
    rgba(34, 197, 94, 0.08),
    #020617
  );
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.single-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #22c55e, #15803d);
}

.single-author-meta {
  font-size: 0.86rem;
}

.single-author-name {
  font-weight: 600;
}

.single-share {
  max-width: 720px;
  margin: 0 auto 2.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: #9ca3af;
}

.single-share-links {
  display: inline-flex;
  gap: 0.6rem;
}

.single-share-links a {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid rgba(55, 65, 81, 0.9);
} */

.comments-area {
  max-width: 720px;
  margin: 0 auto 3.2rem;
  padding: 1.5rem 1.5rem 1.8rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.comments-title {
  margin-top: 0;
}

/* Footer
---------------------------------------------*/

.site-footer {
  width: 100%;
  padding-top: 80px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  width: 140px;
  margin-bottom: 40px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-section h3 {
  font-size: 14px;
  font-weight: 700;
}

.footer-links-section a {
  font-size: 14px;
  color: #9aa0a6;
  text-decoration: none;
}

.footer-links-section a:hover {
  color: white;
}

.footer-logos {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.footer-logos img {
  max-height: 60px;
}

.footer-bottom {
  background: #171923;
  padding: 16px 0;
  margin-top: 60px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer-bottom-nav {
  display: flex;
  gap: 40px;
}

.footer-bottom-nav a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .header-inner {
    gap: 1rem;
  }

  .header-bar {
    padding-inline: 0.9rem;
  }

  .header-nav-links {
    display: none;
  }

  .header-cta--desk {
    display: none;
  }

  .header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .single-share {
    flex-direction: column;
  }
}

/* Last section */

.last-section {
  height: 292px;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-block: 120px;
}

.last-section h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.last-section p {
  font-size: 18px;
  line-height: 1;
  margin: 0;
}

.last-section .header-cta--parent {
  width: 180px;
  height: 43px;
  margin-top: 21px;
}
