/* 
 * aurora.css - NorthLight design system
 */

 /* Font Imports */
@font-face {
  font-family: 'Comfortaa';
  src: url('./fonts/Comfortaa-VariableFont_wght.ttf') format('truetype');
  font-optical-sizing: auto;
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('./fonts/Outfit-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SourceCodePro';
  src: url('./fonts/SourceCodePro-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SourceCodePro';
  src: url('./fonts/SourceCodePro-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

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

/* ---- GENERAL UTILITIES ---- */
.aurora .flex { display: flex; }
.aurora .flex-row { flex-direction: row; }
.aurora .flex-col { flex-direction: column; }
.aurora .flex-wrap { flex-wrap: wrap; }
.aurora .gap-xs { gap: 0.25rem; }
.aurora .gap-sm { gap: 0.5rem; }
.aurora .gap-md { gap: 1rem; }
.aurora .gap-lg { gap: 1.5rem; }
.aurora .items-center { align-items: center; }
.aurora .justify-center { justify-content: center; }

.aurora .list-reset { list-style: none; margin: 0; padding: 0; }

.aurora .radius-xs { border-radius: 6px; }
.aurora .radius-sm { border-radius: 10px; }
.aurora .radius-md { border-radius: 12px; }
.aurora .radius-lg { border-radius: 16px; }
.aurora .radius-xl { border-radius: 20px; }

.aurora .opacity-70 { opacity: 0.7; }
.aurora .opacity-85 { opacity: 0.85; }
.aurora .opacity-100 { opacity: 1; }

.aurora .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.aurora .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.aurora .p-3 { padding: 1rem; }
.aurora .my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.aurora .mt-2 { margin-top: 0.5rem; }
.aurora .mb-2 { margin-bottom: 0.5rem; }

.aurora .text-sm { font-size: 0.95em; }
.aurora .text-base { font-size: 1em; }
.aurora .text-lg { font-size: 1.15em; }
.aurora .font-medium { font-weight: 500; }
.aurora .font-semibold { font-weight: 600; }
.aurora .text-glass { color: var(--aurora-white-a70); }
.aurora .text-primary { color: var(--aurora-primary); }

.aurora .w-full { width: 100%; }
.aurora .hidden { display: none; }

/* ---- GLASS/SURFACE UTILITIES ---- */
.aurora .glass {
  background: var(--aurora-white-a70);
  border: 0.5px solid var(--aurora-primegrey-a10);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.aurora .glass-thin {
  background: var(--aurora-white-a50);
  border: 0.5px solid var(--aurora-primegrey-a10);
}

.aurora .glass-shadow {
  box-shadow:
    inset 0 1px 0 var(--aurora-white),
    0 1px 3px var(--aurora-primary-a15);
}

/* Glass reflection */
.aurora .glass-reflect::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,
    oklch(1 0 0 / 0.06) 0%,
    oklch(1 0 0 / 0.01) 60%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---- BUTTONS ---- */

.aurora .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.95em;
  font-weight: 500;
  color: var(--aurora-white-a70);
  background: var(--aurora-white-a50);
  border: 0.5px solid var(--aurora-primegrey-a10);
  box-shadow: var(--aurora-shadow-xs);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
  z-index: 0;
}

.aurora .button:hover,
.aurora .button:focus-visible {
  color: var(--aurora-white);
  background: var(--aurora-primary-a15);
  border-color: var(--aurora-primary-a20);
  box-shadow: 0 2px 12px var(--aurora-primary-a30);
}

.aurora .button.active,
.aurora .button:active {
  color: var(--aurora-white);
  background: var(--aurora-primary-a30);
  border-color: var(--aurora-primary-a20);
  box-shadow: 0 3px 18px var(--aurora-primary-a50);
}

.aurora .button .icon,
.aurora .button svg {
  width: 1.1em;
  height: 1.1em;
  opacity: 0.75;
  transition: all 0.2s cubic-bezier(.16,1,.3,1);
  color: var(--aurora-primary);
}

.aurora .button:hover .icon,
.aurora .button:hover svg {
  opacity: 0.95;
  transform: scale(1.05);
  filter: var(--aurora-drop-glow-sm);
}

.aurora .button.active .icon,
.aurora .button.active svg,
.aurora .button:active .icon,
.aurora .button:active svg {
  color: var(--aurora-primary);
  opacity: 1;
  transform: scale(1.08);
}

/* ---- CARDS/CONTAINERS ---- */
.aurora .card {
  position: relative;
  border-radius: 16px;
  background: var(--aurora-white-a75);
  border: 0.5px solid var(--aurora-grey-a10);
  box-shadow: var(--aurora-card-shadow);
  padding: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s cubic-bezier(.16,1,.3,1);
}

.aurora .card.compact { padding: 1rem; border-radius: 12px; }
.aurora .card.expanded { padding: 2rem; border-radius: 20px; }

/* ---- TYPOGRAPHY PATTERNS ---- */
.aurora .heading {
  font-size: 1.17rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--aurora-primary) 0%, var(--aurora-primary-a90) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aurora .meta {
  font-size: 0.93em;
  color: var(--aurora-white-a60);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.aurora .content {
  line-height: 1.6;
  color: var(--aurora-white-a85);
}

.aurora a {
  white-space: nowrap;
}

/* ---- ANIMATION UTILITIES ---- */
.aurora .fade-in-up {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: fadeInUp 0.6s cubic-bezier(.16,1,.3,1) forwards;
}



.aurora .stagger-list > * {
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(.16,1,.3,1) forwards;
}
.aurora .stagger-list > *:nth-child(1) { animation-delay: 0.08s; }
.aurora .stagger-list > *:nth-child(2) { animation-delay: 0.15s; }
.aurora .stagger-list > *:nth-child(3) { animation-delay: 0.22s; }
.aurora .stagger-list > *:nth-child(4) { animation-delay: 0.29s; }
.aurora .stagger-list > *:nth-child(n+5) { animation-delay: 0.33s; }

.aurora body {
    font-family: 'Comfortaa', 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 20% 80%, var(--aurora-bg-grad-acc-1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--aurora-bg-grad-acc-2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--aurora-bg-grad-acc-3) 0%, transparent 50%),
        linear-gradient(135deg, var(--aurora-bg-grad-start) 0%, var(--aurora-bg-grad-end) 100%);
    color: var(--aurora-white-a80);
    margin: 0;
    padding-top: 100px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
}

@media (dynamic-range: high) {
    .aurora img[src$=".jpg" i],
    .aurora img[src$=".jpeg" i],
    .aurora img[src$=".png" i] {
        filter: saturate(1.1) contrast(1.05);
    }
}

.aurora body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            var(--aurora-white-a01) 2px,
            var(--aurora-white-a01) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            var(--aurora-white-a01) 2px,
            var(--aurora-white-a01) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .aurora .gap-md { gap: 0.5rem; }
  .aurora .card,
  .aurora .card.expanded,
  .aurora .card.compact { padding: 1rem; }
  .aurora .heading { font-size: 1.05rem; }
}

.aurora .container {
    max-width: 800px;
    width: 100%;
    background: var(--aurora-black-a50);
    border-radius: 20px;
    box-shadow: var(--aurora-container-shadow);
    overflow: unset;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    z-index: 2;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.aurora .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--aurora-white-a20) 50%,
        transparent 100%);
    z-index: 1;
}

.aurora .container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, var(--aurora-white-a02) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, var(--aurora-white-a01) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 20px;
}

.aurora .main-content {
    padding: 20px 30px 30px;
    position: relative;
    z-index: 2;
    background: var(--aurora-black-a10);
}

.aurora .main-content.blog {
    padding: 0;
}

.aurora .section {
    margin-bottom: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.aurora .section:hover {
    transform: translateY(-2px);
}

.aurora .brand-text {
  font-family: 'SourceCodePro', Menlo, Consolas, "Courier New", monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.aurora .section:hover h3::after {
    width: 120px;
}