﻿/* ==========================================================================
   ALEKSANDERPIETRZAK.PL — ARCHITEKTURA STYLÓW UI (DARK GLASSMORPHISM & A11Y)
   ========================================================================== */

/* Tło Główne i Gradienty Przestrzenne */
body {
  background-color: #0B0F17;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(157, 78, 221, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(212, 196, 168, 0.05), transparent 25%);
  color: #F8FAFC;
}

/* Dark Glassmorphism */
.glass {
  background: rgba(21, 28, 44, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(21, 28, 44, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Mikrointerakcje i Efekty Poświaty */
.glow-hover {
  transition: all 0.3s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.2);
  border-color: rgba(157, 78, 221, 0.5);
}

/* Diody Statusowe (Status Dot) */
.status-dot {
  box-shadow: 0 0 12px #9D4EDD;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(157, 78, 221, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(157, 78, 221, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(157, 78, 221, 0);
  }
}

/* Element Węzłowy (Node Wire) */
.node-wire {
  position: relative;
}

.node-wire::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -1rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #9D4EDD;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Standardy Dostępności (WCAG 2.1 AA) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #9D4EDD;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .glow-hover {
    animation: none !important;
    transition: none !important;
  }
}

html { scroll-behavior: smooth; }