/* ============================================================
   AdWorld Argentina – main.css
   Bootstrap 5 + custom styles
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ---------- Typography helpers ---------- */
.text-gray-300 { color: #d1d5db !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-purple-400 { color: #c084fc !important; }
.text-purple-300 { color: #d8b4fe !important; }
.text-pink-400   { color: #f472b6 !important; }
.text-orange-400 { color: #fb923c !important; }
.text-green-400  { color: #4ade80 !important; }

/* ---------- Gradient text ---------- */
.text-gradient-1 {
  background: linear-gradient(90deg, #a78bfa, #ec4899, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-2 {
  background: linear-gradient(90deg, #60a5fa, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-white {
  background: linear-gradient(90deg, #fff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover gradient text effect */
.hover-gradient:hover {
  background: linear-gradient(90deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Borders ---------- */
.border-white-10 { border-color: rgba(255,255,255,.10) !important; }
.border-white-20 { border-color: rgba(255,255,255,.20) !important; }

/* ---------- Navbar ---------- */
#site-header {
  background: rgba(0,0,0,.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: background .3s;
}
#site-header.scrolled {
  background: rgba(0,0,0,.95);
}
.navbar-nav .nav-link {
  color: #d1d5db;
  font-size: .95rem;
  transition: color .2s;
}
.navbar-nav .nav-link:hover {
  color: #fff;
}

/* ---------- Gradient pill button ---------- */
.btn-gradient-pill {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  color: #fff;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  transition: box-shadow .3s, opacity .2s;
}
.btn-gradient-pill:hover {
  box-shadow: 0 0 20px rgba(168,85,247,.55);
  opacity: .92;
  color: #fff;
}

/* Outline glow button */
.btn-glow-outline {
  position: relative;
  background: #000;
  color: #fff;
  border: 1px solid rgba(168,85,247,.5);
  border-radius: 9999px;
  font-weight: 600;
  transition: border-color .3s, box-shadow .3s;
  z-index: 1;
}
.btn-glow-outline::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 9999px;
  filter: blur(6px);
  opacity: .45;
  z-index: -1;
  transition: opacity .3s;
}
.btn-glow-outline:hover {
  border-color: #a855f7;
  color: #fff;
}
.btn-glow-outline:hover::before { opacity: .75; }

/* ---------- Dark card ---------- */
.card-dark {
  background: linear-gradient(135deg, #111827, #000);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 1rem;
  transition: border-color .3s;
}
.card-dark:hover {
  border-color: rgba(168,85,247,.5);
}

/* ---------- Glow card wrapper ---------- */
.glow-wrap {
  position: relative;
}
.glow-wrap .glow-bg {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  filter: blur(8px);
  opacity: .2;
  transition: opacity .3s;
  z-index: 0;
}
.glow-wrap:hover .glow-bg { opacity: .4; }
.glow-wrap .card-dark { position: relative; z-index: 1; }

/* Glow colors */
.glow-purple { background: linear-gradient(90deg, #a855f7, #ec4899); }
.glow-blue   { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.glow-orange { background: linear-gradient(90deg, #f97316, #ef4444); }
.glow-green  { background: linear-gradient(90deg, #22c55e, #10b981); }
.glow-pink   { background: linear-gradient(90deg, #a855f7, #ec4899); }

/* ---------- HERO ---------- */
#hero {
  padding-top: 128px;
  padding-bottom: 80px;
  background: #000;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(168,85,247,.2), rgba(236,72,153,.2));
  border: 1px solid rgba(168,85,247,.3);
  color: #d8b4fe;
  font-size: .875rem;
}

/* Breaking news – main card */
.hero-main-card {
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
}

/* ---------- NEWS IMAGE card ---------- */
.news-img-wrap {
  position: relative;
  border-radius: .75rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111827;
}
.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-img-wrap:hover img { transform: scale(1.1); }
.news-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.40) 50%, transparent 100%);
}
.news-img-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .25rem .75rem;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(6px);
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2);
  font-size: .8rem;
  color: #fff;
}

/* ---------- Category section ---------- */
#categories {
  background: linear-gradient(to bottom, #000, #030712);
}

/* Category icon badge */
.cat-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}
.cat-icon-badge.bg-blue   { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.cat-icon-badge.bg-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.cat-icon-badge.bg-orange { background: linear-gradient(135deg, #f97316, #ef4444); }
.cat-icon-badge.bg-green  { background: linear-gradient(135deg, #22c55e, #10b981); }

/* Category dot bullet */
.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .45rem;
}
.cat-dot.blue   { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.cat-dot.purple { background: linear-gradient(90deg, #a855f7, #ec4899); }
.cat-dot.orange { background: linear-gradient(90deg, #f97316, #ef4444); }
.cat-dot.green  { background: linear-gradient(90deg, #22c55e, #10b981); }

/* Category "Ver todo" link */
.cat-ver-todo {
  font-size: .875rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity .2s;
}
.cat-ver-todo:hover { opacity: .75; }
.cat-ver-todo.blue   { background: linear-gradient(90deg, #3b82f6, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-ver-todo.purple { background: linear-gradient(90deg, #a855f7, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-ver-todo.orange { background: linear-gradient(90deg, #f97316, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-ver-todo.green  { background: linear-gradient(90deg, #22c55e, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---------- Newsletter ---------- */
#newsletter-section {
  background: #000;
}
.newsletter-card {
  position: relative;
  background: linear-gradient(135deg, #111827, #000);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1.5rem;
  padding: 3rem;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #f97316);
  border-radius: 1.5rem;
  filter: blur(12px);
  opacity: .28;
  z-index: -1;
}

.newsletter-mail-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  margin: 0 auto;
}

/* Feature icon boxes */
.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}
.feature-icon-box.purple {
  background: rgba(168,85,247,.2);
  border: 1px solid rgba(168,85,247,.3);
  color: #c084fc;
}
.feature-icon-box.pink {
  background: rgba(236,72,153,.2);
  border: 1px solid rgba(236,72,153,.3);
  color: #f472b6;
}
.feature-icon-box.orange {
  background: rgba(249,115,22,.2);
  border: 1px solid rgba(249,115,22,.3);
  color: #fb923c;
}

/* Newsletter form */
.newsletter-input {
  flex: 1;
  padding: .875rem 1.5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9999px;
  color: #fff;
  outline: none;
  transition: border-color .2s;
  font-size: .95rem;
}
.newsletter-input::placeholder { color: #6b7280; }
.newsletter-input:focus { border-color: #a855f7; }

/* ---------- Success message ---------- */
.subscribe-success {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.5rem;
  background: rgba(34,197,94,.2);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 9999px;
  color: #4ade80;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-links li a {
  color: #9ca3af;
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer-links li a:hover { color: #c084fc; }

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: .5rem;
  color: #9ca3af;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.social-icon:hover {
  color: #fff;
  border-color: #a855f7;
}

.hover-text-white:hover { color: #d1d5db !important; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
  #hero { padding-top: 100px; }
  .newsletter-card { padding: 2rem 1.25rem; }
}
