/* ======================================================
   PREMIUM.CSS — Next-Level Visual Effects
   Addict'O Game — Cyberpunk Gaming Lounge Aesthetic
   Layer on top of theme.css — purely additive
   ====================================================== */

/* ── 1. ANIMATED AURORA BACKGROUND ──────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%,
      rgba(249,115,22,.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 20%,
      rgba(6,182,212,.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 50% 90%,
      rgba(139,92,246,.05) 0%, transparent 70%);
  animation: auroraShift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auroraShift {
  0%   { opacity: .6; filter: hue-rotate(0deg); }
  33%  { opacity: .8; }
  66%  { opacity: .5; }
  100% { opacity: .7; filter: hue-rotate(15deg); }
}

/* ── 2. FILM GRAIN TEXTURE OVERLAY ──────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

/* ── 3. FLOATING AMBIENT LIGHT ORBS ─────────────────── */
.site-wrap::before,
.site-wrap::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.site-wrap::before {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 70%);
  animation: orbFloat1 25s ease-in-out infinite;
}

.site-wrap::after {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -80px;
  background: radial-gradient(circle, rgba(6,182,212,.10) 0%, transparent 70%);
  animation: orbFloat2 30s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-40px, 60px) scale(1.1); }
  50%      { transform: translate(30px, 30px) scale(.95); }
  75%      { transform: translate(50px, -20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(50px, -40px) scale(1.08); }
  66%      { transform: translate(-30px, 30px) scale(.92); }
}

/* ── 4. ENHANCED CARDS — Animated gradient border ───── */
.card {
  position: relative;
  background: linear-gradient(
    165deg,
    rgba(255,255,255,.04) 0%,
    rgba(255,255,255,.008) 50%,
    rgba(249,115,22,.015) 100%
  ), var(--surface) !important;
  border: 1px solid transparent !important;
  background-clip: padding-box !important;
  overflow: visible;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.08) 0%,
    rgba(249,115,22,.0) 40%,
    rgba(6,182,212,.0) 60%,
    rgba(255,255,255,.06) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 0;
}

.card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(249,115,22,.4) 0%,
    rgba(6,182,212,.3) 50%,
    rgba(139,92,246,.3) 100%
  );
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Card inner glow on hover */
.card:hover {
  box-shadow:
    0 8px 32px rgba(0,0,0,.55),
    0 0 30px rgba(249,115,22,.08),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
  transform: translateY(-2px);
}

/* ── 5. HERO SECTION — Particle star field ──────────── */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%,  rgba(255,255,255,.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 30% 65%,  rgba(249,115,22,.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%,  rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 45%,  rgba(6,182,212,.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%,  rgba(255,255,255,.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(249,115,22,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%,  rgba(255,255,255,.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 45% 40%,  rgba(6,182,212,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 75%,  rgba(255,255,255,.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 50%, rgba(139,92,246,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 75% 30%,  rgba(255,255,255,.45) 50%, transparent 100%),
    radial-gradient(1px 1px at 5% 55%,   rgba(249,115,22,.35) 50%, transparent 100%),
    radial-gradient(1px 1px at 95% 60%,  rgba(6,182,212,.35) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 90%,  rgba(255,255,255,.25) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(255,255,255,.5) 50%, transparent 100%);
  animation: starTwinkle 8s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0%   { opacity: .3; }
  50%  { opacity: .6; }
  100% { opacity: .35; }
}

/* Hero title — animated gradient text */
.hero-title {
  background: linear-gradient(
    90deg,
    #fff 0%,
    var(--brand) 25%,
    var(--accent) 50%,
    #fff 75%,
    var(--brand) 100%
  ) !important;
  background-size: 200% 100% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: gradientTextFlow 6s linear infinite;
  text-shadow: none !important;
}

/* Highlighted word — gradient text effect */
.hero-title .hero-title-hl {
  background: linear-gradient(90deg, var(--brand), var(--accent)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

@keyframes gradientTextFlow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hero eyebrow — glow pulse */
.hero-eyebrow {
  box-shadow: 0 0 15px rgba(249,115,22,.15), inset 0 0 15px rgba(249,115,22,.05);
  animation: fadeSlideUp .6s ease both, eyebrowPulse 3s ease-in-out infinite alternate !important;
}

@keyframes eyebrowPulse {
  0%   { box-shadow: 0 0 15px rgba(249,115,22,.15), inset 0 0 15px rgba(249,115,22,.05); }
  100% { box-shadow: 0 0 25px rgba(249,115,22,.25), inset 0 0 20px rgba(249,115,22,.08); }
}

/* Hero badge — enhanced glow */
.hero-badge span {
  text-shadow: 0 0 10px rgba(249,115,22,.4);
}
.hero-badge .scroll-arrow {
  filter: drop-shadow(0 0 6px rgba(249,115,22,.5));
}

/* ── 6. SECTION TITLES — Neon underline ─────────────── */
.hpblock-title,
.col-lg-8 > .d-flex h2 {
  position: relative;
  display: inline-block;
}

.hpblock-title::after,
.col-lg-8 > .d-flex h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(249,115,22,.4);
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

.hpblock-title:hover::after,
.col-lg-8 > .d-flex h2:hover::after {
  width: 100%;
}

/* ── 7. BUTTONS — Premium hover effects ─────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.15) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform .5s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

/* Ghost buttons — subtle glow */
.btn-outline-light:hover,
.btn-outline-primary:hover {
  box-shadow: 0 0 20px rgba(249,115,22,.15), 0 4px 15px rgba(0,0,0,.3) !important;
}

/* ── 8. SCROLL REVEAL ANIMATIONS ────────────────────── */
/* Cards stagger in from below */
.col-lg-8 .card,
.col-lg-4 .card,
.review-slide .card {
  animation: cardReveal .6s cubic-bezier(.4,0,.2,1) both;
}

.col-lg-8 .card:nth-child(1) { animation-delay: .05s; }
.col-lg-8 .card:nth-child(2) { animation-delay: .12s; }
.col-lg-8 .card:nth-child(3) { animation-delay: .19s; }
.col-lg-8 .card:nth-child(4) { animation-delay: .26s; }
.col-lg-8 .card:nth-child(5) { animation-delay: .33s; }

.col-lg-4 .card:nth-child(1) { animation-delay: .15s; }
.col-lg-4 .card:nth-child(2) { animation-delay: .25s; }

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── 9. NAVBAR — Enhanced glassmorphism ─────────────── */
.navbar {
  background: rgba(5,13,26,.72) !important;
  backdrop-filter: blur(24px) saturate(1.8) brightness(1.1) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.8) brightness(1.1) !important;
  box-shadow:
    0 1px 0 rgba(249,115,22,.1),
    0 4px 30px rgba(0,0,0,.4) !important;
}

/* Navbar link hover — glow dot */
.navbar .nav-link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  transform: translateX(-50%) scale(0);
  transition: transform .25s ease;
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
  transform: translateX(-50%) scale(1);
}

/* ── 10. REVIEWS SLIDER — Enhanced cards ────────────── */
.review-slide .card {
  backdrop-filter: blur(10px);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s !important;
}

.review-slide .card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow:
    0 20px 40px rgba(0,0,0,.4),
    0 0 30px rgba(249,115,22,.12) !important;
}

/* Stars rating — subtle glow */
.text-warning, .stars-outer {
  filter: drop-shadow(0 0 3px rgba(245,158,11,.4));
}

/* ── 11. SOCIAL ICONS — Hover glow ──────────────────── */
.col-lg-4 .bi-facebook:hover { filter: drop-shadow(0 0 10px #1877F2); }
.col-lg-4 .bi-instagram:hover { filter: drop-shadow(0 0 10px #E4405F); }
.col-lg-4 .bi-tiktok:hover { filter: drop-shadow(0 0 10px #fff); }

/* ── 12. ANNOUNCEMENT — Glass effect ────────────────── */
.container > div[style*="linear-gradient(135deg"] {
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .2s, box-shadow .3s;
}

.container > div[style*="linear-gradient(135deg"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08), 0 0 20px rgba(249,115,22,.1);
}

/* ── 13. FOOTER — Gradient border top ───────────────── */
.site-footer {
  position: relative;
  border-top: none !important;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(249,115,22,.5),
    rgba(6,182,212,.5),
    transparent
  );
  box-shadow: 0 0 15px rgba(249,115,22,.2);
}

/* ── 14. NEWS COVER IMAGE — Cinematic effect ────────── */
.card .position-relative img {
  transition: transform .4s cubic-bezier(.4,0,.2,1), filter .4s;
}

.card:hover .position-relative img {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}

/* ── 14b. NEWS CARDS — Gradient top line (like admin KPIs) ── */
.col-lg-8 > .d-flex > .card {
  overflow: hidden;
}

.col-lg-8 > .d-flex > .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 2;
}

/* ── 15. HOMEPAGE BLOCKS — Parallax glow borders ───── */
.hpblock-text-image,
.hpblock-text-only {
  transition: box-shadow .4s;
}

.hpblock-text-image:hover,
.hpblock-text-only:hover {
  box-shadow: inset 0 0 100px rgba(249,115,22,.03);
}

/* Block images — hover lift */
.hpblock-text-image img {
  transition: transform .5s cubic-bezier(.4,0,.2,1), box-shadow .5s !important;
}

.hpblock-text-image:hover img {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 30px rgba(249,115,22,.1) !important;
}

/* ── 16. CURSOR — curseur système par défaut (custom retiré) ─── */

/* ── 17. SCROLLBAR — Gradient thumb ─────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(5,13,26,.9); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: 99px;
  border: 2px solid rgba(5,13,26,.9);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-light), var(--accent-light));
}

/* ── 18. SELECTION COLOR ────────────────────────────── */
::selection {
  background: rgba(249,115,22,.3);
  color: #fff;
}
::-moz-selection {
  background: rgba(249,115,22,.3);
  color: #fff;
}

/* ── 19. SMOOTH TRANSITIONS everywhere ──────────────── */
*, *::before, *::after {
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

/* ── 20. LOADING SHIMMER for images ─────────────────── */
img[loading="lazy"] {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--surface-2) 37%,
    var(--surface) 63%
  );
  background-size: 200% 100%;
  animation: shimmerLoad 1.5s infinite;
}

img[loading="lazy"][src] {
  animation: none;
  background: none;
}

@keyframes shimmerLoad {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── 21. CAROUSEL CONTROLS — Premium ────────────────── */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(5,13,26,.6);
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,.3);
  backdrop-filter: blur(8px);
  padding: 10px;
  transition: all .3s;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(249,115,22,.3);
  box-shadow: 0 0 20px rgba(249,115,22,.3);
  border-color: rgba(249,115,22,.6);
}

.carousel-indicators button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(249,115,22,.4) !important;
  background-color: rgba(255,255,255,.2) !important;
  transition: all .3s !important;
}

.carousel-indicators button.active {
  background-color: var(--brand) !important;
  box-shadow: 0 0 10px rgba(249,115,22,.5) !important;
  transform: scale(1.2);
}

/* ── 22. RESPONSIVE — Reduce motion preference ──────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
  }
}

/* ── 23. MOBILE OPTIMIZATIONS ───────────────────────── */
@media (max-width: 768px) {
  body::before { opacity: .3; }
  .site-wrap::before, .site-wrap::after { display: none; }

  .hero-title {
    animation: none !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--text) !important;
    background-size: unset !important;
  }


  .card:hover { transform: none !important; }
}

/* ── Footer links (CSP-safe hover) ──────────────────── */
.footer-link {
  color: var(--text-soft);
  transition: color .2s;
}
.footer-link:hover {
  color: var(--brand);
}
