@tailwind base;
@tailwind components;
@tailwind utilities;

/*
 * Instagram Downloader Pro - Complete UI Styles
 * Modern glassmorphism design with Instagram-inspired gradients
 * All colors use HSL format for consistency
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
@layer base {
  :root {
    /* Core Colors (HSL) */
    --background: 250 20% 98%;
    --foreground: 250 25% 10%;
    --card: 0 0% 100%;
    --card-foreground: 250 25% 10%;
    --muted: 250 15% 92%;
    --muted-foreground: 250 10% 45%;
    --border: 250 15% 88%;
    --input: 250 15% 88%;
    --ring: 330 80% 60%;

    /* Instagram Brand Colors */
    --primary: 330 80% 60%;
    --primary-foreground: 0 0% 100%;
    --secondary: 280 70% 50%;
    --secondary-foreground: 0 0% 100%;
    --accent: 35 95% 55%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --popover: 0 0% 100%;
    --popover-foreground: 250 25% 10%;

    /* Instagram Gradient */
    --gradient-instagram: linear-gradient(
      135deg,
      hsl(330, 80%, 60%) 0%,
      hsl(280, 70%, 50%) 50%,
      hsl(35, 95%, 55%) 100%
    );

    --gradient-instagram-hover: linear-gradient(
      135deg,
      hsl(330, 85%, 55%) 0%,
      hsl(280, 75%, 45%) 50%,
      hsl(35, 100%, 50%) 100%
    );

    /* Glass Effect */
    --gradient-glass: linear-gradient(
      135deg,
      hsla(0, 0%, 100%, 0.8) 0%,
      hsla(0, 0%, 100%, 0.4) 100%
    );

    /* Footer Gradient */
    --gradient-footer: linear-gradient(
      135deg,
      hsl(250, 25%, 10%) 0%,
      hsl(260, 30%, 15%) 100%
    );

    /* Shadows */
    --shadow-glow: 0 0 40px hsla(330, 80%, 60%, 0.3);
    --shadow-card: 0 8px 32px hsla(250, 25%, 10%, 0.08);
    --shadow-button: 0 4px 20px hsla(330, 80%, 60%, 0.4);
    --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.08);
    --shadow-medium: 0 8px 30px -4px hsla(250, 25%, 10%, 0.12);
    --shadow-large: 0 20px 50px -10px hsla(250, 25%, 10%, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --container-padding: 1rem;

    /* Border Radius */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Sidebar (keeping for compatibility) */
    --sidebar-background: 0 0% 100%;
    --sidebar-foreground: 250 25% 10%;
    --sidebar-primary: 330 80% 60%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 250 15% 92%;
    --sidebar-accent-foreground: 250 25% 10%;
    --sidebar-border: 250 15% 88%;
    --sidebar-ring: 330 80% 60%;
  }

  .dark {
    --background: 250 25% 6%;
    --foreground: 210 40% 98%;
    --card: 250 25% 8%;
    --card-foreground: 210 40% 98%;
    --popover: 250 25% 8%;
    --popover-foreground: 210 40% 98%;
    --primary: 330 80% 60%;
    --primary-foreground: 0 0% 100%;
    --secondary: 280 70% 50%;
    --secondary-foreground: 210 40% 98%;
    --muted: 250 20% 17%;
    --muted-foreground: 250 15% 65%;
    --accent: 35 95% 55%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;
    --border: 250 20% 17%;
    --input: 250 20% 17%;
    --ring: 330 80% 60%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    @apply bg-background text-foreground antialiased;
    font-family:
      "Poppins",
      "Inter",
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
    line-height: 1.6;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Poppins", "Inter", sans-serif;
  }
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.gradient-text {
  background: var(--gradient-instagram);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-badge-primary {
  background: hsla(330, 80%, 60%, 0.1);
  color: hsl(330, 80%, 60%);
}

.section-badge-accent {
  background: hsla(35, 95%, 55%, 0.1);
  color: hsl(35, 95%, 55%);
}

.section-badge-secondary {
  background: hsla(280, 70%, 50%, 0.1);
  color: hsl(280, 70%, 50%);
}

/* ========================================
   ICONS
   ======================================== */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sm {
  width: 0.75rem;
  height: 0.75rem;
}

.icon-check {
  width: 1rem;
  height: 1rem;
  color: hsl(142, 71%, 45%);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

.animate-gradient-shift {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-glass,
.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid hsl(var(--border));
  transition: all var(--transition-base);
}

.nav-glass.scrolled {
  box-shadow: var(--shadow-soft);
}

.navbar {
  padding: 0.75rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand,
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: hsl(var(--foreground)) !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.navbar-brand:hover,
.nav-brand:hover {
  opacity: 0.85;
}

.brand-icon,
.nav-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-instagram);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: var(--shadow-button);
}

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-suffix {
  font-weight: 700;
  color: hsl(var(--primary));
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: hsl(var(--muted-foreground)) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--foreground)) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-instagram);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: calc(100% - 2rem);
}

.btn-ig {
  background: var(--gradient-instagram);
  color: white !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-button);
}

.btn-ig:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Brand icon wrapper */
.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;

  background: linear-gradient(
    135deg,
    hsl(330, 80%, 60%) 0%,
    hsl(280, 70%, 50%) 50%,
    hsl(35, 95%, 55%) 100%
  );

  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.35);
  margin-right: 0.2rem;
}

/* SVG inside */
.brand-svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero,
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    hsla(330, 80%, 60%, 0.1),
    hsla(280, 70%, 50%, 0.05),
    hsla(35, 95%, 55%, 0.1)
  );
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-blob-1 {
  top: 8rem;
  left: 10%;
  width: 18rem;
  height: 18rem;
  background: hsla(330, 80%, 60%, 0.2);
  filter: blur(100px);
}

.hero-blob-2 {
  top: 12rem;
  right: 10%;
  width: 24rem;
  height: 24rem;
  background: hsla(280, 70%, 50%, 0.15);
  filter: blur(120px);
}

.hero-blob-3 {
  bottom: 5rem;
  left: 30%;
  width: 16rem;
  height: 16rem;
  background: hsla(35, 95%, 55%, 0.2);
  filter: blur(80px);
}

.hero-content {
  position: relative;
}

.hero-text-wrapper {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.badge-ig,
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid hsla(250, 15%, 88%, 0.5);
  box-shadow: var(--shadow-card);

  font-size: 0.875rem;
  font-weight: 600;
}

.trust-badge-icons {
  display: flex;
  margin-left: -0.25rem;
}

.trust-badge-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -0.25rem;
}

.trust-badge-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  color: inherit;
}

.trust-badge-icon:nth-child(1) {
  color: hsl(330, 80%, 60%);
}
.trust-badge-icon:nth-child(2) {
  color: hsl(35, 95%, 55%);
}
.trust-badge-icon:nth-child(3) {
  color: hsl(280, 70%, 50%);
}

.trust-badge-text {
  font-weight: 500;
}

.hero h1,
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;

  line-height: 1.1;
  background: var(--gradient-instagram);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: hsl(var(--muted-foreground));
  max-width: 42rem;

  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* ========================================
   DOWNLOAD CARD
   ======================================== */
.download-card {
  max-width: 48rem;

  background: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid hsla(250, 15%, 88%, 0.5);
  padding: 1.5rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .download-card {
    padding: 2rem;
  }
}

.media-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.media-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all var(--transition-base);
}

.media-btn:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.media-btn.active {
  background: var(--gradient-instagram);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-button);
}

.download-form .form-group,
.url-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  align-items: center;
}

@media (min-width: 640px) {
  .download-form .form-group,
  .url-form {
    flex-direction: row;
  }
}

.input-wrapper {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  border-radius: var(--radius-md);
}

.input-wrapper i,
.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

/* Focus Glow on Wrapper */
.input-wrapper:focus-within {
  box-shadow: 0 0 0 3px hsla(330, 80%, 60%, 0.15);
}

/* =========================
   INPUT FIELD
========================= */
.form-input {
  width: 100%;
  padding: 0.875rem 4rem 0.875rem 3rem;
  border-radius: var(--radius-md);

  border: 1.5px solid hsl(var(--border));
  background: #fff;

  font-size: 1rem;
  outline: none;
  position: relative;
  z-index: 1;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* Subtle hover depth */
.form-input:hover {
  border-color: hsla(330, 20%, 60%, 0.6);
}

/* Premium focus */
.form-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(330, 80%, 60%, 0.15);
  background: #fff;
}

/* =========================
   LEFT ICON
========================= */
.input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: hsl(var(--muted-foreground));
}

/* =========================
   CLEAR BUTTON
========================= */
.clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 0;
  bottom: 0;

  margin: auto 0; /* perfect vertical center */

  height: 32px;
  width: 32px;

  display: none;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  padding: 0;
}

.clear-btn {
  border-radius: 50%;
}

.clear-btn i {
  font-size: 18px;
  line-height: 1;
  display: block;
}

.clear-btn:focus,
.clear-btn:active,
.clear-btn:focus-visible {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.form-input:focus,
.url-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: none;
}

.form-input::placeholder,
.url-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-btn,
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--gradient-instagram);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.form-btn:hover,
.btn-download:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.form-btn:active,
.btn-download:active {
  transform: scale(0.98);
}

.helper-text,
.download-helper-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  text-align: center;
}

.download-result {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-md);
}

/* ========================================
   QUICK FEATURES
   ======================================== */
.quick-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .quick-features {
    gap: 1.5rem;
  }
}

.quick-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.quick-feature-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 4rem 0;
}

.section-light,
.section-muted {
  background: hsla(var(--muted) / 0.3);
}

.section-header {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  padding: 3rem 0;
  border-top: 1px solid hsla(var(--border) / 0.5);
  border-bottom: 1px solid hsla(var(--border) / 0.5);
  background: hsla(var(--muted) / 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: hsla(330, 80%, 60%, 0.1);
  margin-bottom: 0.75rem;
}

.stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-instagram);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.875rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   FEATURES
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item,
.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.feature-item:hover,
.feature-card:hover {
  transform: scale(1.02) translateY(-4px);
}

.feature-card-default {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

.feature-card-default:hover {
  border-color: hsla(330, 80%, 60%, 0.3);
  box-shadow: var(--shadow-card);
}

.feature-card-gradient {
  background: var(--gradient-instagram);
  color: white;
  box-shadow: var(--shadow-button);
}

.feature-icon,
.feature-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-instagram);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-button);
  transition: transform var(--transition-base);
}

.feature-item:hover .feature-icon,
.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.feature-icon-wrapper-gradient {
  background: hsla(0, 0%, 100%, 0.2);
}

.feature-item h6,
.feature-title {
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.feature-card-default .feature-title {
  color: hsl(var(--foreground));
}

.feature-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   CONTENT TYPES
   ======================================== */
.content-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .content-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .content-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.content-type-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: hsl(var(--card));
  border-radius: var(--radius-lg);
  border: 1px solid hsla(var(--border) / 0.5);
  transition: all var(--transition-base);
}

.content-type-card:hover {
  border-color: hsla(330, 80%, 60%, 0.3);
  box-shadow: var(--shadow-card);
}

.content-type-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--gradient-instagram);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.content-type-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.content-type-title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.content-type-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   STEP CARDS (How It Works)
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.step-card {
  position: relative;
  text-align: center;
  background: hsl(var(--card));
  border: 1px solid hsla(var(--border) / 0.5);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-soft);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: hsla(330, 80%, 60%, 0.3);
}

.step-card-inner {
  background: hsl(var(--card));
  border-radius: var(--radius-lg);
  border: 1px solid hsla(var(--border) / 0.5);
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.step-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: hsl(var(--primary));
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}

.step-icon,
.step-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-instagram);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-button);
  transition: transform var(--transition-base);
}

.step-card:hover .step-icon,
.step-card:hover .step-icon-wrapper {
  transform: scale(1.1);
}

.step-card h5,
.step-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.step-connector {
  display: none;
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%);
  color: hsla(330, 80%, 60%, 0.3);
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
  }
}

/* ========================================
   SEO ARTICLE CARD
   ======================================== */
.seo-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.seo-card h1 {
  color: hsl(var(--foreground));
  font-size: 1.75rem;
  font-weight: 700;
}

.seo-card h2 {
  color: hsl(var(--foreground));
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
}

.seo-card h3 {
  color: hsl(var(--foreground));
  font-size: 1.15rem;
  font-weight: 600;
}

.seo-card p,
.seo-card li {
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}

.seo-card ul,
.seo-card ol {
  padding-left: 1.5rem;
}

.seo-card li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .seo-card {
    padding: 1.5rem;
  }
}

/* ========================================
   BLOG PREVIEW SECTION (Homepage Cards)
======================================== */

/* ========================================
   BLOG PREVIEW SECTION
======================================== */

.blog-preview-card {
  background: hsl(var(--card));
  border: 1px solid hsla(var(--border) / 0.5);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-soft);
}

.blog-preview-card:hover {
  transform: translateY(-8px);
  border-color: hsla(330, 80%, 60%, 0.3);
  box-shadow: var(--shadow-card);
}

.blog-preview-card a {
  text-decoration: none;
  display: block;
  height: 100%;
}

.blog-preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
  transition: color var(--transition-fast);
}

.blog-preview-card:hover .blog-preview-title {
  background: var(--gradient-instagram);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-preview-desc {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ========================================
   SEO BLOG LINKS (Inside SEO Article)
======================================== */

.seo-blog-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: hsla(var(--muted) / 0.4);
  border: 1px solid hsla(var(--border) / 0.5);
  font-weight: 500;
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: all var(--transition-fast);
}

.seo-blog-link:hover {
  background: hsla(330, 80%, 60%, 0.08);
  border-color: hsla(330, 80%, 60%, 0.3);
  transform: translateX(6px);
}

/* ========================================
   INLINE CONTEXTUAL LINKS
======================================== */

.inline-link {
  color: hsl(var(--primary));
  font-weight: 300;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.inline-link:hover {
  text-decoration: underline;
}

/* ========================================
   LEARN MORE SECTION
======================================== */

.learn-more-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.learn-more-section p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

.learn-more-section a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: none;
}

.learn-more-section a:hover {
  text-decoration: underline;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-card,
.faq-item {
  background: hsl(var(--card)) !important;
  border: 1px solid hsla(var(--border) / 0.5) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: none !important;
}

.faq-card .card-header {
  background: transparent;
  border: none;
  padding: 0;
}

.faq-card .btn-link,
.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  transition: background-color var(--transition-fast);
}

.faq-card .btn-link:hover,
.faq-trigger:hover {
  color: hsl(var(--primary));
  background: hsla(var(--muted) / 0.5);
}

.faq-card .btn-link::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform var(--transition-base);
}

.faq-card .btn-link[aria-expanded="true"]::after {
  content: "−";
}

.faq-card .card-body,
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.faq-question {
  font-weight: 600;
  padding-right: 1rem;
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-chevron-open {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
}

.faq-answer.open {
  display: block;
  animation: fade-in 0.3s ease-out;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gradient-instagram);
  padding: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 3rem;
  }
}

.cta-blob-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 50%;
  filter: blur(48px);
}

.cta-blob-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 50%;
  filter: blur(32px);
}

.cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cta-content {
    flex-direction: row;
  }
}

.cta-icon-wrapper {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-lg);
  background: hsla(0, 0%, 100%, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.cta-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-text {
    text-align: left;
  }
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 1.875rem;
  }
}

.cta-description {
  color: hsla(0, 0%, 100%, 0.8);
}

.cta-button {
  flex-shrink: 0;
  padding: 1rem 2rem;
  background: white;
  color: hsl(var(--primary));
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.cta-button:hover {
  background: hsla(0, 0%, 100%, 0.9);
}

/* ========================================
   AD CONTAINER
   ======================================== */
.ad-container {
  padding: 1.5rem 1rem;
  background: hsl(var(--background));
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-container > div {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 2rem 0;
  background: var(--gradient-footer);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand-section {
  max-width: 24rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
}

.footer-brand:hover {
  text-decoration: none;
  color: white;
}


.footer-brand-icon,
.footer .brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--gradient-instagram);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.footer strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
}

.footer-description {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: hsla(0, 0%, 100%, 0.05);
  border-radius: var(--radius-md);
}

.security-badge-icon {
  width: 2rem;
  height: 2rem;
  color: hsl(142, 71%, 45%);
}

.security-badge-title {
  font-size: 0.875rem;
  font-weight: 500;
}

.security-badge-subtitle {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.6);
}

.footer-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-link {
  color: hsla(0, 0%, 100%, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover,
.footer-link:hover {
  color: white;
  transform: translateX(3px);
}

.footer-text {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
}

.security-box {
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.security-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-instagram);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.security-box .text {
  font-size: 0.9rem;
  color: hsla(0, 0%, 100%, 0.8);
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-meta {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-meta div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.875rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
  text-align: center;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal-link {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.6);
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero,
  .hero-section {
    padding: 7rem 0 4rem;
    min-height: auto;
  }

  .download-card {
    padding: 1.5rem;
  }

  .form-btn,
  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .security-box {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    justify-content: center !important;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-card);
  }

  .nav-item {
    margin: 0.25rem 0;
  }

  .btn-ig {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ========================================
   BREADCRUMB NAVIGATION
   ======================================== */
.breadcrumb-nav {
  padding: 1rem 0;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: hsl(var(--muted-foreground));
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: hsl(var(--border));
}

.breadcrumb a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: hsl(var(--primary));
}

.breadcrumb li:last-child {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* Fix dropdown positioning */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}


/* Breadcrumb container */
.breadcrumb-nav {
    margin-top: 85px; /* prevents fixed navbar overlap */
    padding: 10px 0;
    font-size: 12px;
}

/* layout */
.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* links */
.breadcrumb-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: #0d6efd;
}

/* separator */
.breadcrumb-sep {
    margin: 0 8px;
    color: #999;
}

/* current page */
.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* Mobile dropdown alignment fix */
@media (max-width: 991px) {
  .navbar-nav .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-nav .dropdown-toggle::after {
    margin-left: 0;
  }
}

@media (max-width: 991px) {
  .nav-link::after {
    display: none;
  }
}

/* ========================================
   GLASS CARD COMPONENT
   ======================================== */
.glass-card {
  background: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid hsla(var(--border) / 0.5);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.glass-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: hsla(330, 80%, 60%, 0.2);
}

@media (min-width: 768px) {
  .glass-card {
    padding: 2rem;
  }
}

/* ========================================
   BACKGROUND PATTERNS
   ======================================== */
.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(var(--border) / 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--border) / 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.bg-gradient-subtle {
  background: linear-gradient(
    180deg,
    hsla(330, 80%, 60%, 0.03) 0%,
    hsla(280, 70%, 50%, 0.03) 50%,
    hsla(35, 95%, 55%, 0.03) 100%
  );
}

.bg-subtle {
  background: hsla(var(--muted) / 0.3);
}

/* ========================================
   LANDING PAGE BASE
   ======================================== */
.landing-page {
  padding-top: 4.5rem; /* Account for fixed nav */
  min-height: 100vh;
}

/* ========================================
   BLOG PAGE STYLES
   ======================================== */
.blog-page .hero-blog {
  position: relative;
  padding: 4rem 0 3rem;
  background: linear-gradient(
    135deg,
    hsla(330, 80%, 60%, 0.05) 0%,
    hsla(280, 70%, 50%, 0.03) 50%,
    hsla(35, 95%, 55%, 0.05) 100%
  );
}

.blog-page .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.blog-page .hero-title i {
  margin-right: 0.5rem;
}

.blog-page .hero-subtitle {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Blog Search */
.blog-search {
  max-width: 500px;
  margin: 0 auto;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper i {
  position: absolute;
  left: 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: var(--radius-full);
  border: 2px solid hsl(var(--border));
  background: hsl(var(--card));
  font-size: 1rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsla(330, 80%, 60%, 0.15);
}

/* Category Pills */
.category-pills-section {
  padding: 1.5rem 0;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 4rem;
  z-index: 40;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.category-pill:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  background: hsla(330, 80%, 60%, 0.05);
}

.category-pill.active {
  background: var(--gradient-instagram);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-button);
}

/* Blog Content Section */
.blog-content-section {
  padding: 3rem 0;
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: hsla(330, 80%, 60%, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid hsla(330, 80%, 60%, 0.1);
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: hsl(var(--primary));
  color: white;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.clear-filters {
  margin-left: auto;
  font-size: 0.875rem;
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.clear-filters:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Articles Count */
.articles-count {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* No Articles State */
.no-articles {
  text-align: center;
  padding: 4rem 2rem;
  background: hsl(var(--card));
  border-radius: var(--radius-lg);
  border: 2px dashed hsl(var(--border));
}

.no-articles i {
  font-size: 3rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  display: block;
}

.no-articles p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* Articles Grid */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Article Card */
.article-card {
  position: relative;
  overflow: hidden;
}

.article-card-header {
  margin-bottom: 1rem;
}

.article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: hsla(330, 80%, 60%, 0.1);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
}

.article-title-link {
  text-decoration: none;
  display: block;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.article-title-link:hover .article-title {
  color: hsl(var(--primary));
}

.article-excerpt {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;

  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.meta-item i {
  font-size: 0.75rem;
  color: hsl(var(--primary));
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.read-more-link:hover {
  gap: 0.75rem;
}

.read-more-link i {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.read-more-link:hover i {
  transform: translateX(4px);
}

/* ========================================
   BLOG SIDEBAR
   ======================================== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 8rem;
}

.sidebar-widget {
  padding: 1.5rem;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid hsl(var(--border));
}

.widget-title i {
  color: hsl(var(--primary));
}

/* Category List Widget */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid hsla(var(--border) / 0.5);
  transition: all var(--transition-fast);
}

.category-list li:last-child a {
  border-bottom: none;
}

.category-list a:hover {
  color: hsl(var(--primary));
  padding-left: 0.5rem;
}

.category-list .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* Popular Articles Widget */
.popular-articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-articles-list li {
  margin-bottom: 0;
}

.popular-articles-list a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
  text-decoration: none;
  border-bottom: 1px solid hsla(var(--border) / 0.5);
  transition: all var(--transition-fast);
}

.popular-articles-list li:last-child a {
  border-bottom: none;
}

.popular-articles-list a:hover {
  padding-left: 0.5rem;
}

.pop-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.popular-articles-list a:hover .pop-title {
  color: hsl(var(--primary));
}

.pop-time {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Tags Cloud Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tag-badge:hover {
  background: hsl(var(--primary));
  color: white;
  transform: translateY(-2px);
}

/* ========================================
   ARTICLE PAGE STYLES
   ======================================== */
.article-page .article-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(
    180deg,
    hsla(330, 80%, 60%, 0.05) 0%,
    hsl(var(--background)) 100%
  );
}

.article-category-link {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--gradient-instagram);
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: opacity var(--transition-fast);
}

.article-category-link:hover {
  opacity: 0.9;
  color: white;
}

.article-main-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.article-lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 2rem;
}

.article-meta-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--gradient-instagram);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.author-name {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
}

.publish-date {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.updated-date {
  font-style: italic;
}

.read-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 1rem;
  background: hsl(var(--muted));
  border-radius: var(--radius-full);
}

.read-time i {
  color: hsl(var(--primary));
}

/* Article Body */
.article-body-wrapper {
  padding: 3rem 0;
}

.article-content.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: hsl(var(--foreground));
}

.article-content.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsla(330, 80%, 60%, 0.2);
}

.article-content.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 2rem 0 0.75rem;
}

.article-content.prose p {
  margin-bottom: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.article-content.prose ul,
.article-content.prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.article-content.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.article-content.prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content.prose a:hover {
  text-decoration: none;
}

.article-content.prose strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.article-content.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: hsla(330, 80%, 60%, 0.05);
  border-left: 4px solid hsl(var(--primary));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.tags-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.tags-label i {
  color: hsl(var(--primary));
}

.tag-link {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tag-link:hover {
  background: hsl(var(--primary));
  color: white;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: hsl(var(--muted));
  border-radius: var(--radius-lg);
}

.share-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-twitter {
  background: hsl(203, 89%, 53%);
}

.share-facebook {
  background: hsl(220, 46%, 48%);
}

.share-linkedin {
  background: hsl(201, 100%, 35%);
}

.share-whatsapp {
  background: hsl(142, 70%, 49%);
}

/* Related Articles Section */
.related-articles-section {
  padding: 4rem 0;
  background: hsl(var(--muted));
}

.related-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-card .article-title {
  font-size: 1.125rem;
  flex-grow: 1;
}

.related-card .article-excerpt {
  font-size: 0.875rem;
}

/* ========================================
   MISSING STYLES FOR ARTICLE PAGE
   ======================================== */

/* Section Title (used in Related Articles) */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

.section-title i {
  color: hsl(var(--primary));
  margin-right: 0.5rem;
}

/* Button Outline (Back to All Articles) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: white;
  box-shadow: var(--shadow-button);
}

/* Ad Containers */
.ad-container {
  max-width: var(--container-width);
  margin: 2rem auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.ad-leaderboard {
  min-height: 90px;
}

.ad-rectangle {
  min-height: 250px;
}

/* Blog Article wrapper (if needed) */
.blog-article {
  position: relative;
}

/* Responsive adjustments for article page */
@media (max-width: 767px) {
  .article-page .article-header {
    padding: 2.5rem 0 2rem;
  }

  .article-meta-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-buttons .share-btn {
    margin-bottom: 0;
  }

  .related-articles-section {
    padding: 2.5rem 0;
  }
}

/* ========================================
   ARTICLE CONTENT IMAGES
   ======================================== */
.article-content.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */
.article-toc {
  margin: 1.5rem 0;
  padding: 1rem 1rem;
  background: hsl(var(--muted));
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
}

.article-toc strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc li {
  margin-bottom: 0.5rem;
}

.article-toc a {
  color: hsl(var(--primary));
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.article-toc a:hover {
  text-decoration: underline;
}

/* ========================================
   ARTICLE CTA BOX
   ======================================== */
.article-cta {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    hsla(330, 80%, 60%, 0.08) 0%,
    hsla(280, 70%, 50%, 0.08) 100%
  );
  border: 1px solid hsla(330, 80%, 60%, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta p {
  font-size: 1.0625rem;
  color: hsl(var(--foreground));
  margin-bottom: 1.25rem;
}

/* ========================================
   PRIMARY BUTTON
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--gradient-instagram);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--gradient-instagram-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
  color: white;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid hsla(330, 80%, 60%, 0.2);
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.faq-item {
  padding: 1.25rem 1.5rem;
  background: hsl(var(--muted));
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: hsla(330, 80%, 60%, 0.3);
}

.faq-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 0;
}
