/**
 * ═══════════════════════════════════════════════════════════════════════════════
 * BACKGROUND EFFECTS — ARTICOL PAGE
 * ═══════════════════════════════════════════════════════════════════════════════
 * 
 * Efecte vizibile distribuite în mai multe locuri ale paginii
 * NU schimbă culorile de background existente
 * 
 * ═══════════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   PAGE-LEVEL NOISE TEXTURE
   ═══════════════════════════════════════════════════════════════════════════════ */

.page-article::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PAGE VIGNETTE
   ═══════════════════════════════════════════════════════════════════════════════ */

.page-article::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FLOATING AMBIENT ORBS — Visible colored shapes
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-content {
  position: relative;
}

.article-content::before {
  content: '';
  position: fixed;
  top: 20%;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: float-left 25s ease-in-out infinite;
}

.article-content::after {
  content: '';
  position: fixed;
  top: 50%;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: float-right 30s ease-in-out infinite;
}

@keyframes float-left {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(50px, 80px); }
  66% { transform: translate(-30px, -50px); }
}

@keyframes float-right {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-60px, -70px); }
  66% { transform: translate(40px, 60px); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADDITIONAL FLOATING SHAPES
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-main::before {
  content: '';
  position: fixed;
  bottom: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: float-bottom 35s ease-in-out infinite reverse;
}

@keyframes float-bottom {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(100px, -50px); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ARTICLE SECTIONS — Dot grid pattern
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-section {
  position: relative;
  z-index: 2;
}

.article-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50px;
  right: -50px;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION HEADERS — Subtle glow behind numbers
   ═══════════════════════════════════════════════════════════════════════════════ */

.section-header-v2 {
  position: relative;
}

.section-number {
  position: relative;
}

.section-number::before {
  content: '';
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ARTICLE FIGURES — Frame glow on hover
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-figure-v2 {
  position: relative;
}

.article-figure-v2::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 50%, rgba(255,255,255,0.02));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.article-figure-v2:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TIP BOXES — Corner accent
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-tip-v2 {
  position: relative;
  overflow: hidden;
}

.article-tip-v2::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, transparent 60%);
  filter: blur(25px);
  opacity: 0.5;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUOTE BOXES — Decorative line
   ═══════════════════════════════════════════════════════════════════════════════ */

.quote-box-v2 {
  position: relative;
}

.quote-box-v2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
  opacity: 0.8;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CHECKLIST BOXES — Subtle side glow
   ═══════════════════════════════════════════════════════════════════════════════ */

.checklist-box {
  position: relative;
}

.checklist-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.8), transparent);
  opacity: 0.7;
  border-radius: 2px;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GALLERY GRID — Ambient glow
   ═══════════════════════════════════════════════════════════════════════════════ */

.gallery-grid-v2 {
  position: relative;
}

.gallery-grid-v2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.02;
  z-index: -1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LEAD BOX — Premium accent corners
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-lead-box {
  position: relative;
}

.article-lead-box::before,
.article-lead-box::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  opacity: 0.08;
  pointer-events: none;
}

.article-lead-box::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

.article-lead-box::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AUTHOR BOX — Subtle separator line
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-author {
  position: relative;
}

.article-author::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.06;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SIDEBAR — Floating ambient shapes
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-sidebar {
  position: relative;
}

.article-sidebar::before {
  content: '';
  position: absolute;
  top: 100px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  filter: blur(50px);
  opacity: 0.025;
  z-index: -1;
  pointer-events: none;
  animation: sidebar-float 20s ease-in-out infinite;
}

@keyframes sidebar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(30px); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RELATED ARTICLES — Grid pattern
   ═══════════════════════════════════════════════════════════════════════════════ */

.related-articles,
.article-related {
  position: relative;
}

.related-articles::before,
.article-related::before {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: -1;
  pointer-events: none;
  background-image: 
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.01;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COMMENTS SECTION — Ambient decoration
   ═══════════════════════════════════════════════════════════════════════════════ */

.article-comments,
.comments-section {
  position: relative;
}

.article-comments::before,
.comments-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 500px);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.08;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TEXT BOX STYLED — Inner shadow
   ═══════════════════════════════════════════════════════════════════════════════ */

.text-box-styled {
  position: relative;
}

.text-box-styled::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .article-sidebar::before {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .page-article::before {
    opacity: 0.015;
  }
  
  .article-content::before,
  .article-content::after,
  .article-sidebar::before {
    display: none;
  }
  
  .section-number::before {
    opacity: 0.05;
  }
  
  .article-lead-box::before,
  .article-lead-box::after {
    display: none;
  }
}

