:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --card: #f8fafc;
  --border: #e2e8f0;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-dark: rgba(0, 0, 0, 0.1);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #6366f1;
  --accent: #06b6d4;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #06b6d4 100%);
}

.dark {
  --bg: #0a0f1c;
  --text: #ffffff;
  --muted: #94a3b8;
  --card: #1a2332;
  --border: #2a3441;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-dark: rgba(255, 255, 255, 0.1);
}

.purple {
  --bg: #1e1025;
  --text: #ffffff;
  --muted: #b09bb8;
  --card: #2d1838;
  --border: #4a285d;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-dark: rgba(255, 255, 255, 0.1);
  --primary: #9333ea;
  --primary-hover: #a855f7;
  --secondary: #d946ef;
  --accent: #c084fc;
  --gradient: linear-gradient(135deg, #9333ea 0%, #d946ef 50%, #c084fc 100%);
}

.pink {
  --bg: #2a111a;
  --text: #ffffff;
  --muted: #bda1aa;
  --card: #3a1824;
  --border: #5d283b;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-dark: rgba(255, 255, 255, 0.1);
  --primary: #ec4899;
  --primary-hover: #f472b6;
  --secondary: #fb7185;
  --accent: #fbcfe8;
  --gradient: linear-gradient(135deg, #ec4899 0%, #fb7185 50%, #fbcfe8 100%);
}

/*  GLOBAL STYLES  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  transition:
    background 260ms ease,
    color 260ms ease;
  min-height: 100vh;
}

/* ================= LANDING PAGE - DARK BLUE AESTHETIC ================= */
.landing-hero {
  min-height: 100vh;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.landing-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.landing-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.landing-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin: 0;
}

.landing-ctas {
  margin-top: 16px;
}

.btn.primary.start-reading {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 18px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn.primary.start-reading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s;
}

.btn.primary.start-reading:hover::before {
  left: 100%;
}

.btn.primary.start-reading:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn.primary.start-reading .btn-text {
  position: relative;
  z-index: 1;
}

.btn.primary.start-reading .btn-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn.primary.start-reading:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-illustration {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.hero-decoration.deco-1 {
  width: 120px;
  height: 120px;
  background: rgba(59, 130, 246, 0.3);
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.hero-decoration.deco-2 {
  width: 80px;
  height: 80px;
  background: rgba(99, 102, 241, 0.4);
  bottom: -10px;
  left: -10px;
  animation-delay: 2s;
}

.hero-decoration.deco-3 {
  width: 60px;
  height: 60px;
  background: rgba(6, 182, 212, 0.5);
  top: 50%;
  left: -30px;
  animation-delay: 4s;
}

.book-icon {
  font-size: 8rem;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: bounce 2s infinite;
}

.scroll-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-8px);
  }

  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ================= ABOUT SECTION ================= */
.about-section {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  position: relative;
}

.about-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.about-text {
  margin-bottom: 60px;
}

.about-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.feature p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.hero-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  background: #00c853;
  border-radius: 50%;
  opacity: 0.3;
}

.hero-decoration.deco-1 {
  top: 10%;
  right: 10%;
}

.hero-decoration.deco-2 {
  bottom: 20%;
  left: 20%;
}

/* responsive */
@media (max-width: 1024px) {
  .landing-hero {
    padding: 60px 40px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-illustration {
    width: 300px;
    height: 300px;
  }

  .about-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 40px 20px;
  }

  .hero-content {
    gap: 40px;
  }

  .hero-illustration {
    width: 250px;
    height: 250px;
  }

  .book-icon {
    font-size: 6rem;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .about-section {
    padding: 60px 20px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature {
    padding: 30px 20px;
  }
}

nav {
  width: 100%;
  min-height: 70px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px var(--shadow-light);
  flex-wrap: wrap;
  gap: 20px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

/* SEARCH BAR - Home page only */
.search-container {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  order: 3;
}

.search {
  width: 100%;
  max-width: 350px;
  padding: 10px 16px;
  border-radius: 25px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--muted);
  font-size: 0.95rem;
  box-shadow: 0 2px 6px var(--shadow-light);
  transition: 0.3s ease;
}

.search:focus {
  outline: none;
  box-shadow: 0 4px 12px var(--shadow-light);
  border-color: var(--text);
}

.search::placeholder {
  color: var(--muted);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  transition: 0.3s;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  width: 0;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HAMBURGER MENU */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  order: 1;
  flex-shrink: 0;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hamburger animation - Line 1 */
.menu-toggle:checked~.hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

/* Hamburger animation - Line 2 */
.menu-toggle:checked~.hamburger span:nth-child(2) {
  opacity: 0;
  transition: opacity 0.2s;
}

/* Hamburger animation - Line 3 */
.menu-toggle:checked~.hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* TOGGLE BUTTON */
.toggle-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background: var(--card);
  box-shadow: 0 2px 6px var(--shadow-light);
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  order: 4;
}

.toggle-btn:hover {
  box-shadow: 0 4px 12px var(--shadow-light);
}

.toggle-btn img {
  width: 20px;
  height: 20px;
}

/* USER INFO & LOGOUT */
.user-info {
  display: flex;
  gap: 15px;
  align-items: center;
  order: 5;
  padding: 0 10px;
  white-space: nowrap;
}

.user-name {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.btn-logout {
  padding: 10px 20px;
  background: var(--card);
  color: var(--text);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;

  box-shadow:
    6px 6px 12px var(--shadow-light),
    -6px -6px 12px var(--shadow-dark);
}

.btn-logout:hover {
  transform: scale(1.05);
  box-shadow:
    8px 8px 16px var(--shadow-light),
    -8px -8px 16px var(--shadow-dark);
}

.btn-logout:active {
  transform: translateY(0);
  box-shadow:
    inset 4px 4px 8px var(--shadow-light),
    inset -4px -4px 8px var(--shadow-dark);
}

/* TABLET + BELOW (1024px) */
@media (max-width: 1024px) {
  nav {
    padding: 10px 16px;
    gap: 8px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .search {
    max-width: 280px;
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.3rem;
  }
}

/* TABLET (768px - 1023px) */
@media (max-width: 1023px) {
  nav {
    padding: 12px 12px;
    min-height: 65px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .search-container {
    min-width: 160px;
  }

  .search {
    max-width: 240px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

/* MOBILE LARGE (640px - 767px) */
@media (max-width: 767px) {
  nav {
    padding: 10px;
    min-height: 60px;
    flex-wrap: nowrap;
  }

  .logo {
    font-size: 1.12rem;
    order: 2;
    flex: 1;
    text-align: center;
  }

  .hamburger {
    display: flex;
    order: 1;
  }

  .hamburger span {
    width: 24px;
    height: 2.5px;
  }

  .toggle-btn {
    order: 3;
    width: 36px;
    height: 36px;
  }

  .toggle-btn img {
    width: 18px;
    height: 18px;
  }

  .search-container {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transform: translateX(-150%);
    transition: transform 0.4s ease;
    box-shadow: 0 4px 12px var(--shadow-light);
    z-index: 99;
  }

  .menu-toggle:checked~.nav-links,
  .menu-toggle:checked~.nav-center .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 12px 8px;
    font-size: 1rem;
  }

  .nav-links a::after {
    height: 0;
  }
}

/* MOBILE MEDIUM (480px - 639px) */
@media (max-width: 639px) {
  nav {
    padding: 8px;
    min-height: 55px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
  }

  .toggle-btn {
    width: 34px;
    height: 34px;
    padding: 6px;
  }

  .toggle-btn img {
    width: 16px;
    height: 16px;
  }

  .nav-links {
    top: 55px;
    padding: 16px;
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 10px 6px;
  }
}

/* MOBILE SMALL (360px - 479px) */
@media (max-width: 479px) {
  nav {
    padding: 6px;
    min-height: 50px;
    gap: 6px;
  }

  .logo {
    font-size: 1.05rem;
    font-weight: 600;
  }

  .hamburger {
    gap: 4px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .toggle-btn {
    width: 32px;
    height: 32px;
    padding: 5px;
  }

  .toggle-btn img {
    width: 15px;
    height: 15px;
  }

  .nav-links {
    top: 50px;
    padding: 12px;
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 10px 4px;
  }
}

.container {
  max-width: 100%;
  margin: 2%;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.8fr 1.5fr;
  gap: 30px;
}

.feed {
  display: flex;
  flex-direction: column;
}

/* BLOG CARD */

.card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: var(--bg);
  box-shadow:
    4px 4px 12px var(--shadow-light),
    -4px -4px 12px var(--shadow-dark);
  transition: 0.3s ease;
  cursor: pointer;
  position: relative;
  /* allow absolute overlay (heart) */
}

.card:hover {
  box-shadow:
    6px 6px 16px var(--shadow-light),
    -6px -6px 16px var(--shadow-dark);
}

.card img {
  width: 160px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}

/* Heart overlay shown briefly when a blog is liked */
.like-heart {
  position: absolute;
  pointer-events: none;
  font-size: 44px;
  transform: scale(0.8);
  opacity: 0;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
  will-change: transform, opacity;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.like-heart.show {
  opacity: 1;
  transform: scale(1.25);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h2 {
  font-size: 24px;
  margin: 8px 0;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.card-user {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

/* ACTION BUTTONS */
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.3s ease;
  box-shadow:
    2px 2px 6px var(--shadow-light),
    -2px -2px 6px var(--shadow-dark);
}

.action-btn:hover {
  color: var(--text);
  box-shadow:
    3px 3px 8px var(--shadow-light),
    -3px -3px 8px var(--shadow-dark);
}

.action-btn span {
  font-size: 13px;
}

/* SAVE BUTTON */
.save-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-icon {
  width: 18px;
  height: 18px;
  transition: fill 0.3s ease;
  color: var(--muted);
}

.save-btn.saved .save-icon {
  color: #ff9800;
  filter: drop-shadow(0 0 4px rgba(255, 152, 0, 0.5));
}

.save-btn.saved {
  box-shadow:
    2px 2px 8px rgba(255, 152, 0, 0.3),
    -2px -2px 8px var(--shadow-dark);
}

.save-btn.saved:hover {
  box-shadow:
    3px 3px 10px rgba(255, 152, 0, 0.4),
    -3px -3px 10px var(--shadow-dark);
}

.like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ff0303;
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sidebar-column {
  display: flex;
  flex-direction: column;
}

.sidebar-column h3 {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.sidebar h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.pick {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--card);
  border-radius: 12px;
  box-shadow:
    2px 2px 6px var(--shadow-light),
    -2px -2px 6px var(--shadow-dark);
  transition: all 0.3s ease;
  cursor: pointer;
}

.pick:hover {
  box-shadow:
    4px 4px 12px var(--shadow-light),
    -4px -4px 12px var(--shadow-dark);
  transform: translateY(-2px);
}

.pick span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.pick h4 {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

/* ================= PROFILE PAGE ================= */
.wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.profile-card {
  padding: 25px;
  border-radius: 20px;
  background: var(--card);
  box-shadow:
    8px 8px 16px var(--shadow-light),
    -8px -8px 16px var(--shadow-dark);
  margin-bottom: 30px;
}

.profile-card h2 {
  margin-bottom: 15px;
  color: var(--text);
}

.profile-card textarea,
.profile-card input[type="text"],
.profile-card input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  margin-top: 10px;
  margin-bottom: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.profile-card textarea {
  min-height: 100px;
  resize: vertical;
}

.profile-card input[type="file"] {
  padding: 8px;
}

.profile-card button {
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
  box-shadow:
    4px 4px 10px var(--shadow-light),
    -4px -4px 10px var(--shadow-dark);
}

.profile-card button:hover {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--text);
}

#blogContainer {
  margin-top: 20px;
}

.blog-post {
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  margin-top: 20px;
  box-shadow:
    6px 6px 14px var(--shadow-light),
    -6px -6px 14px var(--shadow-dark);
}

.blog-post img {
  width: 100%;
  border-radius: 15px;
  margin-top: 10px;
  max-height: 400px;
  object-fit: cover;
}

.caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

/* SIDEBAR PROFILE */
.sidebar-profile {
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  background: var(--card);
  box-shadow:
    8px 8px 16px var(--shadow-light),
    -8px -8px 16px var(--shadow-dark);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #6c5ce7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 15px;
  font-weight: bold;
}

.username {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}

.bio {
  font-size: 14px;
  margin-top: 10px;
  color: var(--text);
}

.social {
  margin-top: 15px;
}

.social a {
  text-decoration: none;
  font-size: 14px;
  color: #e84393;
  display: block;
  margin: 8px 0;
  transition: 0.3s;
}

.social a:hover {
  color: var(--text);
  text-decoration: underline;
}

.edit {
  color: #00b894;
  margin-top: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.edit:hover {
  opacity: 0.7;
}

header {
  height: 10vh;
  width: 100vw;
  background-color: var(--bg);
}

.hero {
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.hero .text {
  height: 80vh;
  width: 50%;
  font-size: 45px;
  overflow: hidden;
  padding: 23px 4px;
  font-weight: bold;
  color: var(--text);
}

.hero .text p {
  height: 5%;
  width: 100%;
  margin: 19px 0 0 0;
  font-size: 20px;
  padding: 10px 0;
  color: var(--muted);
  font-weight: normal;
}

.hero .imgw {
  height: 90vh;
  width: 40vw;
  padding: 0;
  margin: 0;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero button {
  height: 2.5rem;
  width: 200px;
  border-radius: 45px;
  border: none;
  padding: 10px;
  background-color: var(--text);
  color: var(--bg);
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow:
    4px 4px 10px var(--shadow-light),
    -4px -4px 10px var(--shadow-dark);
}

.hero button:hover {
  background-color: var(--bg);
  color: var(--text);
  border: 2px solid var(--text);
}

/* ================= LIBRARY PAGE ================= */
.library-container {
  max-width: 700px;
  margin: 50px auto;
  padding: 0 20px;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.header-section h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-new-list {
  background: var(--card);
  color: var(--text);
  border: 0;
  padding: 10px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  box-shadow:
    8px 8px 16px var(--shadow-light),
    -8px -8px 16px var(--shadow-dark);
  transition: 0.3s;
}

.btn-new-list:hover {
  box-shadow:
    10px 10px 20px var(--shadow-light),
    -10px -10px 20px var(--shadow-dark);
}

.theme-toggle {
  background: var(--card);
  color: var(--text);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    6px 6px 12px var(--shadow-light),
    -6px -6px 12px var(--shadow-dark);
  font-size: 16px;
  transition: 0.3s;
}

.theme-toggle:hover {
  box-shadow:
    8px 8px 14px var(--shadow-light),
    -8px -8px 14px var(--shadow-dark);
}

/* TABS */
.tabs {
  display: flex;
  gap: 25px;
  margin-bottom: -1px;
  overflow-x: auto;
}

.tab {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 15px;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.tab.active {
  color: var(--text);
  border-bottom: 2px solid var(--text);
}

.divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
}

/* LIST CARDS */
.list-card {
  background: var(--card);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  height: 180px;
  box-shadow:
    12px 12px 24px var(--shadow-light),
    -8px -8px 18px var(--shadow-dark);
  margin-bottom: 20px;
  transition: 0.3s;
}

.list-card:hover {
  box-shadow:
    14px 14px 28px var(--shadow-light),
    -10px -10px 22px var(--shadow-dark);
}

.list-info {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.user-profile img {
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.list-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.list-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.lock-icon {
  margin-left: 4px;
}

/* IMAGE PREVIEW */
.list-preview {
  display: flex;
  width: 240px;
  gap: 2px;
}

.preview-box {
  background-color: rgba(0, 0, 0, 0.03);
  background-image: linear-gradient(145deg,
      rgba(255, 255, 255, 0.6),
      rgba(0, 0, 0, 0.02));
  transition: background-color 260ms ease;
}

.preview-box.main {
  flex: 2;
}

.preview-box.side {
  flex: 1;
}

/* TAB CONTENT */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* DESKTOP (1025px+) - NO CHANGES */
@media (min-width: 1025px) {
  .container {
    max-width: 100%;
    margin: 2%;
    padding: 32px;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
  }

  .wrapper {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }

  .sidebar {
    padding-left: 24px;
  }

  .sidebar-profile {
    position: sticky;
    top: 80px;
  }

  .hero {
    padding: 0 40px;
  }
}

/* TABLET LARGE (1024px) */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 30px;
  }

  .sidebar {
    padding: 0;
  }

  .sidebar-grid {
    grid-template-columns: 1fr;
  }

  .wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar-profile {
    position: static;
    order: -1;
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding: 30px 40px;
  }

  .hero .text {
    width: 100%;
    height: auto;
    font-size: 36px;
    margin: 0;
  }

  .hero .imgw {
    width: 100%;
    height: 350px;
    margin-top: 20px;
  }

  .card {
    flex-direction: column;
    gap: 15px;
  }

  .card img {
    width: 100%;
    height: 200px;
  }
}

/* TABLET (768px - 1023px) */
@media (max-width: 1023px) {
  .container {
    max-width: none;
    margin: 15px auto;
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }

  .card img {
    grid-row: 1;
    width: 100%;
    height: 140px;
  }

  .card-content {
    grid-column: 1 / -1;
  }

  .card h2 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }

  .sidebar {
    width: 100%;
    padding: 0;
  }

  .pick {
    margin-bottom: 15px;
  }

  .wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 25px auto;
  }

  .profile-card {
    padding: 20px;
  }

  .sidebar-profile {
    padding: 20px;
    position: static;
    height: auto;
  }

  .hero .text {
    font-size: 32px;
  }

  .hero .text p {
    font-size: 18px;
  }

  .hero .imgw {
    height: 300px;
  }

  .library-container {
    max-width: 90%;
    margin: 30px auto;
  }

  .header-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .header-section h1 {
    font-size: 36px;
    flex: 1;
  }

  .list-card {
    height: auto;
  }

  .list-preview {
    width: 150px;
    height: 120px;
    margin-bottom: 12px;
  }
}

/* MOBILE LARGE (640px - 767px) */
@media (max-width: 767px) {
  .container {
    margin: 10px auto;
    padding: 12px;
    grid-template-columns: 1fr;
  }

  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    margin-bottom: 14px;
    gap: 10px;
  }

  .card img {
    width: 100%;
    height: 160px;
    max-width: 100%;
  }

  .card h2 {
    font-size: 20px;
  }

  .card p {
    font-size: 13px;
  }

  .actions {
    justify-content: center;
    gap: 12px;
  }

  .action-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .sidebar {
    width: 100%;
    padding: 0;
  }

  .pick {
    padding: 10px;
    margin-bottom: 12px;
  }

  .pick h4 {
    font-size: 13px;
  }

  .pick span {
    font-size: 12px;
  }

  .wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px auto;
    padding: 0 12px;
  }

  .profile-card {
    padding: 16px;
    margin-bottom: 20px;
  }

  .profile-card h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .profile-card textarea,
  .profile-card input[type="text"],
  .profile-card input[type="file"] {
    padding: 10px;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .profile-card button {
    padding: 10px 16px;
    font-size: 13px;
  }

  .sidebar-profile {
    padding: 18px;
    text-align: center;
    margin-top: 20px;
  }

  .avatar {
    width: 90px;
    height: 90px;
    font-size: 2rem;
    margin: 0 auto 12px;
  }

  .bio {
    font-size: 13px;
  }

  .social a {
    font-size: 13px;
  }

  .hero {
    padding: 20px 16px;
    height: auto;
  }

  .hero .text {
    width: 100%;
    font-size: 28px;
    height: auto;
    overflow: visible;
    padding: 10px 0;
    margin: 0;
  }

  .hero .text p {
    font-size: 15px;
    margin: 12px 0;
  }

  .hero .imgw {
    width: 100%;
    height: 280px;
    margin-top: 15px;
  }

  .hero button {
    width: 160px;
    height: 2.2rem;
    font-size: 14px;
  }

  .library-container {
    max-width: 95%;
    margin: 25px auto;
    padding: 0 12px;
  }

  .header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
  }

  .header-section h1 {
    font-size: 30px;
    font-weight: 700;
  }

  .header-controls {
    width: 100%;
    gap: 10px;
  }

  .btn-new-list {
    font-size: 13px;
    padding: 8px 14px;
  }

  .tabs {
    gap: 18px;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .tab {
    font-size: 13px;
    padding-bottom: 12px;
  }

  .list-card {
    height: auto;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .list-info {
    padding: 16px;
  }

  .list-title {
    font-size: 18px;
  }

  .list-preview {
    width: 100%;
    height: 100px;
    gap: 2px;
  }

  .user-profile {
    font-size: 12px;
  }

  .list-footer {
    font-size: 12px;
  }
}

/* MOBILE MEDIUM (480px - 639px) */
@media (max-width: 639px) {
  .container {
    margin: 8px auto;
    padding: 10px;
    grid-template-columns: 1fr;
  }

  .card {
    padding: 10px;
    margin-bottom: 12px;
    gap: 8px;
  }

  .card img {
    height: 120px;
  }

  .card h2 {
    font-size: 15px;
    margin: 6px 0;
  }

  .card p {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .meta {
    font-size: 11px;
  }

  .card-user {
    font-size: 11px;
  }

  .actions {
    gap: 8px;
    margin-top: 10px;
  }

  .action-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .sidebar {
    width: 100%;
    padding: 0;
  }

  .pick {
    padding: 8px;
    margin-bottom: 10px;
  }

  .pick h4 {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .pick span {
    font-size: 11px;
  }

  .wrapper {
    gap: 16px;
    margin: 16px auto;
    padding: 0 10px;
  }

  .profile-card {
    padding: 14px;
    margin-bottom: 16px;
  }

  .profile-card h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .profile-card textarea,
  .profile-card input[type="text"],
  .profile-card input[type="file"] {
    padding: 8px;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .profile-card button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .blog-post {
    padding: 12px;
    margin-top: 12px;
  }

  .blog-post img {
    max-height: 250px;
  }

  .sidebar-profile {
    padding: 14px;
    margin-top: 16px;
  }

  .avatar {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    margin: 0 auto 10px;
  }

  .username {
    font-size: 12px;
  }

  .bio {
    font-size: 12px;
    margin-top: 8px;
  }

  .social a {
    font-size: 12px;
    margin: 6px 0;
  }

  .edit {
    margin-top: 12px;
    font-size: 13px;
  }

  .hero {
    padding: 16px 12px;
  }

  .hero .text {
    font-size: 24px;
    padding: 8px 0;
  }

  .hero .text p {
    font-size: 14px;
    margin: 10px 0;
  }

  .hero .imgw {
    height: 240px;
    margin-top: 12px;
    border-radius: 15px;
  }

  .hero button {
    width: 140px;
    height: 2rem;
    font-size: 13px;
    margin-top: 16px;
  }

  .library-container {
    margin: 20px auto;
    padding: 0 10px;
  }

  .header-section {
    margin-bottom: 20px;
    gap: 10px;
  }

  .header-section h1 {
    font-size: 26px;
  }

  .btn-new-list {
    font-size: 12px;
    padding: 7px 12px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .tabs {
    gap: 16px;
    font-size: 12px;
  }

  .tab {
    font-size: 12px;
    padding-bottom: 10px;
  }

  .list-card {
    margin-bottom: 14px;
    min-height: auto;
  }

  .list-info {
    padding: 14px;
  }

  .list-title {
    font-size: 16px;
  }

  .list-preview {
    height: 90px;
  }

  .user-profile {
    font-size: 11px;
  }

  .list-footer {
    font-size: 11px;
  }
}

/* MOBILE SMALL (360px - 479px) */
@media (max-width: 479px) {
  .container {
    margin: 6px auto;
    padding: 8px;
    grid-template-columns: 1fr;
  }

  .card {
    padding: 8px;
    margin-bottom: 10px;
    gap: 6px;
    border-radius: 12px;
  }

  .card img {
    height: 100px;
    border-radius: 8px;
  }

  .card h2 {
    font-size: 14px;
    margin: 4px 0;
  }

  .card p {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .meta {
    font-size: 10px;
  }

  .card-user {
    font-size: 10px;
  }

  .actions {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .action-btn {
    padding: 4px 6px;
    font-size: 10px;
  }

  .wrapper {
    gap: 14px;
    margin: 12px auto;
    padding: 0 8px;
  }

  .profile-card {
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .profile-card h2 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .profile-card textarea,
  .profile-card input[type="text"],
  .profile-card input[type="file"] {
    padding: 6px;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .profile-card button {
    padding: 8px 12px;
    font-size: 11px;
  }

  .blog-post {
    padding: 10px;
    margin-top: 10px;
  }

  .blog-post img {
    max-height: 200px;
  }

  .caption {
    font-size: 10px;
  }

  .sidebar-profile {
    padding: 12px;
    margin-top: 14px;
  }

  .avatar {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
    margin: 0 auto 8px;
  }

  .username {
    font-size: 11px;
  }

  .bio {
    font-size: 11px;
    margin-top: 6px;
  }

  .social a {
    font-size: 11px;
    margin: 4px 0;
  }

  .edit {
    margin-top: 10px;
    font-size: 11px;
  }

  .hero {
    padding: 12px 10px;
  }

  .hero .text {
    font-size: 20px;
    padding: 6px 0;
  }

  .hero .text p {
    font-size: 12px;
    margin: 8px 0;
  }

  .hero .imgw {
    height: 200px;
    margin-top: 10px;
    border-radius: 12px;
  }

  .hero button {
    width: 120px;
    height: 1.8rem;
    font-size: 12px;
    margin-top: 12px;
  }

  .library-container {
    max-width: 100%;
    margin: 16px auto;
    padding: 0 8px;
  }

  .header-section {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
  }

  .header-section h1 {
    font-size: 22px;
    font-weight: 600;
  }

  .header-controls {
    width: 100%;
    gap: 8px;
  }

  .btn-new-list {
    font-size: 11px;
    padding: 6px 10px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .tabs {
    gap: 12px;
    font-size: 11px;
  }

  .tab {
    font-size: 11px;
    padding-bottom: 8px;
  }

  .list-card {
    margin-bottom: 12px;
  }

  .list-info {
    padding: 12px;
  }

  .list-title {
    font-size: 14px;
  }

  .list-preview {
    height: 80px;
  }

  .user-profile {
    font-size: 10px;
  }

  .list-footer {
    font-size: 10px;
  }
}

button img {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*ANIMATIONS  */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

/* ================================================================ */
/* ==================== ABOUT PAGE STYLING ======================= */
/* ================================================================ */

/* ============== BASE ABOUT PAGE ============== */
.about-page {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
  min-height: 100vh;
}

.about-page .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
}

/* ============== HERO SECTION ============== */
.about-page .hero {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.about-page .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-page .hero p {
  color: var(--muted);
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
  font-size: 1rem;
}

/* ============== VISION/FEATURES/COMMUNITY CARDS ============== */
.about-page .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.about-page .card {
  padding: 35px;
  border-radius: 20px;
  background: var(--card);
  box-shadow:
    8px 8px 20px var(--shadow-light),
    -8px -8px 20px var(--shadow-dark);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-page .card:hover {
  transform: translateY(-8px);
  box-shadow:
    12px 12px 25px var(--shadow-light),
    -12px -12px 25px var(--shadow-dark);
}

.about-page .card h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
}

.about-page .card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.about-page .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: about-float 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes about-float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ============== MISSION SECTION ============== */
.about-page .section-block {
  margin-top: 60px;
  padding: 50px 40px;
  border-radius: 20px;
  background: var(--card);
  box-shadow:
    inset 6px 6px 15px var(--shadow-light),
    inset -6px -6px 15px var(--shadow-dark);
  text-align: center;
}

.about-page .section-block h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 700;
}

.about-page .section-block p {
  color: var(--muted);
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
  font-size: 1rem;
}

/* ============== WHY CHOOSE URBANDIARY SECTION ============== */
.about-page .why-section {
  margin-top: 80px;
  margin-bottom: 60px;
}

.about-page .why-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text);
}

.about-page .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-page .feature-item {
  padding: 30px 25px;
  border-radius: 15px;
  background: var(--card);
  box-shadow: 0 4px 15px var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
}

.about-page .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.about-page .feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text);
}

.about-page .feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============== ANIMATED FEATURE ICONS ============== */
.about-page .feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  color: var(--text);
  display: inline-block;
}

/* Sparkle Animation - Icon 1 */
.feature-item:nth-child(1) .feature-icon {
  animation: sparkle-rotate 3s ease-in-out infinite;
}

@keyframes sparkle-rotate {

  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.feature-item:nth-child(1) .sparkle-dot {
  animation: sparkle-pulse 1.5s ease-in-out infinite !important;
}

@keyframes sparkle-pulse {

  0%,
  100% {
    opacity: 0;
    r: 0;
  }

  50% {
    opacity: 1;
    r: 3;
  }
}

/* Lock Animation - Icon 2 */
.feature-item:nth-child(2) .feature-icon {
  animation: lock-bounce 2s ease-in-out infinite;
}

@keyframes lock-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.feature-item:nth-child(2) .lock-shackle {
  animation: lock-unlock 2s ease-in-out infinite;
  transform-origin: 12px 2px;
}

@keyframes lock-unlock {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.9);
  }
}

/* Lightning Animation - Icon 3 */
.feature-item:nth-child(3) .feature-icon {
  animation: lightning-flash 1.5s ease-in-out infinite;
}

@keyframes lightning-flash {

  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 0px rgba(255, 193, 7, 0.5));
  }

  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.8));
  }
}

.feature-item:nth-child(3) .lightning-bolt {
  transform-origin: 13px 12px;
}

/* Phone Animation - Icon 4 */
.feature-item:nth-child(4) .feature-icon {
  animation: phone-tilt 2.5s ease-in-out infinite;
}

@keyframes phone-tilt {

  0%,
  100% {
    transform: rotateZ(-5deg);
  }

  50% {
    transform: rotateZ(5deg);
  }
}

.feature-item:nth-child(4) .phone-screen {
  animation: screen-flicker 2s ease-in-out infinite;
}

@keyframes screen-flicker {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Globe Animation - Icon 5 */
.feature-item:nth-child(5) .feature-icon {
  animation: globe-spin 4s linear infinite;
}

@keyframes globe-spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.feature-item:nth-child(5) .globe-curve {
  animation: globe-pulse 2s ease-in-out infinite;
}

@keyframes globe-pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Analytics Chart Animation - Icon 6 */
.feature-item:nth-child(6) .bar-1 {
  animation: bar-height 2s ease-in-out infinite;
  transform-origin: 4.5px 21px;
}

.feature-item:nth-child(6) .bar-2 {
  animation: bar-height-2 2s ease-in-out infinite;
  transform-origin: 12px 21px;
}

.feature-item:nth-child(6) .bar-3 {
  animation: bar-height-3 2s ease-in-out infinite;
  transform-origin: 19.5px 21px;
}

@keyframes bar-height {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.6);
  }
}

@keyframes bar-height-2 {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.4);
  }
}

@keyframes bar-height-3 {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.7);
  }
}

.feature-item:nth-child(6) .chart-line {
  animation: line-draw 2s ease-in-out infinite;
  stroke-dasharray: 25;
  stroke-dashoffset: 25;
}

@keyframes line-draw {

  0%,
  100% {
    stroke-dashoffset: 25;
  }

  50% {
    stroke-dashoffset: 0;
  }
}

/* ============== OUR STORY SECTION ============== */
.about-page .story-section {
  margin-top: 80px;
  margin-bottom: 60px;
  padding: 50px 40px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.about-page .story-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text);
  text-align: center;
}

.about-page .story-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-page .story-section p:last-child {
  margin-bottom: 0;
}

/* ============== VALUES SECTION ============== */
.about-page .values-section {
  margin-top: 80px;
  margin-bottom: 60px;
}

.about-page .values-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text);
}

.about-page .values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.about-page .value-box {
  padding: 35px 25px;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.about-page .value-box:nth-child(1) {
  border-left-color: #e74c3c;
}

.about-page .value-box:nth-child(2) {
  border-left-color: #3498db;
}

.about-page .value-box:nth-child(3) {
  border-left-color: #2ecc71;
}

.about-page .value-box:nth-child(4) {
  border-left-color: #f39c12;
}

.about-page .value-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.about-page .value-box h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
}

.about-page .value-box p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============== CTA SECTION ============== */
.about-page .cta-section {
  margin-top: 80px;
  margin-bottom: 60px;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--card) 0%, var(--card) 100%);
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow-light);
  text-align: center;
}

.about-page .cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text);
}

.about-page .cta-section p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-page .cta-button {
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.about-page .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

/* ========== ABOUT PAGE RESPONSIVE - TABLET (768px) */
/* ================================================================ */
@media (max-width: 768px) {
  .about-page .container {
    padding: 30px 16px;
  }

  .about-page .hero {
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .about-page .hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .about-page .hero p {
    font-size: 0.95rem;
  }

  .about-page .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .about-page .card {
    padding: 28px;
    border-radius: 18px;
  }

  .about-page .card h3 {
    font-size: 1.1rem;
    margin-top: 15px;
  }

  .about-page .card p {
    font-size: 0.9rem;
  }

  .about-page .icon {
    width: 60px;
    height: 60px;
  }

  .about-page .section-block {
    margin-top: 50px;
    padding: 40px 30px;
    border-radius: 18px;
  }

  .about-page .section-block h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .about-page .section-block p {
    font-size: 0.95rem;
  }

  .about-page .why-section {
    margin-top: 60px;
    margin-bottom: 50px;
  }

  .about-page .why-section h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .about-page .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-page .feature-item {
    padding: 25px 20px;
  }

  .about-page .feature-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
  }

  .about-page .feature-item h4 {
    font-size: 1.1rem;
  }

  .about-page .feature-item p {
    font-size: 0.9rem;
  }

  .about-page .story-section {
    margin-top: 60px;
    padding: 40px 30px;
  }

  .about-page .story-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .about-page .story-section p {
    font-size: 0.95rem;
  }

  .about-page .values-section {
    margin-top: 60px;
    margin-bottom: 50px;
  }

  .about-page .values-section h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .about-page .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-page .value-box {
    padding: 25px 20px;
  }

  .about-page .value-box h4 {
    font-size: 1.1rem;
  }

  .about-page .value-box p {
    font-size: 0.9rem;
  }

  .about-page .cta-section {
    margin-top: 60px;
    padding: 40px 30px;
  }

  .about-page .cta-section h2 {
    font-size: 1.5rem;
  }

  .about-page .cta-section p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
}

/* ABOUT PAGE RESPONSIVE - MOBILE (480px)  */

@media (max-width: 480px) {
  .about-page .container {
    padding: 25px 12px;
    margin-top: 10px;
  }

  .about-page .hero {
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .about-page .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .about-page .hero p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .about-page .cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .about-page .card {
    padding: 25px 20px;
    border-radius: 15px;
  }

  .about-page .card h3 {
    font-size: 1rem;
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .about-page .card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .about-page .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
  }

  .about-page .section-block {
    margin-top: 40px;
    padding: 30px 20px;
    border-radius: 15px;
  }

  .about-page .section-block h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .about-page .section-block p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .about-page .why-section {
    margin-top: 50px;
    margin-bottom: 40px;
  }

  .about-page .why-section h2 {
    font-size: 1.3rem;
    margin-bottom: 30px;
  }

  .about-page .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-page .feature-item {
    padding: 20px 15px;
  }

  .about-page .feature-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
  }

  .about-page .feature-item h4 {
    font-size: 1rem;
  }

  .about-page .feature-item p {
    font-size: 0.85rem;
  }

  .about-page .story-section {
    margin-top: 50px;
    padding: 30px 20px;
  }

  .about-page .story-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .about-page .story-section p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .about-page .values-section {
    margin-top: 50px;
    margin-bottom: 40px;
  }

  .about-page .values-section h2 {
    font-size: 1.3rem;
    margin-bottom: 30px;
  }

  .about-page .values-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-page .value-box {
    padding: 20px 15px;
  }

  .about-page .value-box h4 {
    font-size: 1rem;
  }

  .about-page .value-box p {
    font-size: 0.85rem;
  }

  .about-page .cta-section {
    margin-top: 50px;
    padding: 30px 20px;
  }

  .about-page .cta-section h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .about-page .cta-section p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .about-page .cta-button {
    padding: 12px 30px;
    font-size: 0.95rem;
  }
}

/* ABOUT PAGE RESPONSIVE - SMALL MOBILE (max 380px) */
@media (max-width: 380px) {
  .about-page .hero h1 {
    font-size: 1.4rem;
  }

  .about-page .card {
    padding: 20px 15px;
  }

  .about-page .icon {
    width: 45px;
    height: 45px;
  }

  .about-page .section-block {
    padding: 25px 15px;
  }

  .about-page .section-block h2 {
    font-size: 1.1rem;
  }

  .about-page .how-section h2,
  .about-page .story-section h2,
  .about-page .values-section h2,
  .about-page .cta-section h2 {
    font-size: 1.2rem;
  }

  .about-page .cta-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/*urban contact page */
.hero {
  text-align: center;
  padding: 131px;
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 0px;
}

.hero p {
  color: var(--muted);
  max-width: 60%;
  margin: auto;
}

/* ================= GRID SECTION ================= */

.section {
  padding: 70px 8%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card);
  padding: 30px;
  border-radius: 20px;
  box-shadow:
    10px 10px 20px var(--shadow-light),
    -10px -10px 20px var(--shadow-dark);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.icon {
  width: 28px;
  margin-bottom: 15px;
  stroke: var(--text);
}

/* ================= FORM ================= */

form input,
form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: none;
  border-radius: 15px;
  background: var(--card);
  box-shadow:
    inset 5px 5px 10px var(--shadow-light),
    inset -5px -5px 10px var(--shadow-dark);
  color: var(--text);
}

button {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: var(--card);
  box-shadow:
    6px 6px 12px var(--shadow-light),
    -6px -6px 12px var(--shadow-dark);
  font-weight: bold;
  color: var(--text);
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
}

/* ================= FAQ ================= */

.faq-item {
  margin-bottom: 20px;
}

.faq-item h4 {
  margin-bottom: 8px;
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }
}

/* URBANDIARY PAGE STYLES*/
.ud-page {
  background: var(--bg);
}

.ud-hero {
  padding: 48px 0;
}

.ud-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 0 20px;
}

.ud-hero-copy h1 {
  font-size: 48px;
  line-height: 1.02;
  margin-bottom: 12px;
}

.ud-hero-copy p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 18px;
}

.ud-hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 12px 12px 30px var(--shadow-light);
}

.ud-section {
  padding: 56px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 18px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 8px 8px 18px var(--shadow-light);
}

.grid-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 8px 8px 18px var(--shadow-light);
}

.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-body {
  padding: 12px;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

blockquote {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  color: var(--muted);
}

.ud-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Reveal helpers */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.show {
  opacity: 1;
  transform: none;
  transition:
    transform 600ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 600ms ease;
}

.reveal.delay {
  transition-delay: 120ms;
}

.reveal.delay-more {
  transition-delay: 220ms;
}

.reveal-clip {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 700ms ease,
    opacity 700ms ease;
}

.reveal-clip.show {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Buttons used on UrbanDiary page */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 6px 6px 14px var(--shadow-light);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-3px);
  transition: transform 180ms ease;
}

/* Subtle nav entrance state (animated by GSAP) */
nav {
  will-change: transform, opacity;
}

/* Article card hover motion (JS enhances) */
.article-card {
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 14px 14px 28px var(--shadow-light);
}

/* Responsive adjustments for UrbanDiary page */
@media (max-width: 1024px) {
  .ud-hero-inner {
    grid-template-columns: 1fr;
  }

  .ud-hero-visual img {
    height: 320px;
  }

  .card-grid,
  .grid-articles {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .ud-hero-copy h1 {
    font-size: 28px;
  }

  .ud-hero-visual img {
    height: 220px;
  }

  .card-grid,
  .grid-articles {
    grid-template-columns: 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 22px;
  }
}

/* simple blog-detail page styling */
.blog-detail {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-detail h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.blog-detail img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin: 20px 0;
}

.blog-detail p {
  line-height: 1.6;
  margin-top: 20px;
}

/* --- ICONS & MICRO-INTERACTIONS --- */

.action-btn svg {
  transition:
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    stroke 0.2s ease,
    fill 0.2s ease;
}

.action-btn:hover svg {
  transform: scale(1.2);
}

.like-btn.active svg {
  fill: #ff4757;
  stroke: #ff4757;
}

.save-btn.active svg {
  fill: #2f3542;
  stroke: #2f3542;
}

.dark .save-btn.active svg {
  fill: #f1f2f6;
  stroke: #f1f2f6;
}

.action-btn.active {
  box-shadow:
    inset 2px 2px 5px var(--shadow-light),
    inset -2px -2px 5px var(--shadow-dark);
}

/* Heart Popup Animation */
.heart-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 50px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
}

.heart-popup.animate {
  animation: heartPop 0.8s ease-out;
}

@keyframes heartPop {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }

  30% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -100%) scale(2);
    opacity: 0;
  }
}

/* Comment Slide Animation */
.comment-item {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .card {
    flex-direction: column-reverse;
  }

  .card img {
    width: 100%;
    height: 200px;
  }
}

.loading-spinner {
  text-align: center;
  padding: 30px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 2px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

.card .card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.5;
}

/* Blog Edit/Delete Action Buttons */
.btn-action {
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
}

.btn-edit {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.2);
}

.btn-edit:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Three-dot Menu */
.menu-options {
  position: absolute;
  top: 15px;
  right: 15px;
}

.menu-dot-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.menu-dot-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.dark .menu-dot-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  min-width: 130px;
  z-index: 100;
  overflow: hidden;
  padding: 8px 0;
}

.dark .menu-dropdown {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.menu-dropdown.show {
  display: flex;
  animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-dropdown button {
  background: none;
  border: none;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.menu-dropdown button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dark .menu-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-dropdown .delete-opt {
  color: #ef4444;
}

.menu-dropdown .delete-opt:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* AI Generate Button Styles */
.ai-magic-btn {
  background: linear-gradient(270deg, #ff007f, #7000ff, #00d4ff, #ff007f);
  background-size: 300% 300%;
  animation: cosmicGlow 6s ease infinite, pulseGlow 2s infinite alternate;
  color: white !important;
  border: none;
  border-radius: 8px;
  padding: 6px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(112, 0, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ai-magic-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.8),
      transparent);
  transform: skewX(-25deg);
  animation: shineWave 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: -1;
}

.ai-magic-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 0, 127, 0.6), 0 0 25px rgba(0, 212, 255, 0.5);
  letter-spacing: 1px;
}

.ai-magic-btn:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 4px 15px rgba(112, 0, 255, 0.5);
}

@keyframes cosmicGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {
  from {
    filter: brightness(1) drop-shadow(0 0 2px rgba(255, 0, 127, 0.2));
  }

  to {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
  }
}

@keyframes shineWave {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Dark and Light Mode Optimizations for AI Button */
.dark .ai-magic-btn {
  background: linear-gradient(270deg, #9d00ff, #ff007f, #00d4ff, #9d00ff);
  background-size: 300% 300%;
  box-shadow: 0 4px 20px rgba(157, 0, 255, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.dark .ai-magic-btn:hover {
  box-shadow: 0 12px 40px rgba(255, 0, 127, 0.8), 0 0 35px rgba(0, 212, 255, 0.7);
  filter: brightness(1.15);
}

.dark .ai-magic-btn::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
}

body:not(.dark) .ai-magic-btn {
  background: linear-gradient(270deg, #ec4899, #8b5cf6, #3b82f6, #ec4899);
  background-size: 300% 300%;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

body:not(.dark) .ai-magic-btn:hover {
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
}

/* --- BLOG CONTENT FORMATTING (Markdown Styles) --- */
.blog-post-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 40px;
  font-family: 'Inter', sans-serif;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  margin: 1.5rem 0 1rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.blog-post-content h1 {
  font-size: 2.2rem;
}

.blog-post-content h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.blog-post-content h3 {
  font-size: 1.5rem;
}

.blog-post-content p {
  margin-bottom: 1.25rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.5rem 1.5rem;
  background: var(--card);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

.blog-post-content code {
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  border: 1px solid var(--border);
}

.blog-post-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.blog-post-content strong {
  font-weight: 700;
  color: var(--text);
}

@media (min-width: 1px) {
  .nav-link-notif {
    position: relative;
  }

  .unread-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff4b2b;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
  }
}

.avatar-container {
  position: relative;
  border-radius: 50%;
  border: 3px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.avatar-container:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.avatar-overlay {
  opacity: 0.8;
  transition: all 0.3s ease;
  background: var(--primary) !important;
}

.avatar-container:hover .avatar-overlay {
  opacity: 1;
  transform: scale(1.1);
}

.sidebar-profile .avatar {
  margin: 0;
}

/* ================= USER PUBLIC PROFILE PAGE ================= */
.profile-page-container {
  max-width: 935px;
  margin: 40px auto;
  padding: 20px;
  display: block !important;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 20px 20px 40px;
  border-bottom: 1px solid var(--border);
}

.profile-image-container {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
}

.profile-image-container img,
.profile-image-container .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.profile-image-container .avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: var(--primary);
  color: white;
}

.profile-info {
  flex-grow: 1;
}

.profile-info h2 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  font-size: 16px;
}

.profile-stats span b {
  color: var(--text);
}

.profile-bio {
  font-size: 16px;
  line-height: 1.5;
}

.profile-bio .name {
  font-weight: 600;
  display: block;
}

.profile-blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 30px 0;
}

.user-blog-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
}

.user-blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.user-blog-card:hover img {
  filter: brightness(0.7);
}

.user-blog-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
}

/* ================= DESIGNER CREDITS ================= */
.designer-credits {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
  letter-spacing: 0.5px;
}

.designer-credits strong {
  color: var(--text);
  font-weight: 600;
}