/**
 * assets/css/bot-discord.css
 * 029 Project — Stili pagina 029BotLaZone
 * Developed by 029 Project - Code is Art
 */

/* ============================================================
   TOKEN COLORE — Discord Blue
   ============================================================ */
:root {
  --discord-blue: #5865F2;
  --discord-blue-glow: rgba(88, 101, 242, 0.35);
  --discord-blue-dim: rgba(88, 101, 242, 0.12);
}

.text--discord { color: var(--discord-blue); }
.tag--discord {
  background: var(--discord-blue-dim);
  color: var(--discord-blue);
  border: 1px solid rgba(88,101,242,0.3);
}

/* ============================================================
   HERO — BOT DISCORD
   ============================================================ */
.bot-hero {
  position: relative;
  padding: calc(var(--space-xl) * 2) 0 var(--space-xl);
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Sfondo griglia + glow */
.bot-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bot-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88,101,242,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,101,242,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.bot-hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--discord-blue-glow) 0%, transparent 70%);
  filter: blur(60px);
  animation: botGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes botGlowPulse {
  from { opacity: 0.5; transform: translateX(-50%) scale(1); }
  to   { opacity: 0.8; transform: translateX(-50%) scale(1.08); }
}

.bot-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Breadcrumb */
.bot-breadcrumb {
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted-gray);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.bot-breadcrumb a {
  color: var(--muted-gray);
  text-decoration: none;
  transition: color .2s;
}
.bot-breadcrumb a:hover { color: var(--discord-blue); }

/* Label file */
.bot-hero__file-label {
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--discord-blue);
  opacity: .7;
  animation: blink-cursor 1.2s step-end infinite;
}

/* Icona Discord */
.bot-hero__icon {
  width: 72px;
  height: 72px;
  background: var(--discord-blue-dim);
  border: 1px solid rgba(88,101,242,0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--discord-blue);
  box-shadow: 0 0 32px var(--discord-blue-glow);
}
.bot-hero__icon svg { width: 36px; height: 36px; }

/* Titolo hero */
.bot-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--off-white);
  margin: 0;
}
.bot-hero__title em {
  font-style: normal;
  color: var(--discord-blue);
  text-shadow: 0 0 40px var(--discord-blue-glow);
}

.bot-hero__tagline {
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--discord-blue);
  margin: 0;
}

.bot-hero__desc {
  max-width: 520px;
  color: var(--off-white);
  opacity: .75;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Badge status */
.bot-hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-sm);
}

.bot-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.bot-badge--active {
  background: rgba(57,224,112,0.12);
  color: #39E070;
  border: 1px solid rgba(57,224,112,0.3);
  animation: badgePulse 2s ease-in-out infinite;
}
.bot-badge--platform {
  background: var(--discord-blue-dim);
  color: var(--discord-blue);
  border: 1px solid rgba(88,101,242,0.3);
}
.bot-badge--dev {
  background: rgba(224,56,32,0.10);
  color: var(--primary-red);
  border: 1px solid rgba(224,56,32,0.25);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57,224,112,0); }
  50%       { box-shadow: 0 0 8px 2px rgba(57,224,112,0.2); }
}


/* ============================================================
   SEZIONE PREVIEW PANNELLO
   ============================================================ */
.bot-preview {
  padding: var(--space-xl) 0;
}

.bot-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.bot-preview__card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(88,101,242,0.04);
  border: 1px solid rgba(88,101,242,0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}

.bot-preview__card:hover {
  border-color: rgba(88,101,242,0.35);
  box-shadow: 0 8px 32px rgba(88,101,242,0.12);
}

.bot-preview__card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.bot-preview__card figcaption {
  padding: 10px 16px 14px;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--muted-gray);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .bot-preview__grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   SEZIONE FEATURES — GRIGLIA CARD
   ============================================================ */
.bot-features {
  padding: var(--space-xl) 0;
}

.bot-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Card singola */
.bot-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(88,101,242,0.15);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.bot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--discord-blue), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.bot-card:hover {
  border-color: rgba(88,101,242,0.4);
  box-shadow: 0 8px 32px rgba(88,101,242,0.12);
  transform: translateY(-4px);
}
.bot-card:hover::before { opacity: 1; }

/* Icona card */
.bot-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--discord-blue-dim);
  border: 1px solid rgba(88,101,242,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--discord-blue);
  margin-top: 2px;
}
.bot-card__icon svg { width: 22px; height: 22px; }

.bot-card__content { flex: 1; }

.bot-card__label {
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--discord-blue);
  opacity: .6;
  display: block;
  margin-bottom: 6px;
}

.bot-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--off-white);
  margin: 0 0 8px;
}

.bot-card__desc {
  font-size: .88rem;
  color: var(--muted-gray);
  line-height: 1.6;
  margin: 0 0 12px;
}
.bot-card__desc strong {
  color: var(--off-white);
  font-weight: 600;
}

/* Tag interni alle card */
.bot-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bot-tag {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(88,101,242,0.10);
  color: var(--discord-blue);
  border: 1px solid rgba(88,101,242,0.2);
  text-transform: uppercase;
}

.bot-tag--danger {
  background: rgba(224,56,32,0.10);
  color: var(--primary-red);
  border-color: rgba(224,56,32,0.2);
}


/* ============================================================
   SEZIONE FLUSSO SANZIONI — TIMELINE
   ============================================================ */
.bot-flow {
  padding: var(--space-xl) 0;
  background: rgba(88,101,242,0.03);
  border-top: 1px solid rgba(88,101,242,0.08);
  border-bottom: 1px solid rgba(88,101,242,0.08);
}

.bot-flow__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-xl);
  max-width: 700px;
  margin-inline: auto;
  position: relative;
}

/* Linea verticale connettore */
.bot-flow__timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--discord-blue), var(--primary-red));
  opacity: .2;
}

.bot-flow__step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  position: relative;
}

/* Numero passo */
.bot-flow__step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--discord-blue-dim);
  border: 1px solid rgba(88,101,242,0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--discord-blue);
  letter-spacing: .05em;
  position: relative;
  z-index: 1;
}

.bot-flow__step-num--orange {
  background: rgba(224,128,32,0.10);
  border-color: rgba(224,128,32,0.35);
  color: var(--solar-orange);
}
.bot-flow__step-num--red {
  background: rgba(224,56,32,0.10);
  border-color: rgba(224,56,32,0.35);
  color: var(--primary-red);
}
.bot-flow__step-num--blue {
  background: rgba(96,160,224,0.10);
  border-color: rgba(96,160,224,0.35);
  color: var(--electric-blue);
}

.bot-flow__step-content {
  flex: 1;
  padding-top: 6px;
}

.bot-flow__step-content p {
  font-size: .9rem;
  color: var(--muted-gray);
  line-height: 1.6;
  margin: 4px 0 0;
}


/* ============================================================
   CTA FINALE
   ============================================================ */
.bot-cta {
  padding: calc(var(--space-xl) * 1.5) 0;
}

.bot-cta__inner {
  background: rgba(88,101,242,0.05);
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: 16px;
  padding: calc(var(--space-xl) * 1.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bot-cta__inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--discord-blue), var(--primary-red), transparent);
}

.bot-cta__label {
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--discord-blue);
  opacity: .6;
  display: block;
  margin-bottom: var(--space-sm);
}

.bot-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--off-white);
  margin: 0 0 var(--space-md);
}
.bot-cta__title em {
  font-style: normal;
  color: var(--discord-blue);
}

.bot-cta__desc {
  color: var(--muted-gray);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 var(--space-lg);
}

.bot-cta__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Bottone ghost */
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(88,101,242,0.35);
  color: var(--discord-blue);
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn--ghost:hover {
  background: var(--discord-blue-dim);
  border-color: var(--discord-blue);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .bot-features__grid {
    grid-template-columns: 1fr;
  }
  .bot-card {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .bot-flow__timeline::before { display: none; }
  .bot-cta__actions {
    flex-direction: column;
    align-items: center;
  }
  .bot-hero__title {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}
