/* ============================================================
   style.css — Global Reset, Variables, Layout & Shared Styles
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* Color Palette – Deep indigo / teal gradient theme */
  --clr-bg: #0a0e1a;
  --clr-surface: rgba(255, 255, 255, 0.04);
  --clr-surface-hover: rgba(255, 255, 255, 0.08);
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-border-hover: rgba(255, 255, 255, 0.18);

  --clr-primary: #6c5ce7;
  --clr-primary-glow: rgba(108, 92, 231, 0.35);
  --clr-accent: #00cec9;
  --clr-accent-glow: rgba(0, 206, 201, 0.3);

  --clr-text: #e8e8f0;
  --clr-text-muted: #8a8a9e;
  --clr-text-heading: #ffffff;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.15);
  --shadow-glow-primary: 0 0 40px var(--clr-primary-glow);
  --shadow-glow-accent: 0 0 40px var(--clr-accent-glow);

  /* Typography */
  --font-main: "Cairo", sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Ambient Background Blobs --- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: blobFloat 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--clr-primary);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--clr-accent);
  bottom: 5%;
  left: -8%;
  animation-delay: -6s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -12s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.08);
  }
  100% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* --- App Shell --- */
#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header --- */
.app-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.header-content {
  max-width: 600px;
  margin: 0 auto;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--clr-text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  font-weight: 400;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

/* --- Footer --- */
.app-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--clr-border);
  margin-top: 2rem;
}

/* --- Utility: Glass Card --- */
.glass-card {
  background: var(--clr-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* --- Utility: Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
  .app-header {
    padding: 1.5rem 1rem 1rem;
  }
}

/* --- Print settings --- */
@media print {
  .app-header,
  .app-footer {
    display: none;
  }
}
