/* ============================================
   SCASH — Scam Shield | Design System & Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette — color psychology driven */
  --navy: #0B1D3A;
  --navy-light: #132D5E;
  --navy-dark: #060F1F;
  --emerald: #00C896;
  --emerald-dark: #00A67A;
  --coral: #FF4D4D;
  --coral-dark: #E63939;
  --off-white: #F5F6FA;
  --white: #FFFFFF;
  --gray-100: #E8EAF0;
  --gray-200: #D0D3DC;
  --gray-400: #9CA3AF;
  --gray-600: #6B7280;
  --gray-800: #374151;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows & Radii */
  --shadow-sm: 0 1px 3px rgba(11, 29, 58, .08);
  --shadow-md: 0 4px 12px rgba(11, 29, 58, .10);
  --shadow-lg: 0 12px 32px rgba(11, 29, 58, .14);
  --shadow-glow: 0 0 24px rgba(0, 200, 150, .18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Global Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--off-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

a {
  text-decoration: none;
  transition: color .25s var(--ease-out);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Utility Classes ---------- */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: .5rem;
  position: relative;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.accent-bar {
  display: inline-block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--coral));
  margin-bottom: 1rem;
}

/* ============================================
   1. NAVIGATION BAR
   ============================================ */
.navbar-scash {
  background: var(--navy);
  padding: .85rem 0;
  backdrop-filter: blur(12px);
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out);
  z-index: 1050;
}

.navbar-scash.scrolled {
  background: rgba(11, 29, 58, .97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.navbar-brand-scash {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--white) !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.navbar-brand-scash .brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--emerald), #00E6A8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.navbar-scash .nav-link {
  color: rgba(255, 255, 255, .78) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: color .25s, background .25s;
}

.navbar-scash .nav-link:hover,
.navbar-scash .nav-link:focus {
  color: var(--white) !important;
  background: rgba(255, 255, 255, .08);
}

.btn-report-fraud {
  background: var(--coral);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(255, 77, 77, .3);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}

.btn-report-fraud:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 77, .45);
  background: var(--coral-dark);
  color: var(--white) !important;
}

/* Mobile toggler */
.navbar-toggler {
  border-color: rgba(255, 255, 255, .2);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ============================================
   2. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(0, 200, 150, .12), transparent),
    radial-gradient(ellipse 500px 350px at 80% 20%, rgba(255, 77, 77, .08), transparent);
  pointer-events: none;
}

/* Floating grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--emerald), #00E6A8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .72);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Search bar */
.search-wrapper {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 8px;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: border-color .3s, box-shadow .3s;
  overflow: hidden;
}

.search-wrapper:focus-within {
  border-color: var(--emerald);
  box-shadow: var(--shadow-glow);
}

.search-wrapper select {
  background: rgba(255, 255, 255, .1);
  border: none;
  color: var(--white);
  font-size: .9rem;
  font-family: var(--font-body);
  padding: .65rem 1rem;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  flex: 0 0 160px;    /* Fixed width — won't grow or shrink */
  width: 160px;
  appearance: auto;
}

.search-wrapper select option {
  color: var(--navy);
  background: var(--white);
}

.search-wrapper input {
  flex: 1 1 0%;        /* Takes all remaining space */
  min-width: 0;        /* Allows shrinking below content size */
  background: transparent;
  border: none;
  color: var(--white);
  font-size: .95rem;
  padding: .65rem .8rem;
  outline: none;
}

.search-wrapper input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.btn-verify {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: var(--white);
  font-weight: 700;
  border: none;
  padding: .65rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s, opacity .2s;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.btn-verify--loading {
  opacity: .7;
  cursor: wait;
}

.btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 200, 150, .35);
}

/* Hero trust badges */
.hero-badges {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-badges .badge-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
}

.hero-badges .badge-item i {
  color: var(--emerald);
  font-size: 1rem;
}

/* ============================================
   3. RECENT FRAUD ALERTS
   ============================================ */
.fraud-alerts {
  background: var(--off-white);
}

.alert-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.alert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), #FF8C42);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}

.alert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 77, 77, .2);
}

.alert-card:hover::before {
  transform: scaleX(1);
}

.alert-card .card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .85rem;
}

.alert-card .user-info {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.alert-card .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.alert-card .username {
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
}

.alert-card .time-posted {
  font-size: .78rem;
  color: var(--gray-400);
}

.badge-scam {
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 50px;
  background: rgba(255, 77, 77, .1);
  color: var(--coral);
  white-space: nowrap;
}

.alert-card .account-info {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin: .75rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--gray-800);
}

.alert-card .account-info i {
  color: var(--coral);
}

.alert-card .trust-score {
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trust-score-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  margin: 0 .75rem;
  overflow: hidden;
}

.trust-score-bar .fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--emerald), #00E6A8);
  transition: width .6s var(--ease-out);
}

.trust-score .label {
  font-size: .78rem;
  color: var(--gray-600);
  font-weight: 500;
}

.trust-score .value {
  font-size: .85rem;
  font-weight: 700;
  color: var(--emerald-dark);
  white-space: nowrap;
}

/* ============================================
   4. HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--white);
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform .35s var(--ease-out);
}

.step-card:hover .step-icon {
  transform: scale(1.1) rotate(-4deg);
}

.step-icon.step-1 {
  background: linear-gradient(135deg, rgba(11, 29, 58, .08), rgba(11, 29, 58, .04));
  color: var(--navy);
}

.step-icon.step-2 {
  background: linear-gradient(135deg, rgba(0, 200, 150, .12), rgba(0, 200, 150, .05));
  color: var(--emerald);
}

.step-icon.step-3 {
  background: linear-gradient(135deg, rgba(255, 77, 77, .1), rgba(255, 77, 77, .04));
  color: var(--coral);
}

.step-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.step-card h5 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.step-card p {
  font-size: .9rem;
  color: var(--gray-600);
  margin: 0;
}

/* Connector arrows (desktop) */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-200);
  font-size: 1.4rem;
}

@media (max-width: 767.98px) {
  .step-connector {
    display: none;
  }
}

/* ============================================
   5. FRAUD BLOG & NEWS
   ============================================ */
.blog-section {
  background: var(--off-white);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card .card-img-wrapper {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.blog-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.blog-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.blog-card .card-img-wrapper .blog-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

.blog-badge.trending {
  background: rgba(255, 77, 77, .9);
  color: var(--white);
}

.blog-badge.tips {
  background: rgba(0, 200, 150, .9);
  color: var(--white);
}

.blog-badge.update {
  background: rgba(11, 29, 58, .85);
  color: var(--white);
}

.blog-card .card-body-blog {
  padding: 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .card-body-blog h5 {
  font-size: 1.05rem;
  margin-bottom: .55rem;
  line-height: 1.35;
}

.blog-card .card-body-blog p {
  font-size: .88rem;
  color: var(--gray-600);
  flex: 1;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  transition: color .25s, gap .25s;
}

.blog-card .read-more:hover {
  color: var(--emerald);
  gap: .6rem;
}

/* Blog placeholder images (SVG-based) */
.blog-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, .25);
}

/* ============================================
   6. FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .6);
  padding: 3rem 0 1.5rem;
  font-size: .88rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.footer p {
  max-width: 380px;
}

.footer h6 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, .55);
  font-size: .86rem;
  transition: color .2s, padding-left .2s;
}

.footer-links a:hover {
  color: var(--emerald);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-disclaimer {
  font-size: .78rem;
  color: rgba(255, 255, 255, .35);
  max-width: 500px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .5);
  margin-left: .45rem;
  transition: background .25s, color .25s, transform .25s;
}

.footer-social a:hover {
  background: var(--emerald);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse animation on CTA */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: .5;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.btn-verify::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--emerald);
  animation: pulse-ring 2.5s var(--ease-out) infinite;
  pointer-events: none;
}

.btn-verify {
  position: relative;
  overflow: visible;
}

/* Stats counter animation */
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero {
    padding: 90px 0 80px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 48px 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .search-wrapper {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 10px;
  }

  .search-wrapper select {
    flex: none;
    width: 100%;
    min-width: 100%;
  }

  .search-wrapper input {
    flex: none;
    width: 100%;
    padding: .65rem 1rem;
    background: rgba(255, 255, 255, .05);
    border-radius: var(--radius-md);
  }

  .search-wrapper .btn-verify {
    width: 100%;
    justify-content: center;
  }

  .hero-badges {
    gap: 1rem;
  }

  .section-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p.lead {
    font-size: .98rem;
  }
}

/* ---------- Custom Pagination Styling ---------- */
.pagination {
  margin-bottom: 0;
  gap: 4px;
}

.pagination .page-link {
  color: var(--navy);
  border-color: var(--gray-100);
  border-radius: var(--radius-sm) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  transition: all 0.2s var(--ease-out);
  box-shadow: none !important;
}

.pagination .page-link:hover {
  background-color: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}

.pagination .page-item.active .page-link {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
  color: var(--white) !important;
}

.pagination .page-item.disabled .page-link {
  color: var(--gray-400);
  border-color: var(--gray-100);
  background-color: var(--white);
}

.pagination .page-link i {
  font-size: 0.75rem;
  vertical-align: middle;
}