/* Pillo Design System - Main Entry Stylesheet */

@import "../tokens/tokens.css";
@import "./buttons.css";
@import "./cards.css";
@import "./overlays.css";
@import "./headers.css";
@import "./player.css";
@import "./tables.css";
@import "./skeleton.css";

/* --- Global Reset & Base Elements --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  scrollbar-width: thin;
}

body {
  background-color: var(--pillo-color-bg);
  color: var(--pillo-color-fg);
  font-family: var(--pillo-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Custom Text Selection */
::selection {
  background-color: var(--pillo-color-emerald);
  color: var(--pillo-color-bg);
}

/* Webkit scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--pillo-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Reveal Animation Utilities --- */
.pillo-reveal {
  opacity: 0;
  animation: pillo-reveal-anim var(--pillo-transition-reveal) var(--pillo-transition-normal) forwards;
}

.pillo-reveal-slow {
  opacity: 0;
  animation: pillo-reveal-anim var(--pillo-transition-reveal) 0.3s var(--pillo-transition-normal) forwards;
}

@keyframes pillo-reveal-anim {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Layout container helpers */
.pillo-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pillo-space-6);
}

/* Typography styles */
.pillo-display-lg {
  font-family: var(--pillo-font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: var(--pillo-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pillo-display-md {
  font-family: var(--pillo-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--pillo-color-fg);
}

/* --- Iconography --- */
.pillo-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.5px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pillo-icon-sm {
  width: 14px;
  height: 14px;
  stroke-width: 1.5px;
}

.pillo-icon-xs {
  width: 12px;
  height: 12px;
  stroke-width: 1.5px;
}
