/* ============================================================
   StoryBox - Pure CSS Stylesheet
   Converted from React/TypeScript + Tailwind
   ============================================================ */

:root {
  /* Color Palette */
  --color-dark-bg: #0c0414;
  --color-purple-dark: #1a0b2e;
  --color-purple-medium: #2d0a4e;
  --color-purple-light: #6d28d9;
  --color-indigo: #4c1d95;
  --color-orange: #ff8c00;
  --color-gold: #ffd700;
  --color-white: #ffffff;
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-white-5: rgba(255, 255, 255, 0.05);
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-purple-600: rgba(147, 51, 234, 0.2);
  --color-orange-600: rgba(234, 88, 12, 0.1);
  --color-orange-500: #ff6500;
  --color-orange-shadow: rgba(255, 165, 0, 0.5);
  
  /* Font Family */
  --font-family: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-2: 0.5rem;
  --spacing-4: 1rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  
  /* Border Radius */
  --radius-full: 9999px;
  --radius-3xl: 24px;
  --radius-lg: 10px;
  
  /* Box Shadows */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-purple: 0 0 30px rgba(109, 40, 217, 0.2);
  --shadow-purple-lg: 0 0 40px rgba(147, 51, 234, 0.3);
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-indigo);
  border-radius: var(--radius-lg);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  font-weight: 400;
}

p.text-sm {
  font-size: 0.875rem;
  font-weight: 300;
}

p.text-xs {
  font-size: 0.625rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.gap-2 {
  gap: var(--spacing-2);
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: var(--spacing-4);
}

.gap-6 {
  gap: 1.5rem;
}

.p-4 {
  padding: var(--spacing-4);
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: var(--spacing-8);
}

.px-4 {
  padding-left: var(--spacing-4);
  padding-right: var(--spacing-4);
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: var(--spacing-2);
  padding-bottom: var(--spacing-2);
}

.py-4 {
  padding-top: var(--spacing-4);
  padding-bottom: var(--spacing-4);
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.mt-2 {
  margin-top: var(--spacing-2);
}

.mt-4 {
  margin-top: var(--spacing-4);
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: var(--spacing-8);
}

.mt-12 {
  margin-top: var(--spacing-12);
}

.mb-2 {
  margin-bottom: var(--spacing-2);
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.ml-auto {
  margin-left: auto;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-white);
}

.text-white-90 {
  color: var(--color-white-90);
}

.text-gray-400 {
  color: var(--color-gray-400);
}

.text-gray-500 {
  color: var(--color-gray-500);
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.border {
  border: 1px solid;
}

.border-b {
  border-bottom: 1px solid;
}

.border-white\/10 {
  border-color: var(--color-white-10);
}

.border-white\/5 {
  border-color: var(--color-white-5);
}

.border-purple-700 {
  border-color: #a855f7;
}

.rounded-3xl {
  border-radius: var(--radius-3xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.object-contain {
  object-fit: contain;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-2xl {
  box-shadow: var(--shadow-2xl);
}

.shadow-purple-900\/40 {
  box-shadow: 0 20px 25px -5px rgba(75, 0, 130, 0.4);
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

/* ============================================================
   CUSTOM GRADIENTS & COLORS
   ============================================================ */

.bg-purple-gradient {
  background: linear-gradient(135deg, var(--color-purple-medium) 0%, var(--color-purple-dark) 100%);
}

.bg-white\/5 {
  background-color: var(--color-white-5);
}

.gold-gradient-text {
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-gradient {
  background: linear-gradient(90deg, var(--color-purple-light) 0%, var(--color-indigo) 100%);
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

.container-mobile {
  position: relative;
  width: 100%;
  max-width: 375px;
  height: 812px;
  overflow: hidden;
  border-radius: 40px;
  border: 8px solid var(--color-purple-dark);
  box-shadow: 0 20px 40px rgba(109, 40, 217, 0.2);
  background-color: var(--color-dark-bg);
  margin: 0 auto;
}

.screen-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--color-dark-bg);
}

/* Desktop container wrapper to add spacing on large screens */
.container-desktop {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */

.splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: var(--spacing-8);
  background: linear-gradient(135deg, var(--color-purple-medium) 0%, var(--color-purple-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.splash-glow-top {
  position: absolute;
  top: -100px;
  left: -50px;
  width: 16rem;
  height: 16rem;
  background-color: var(--color-purple-600);
  border-radius: var(--radius-full);
  filter: blur(80px);
  pointer-events: none;
}

.splash-glow-bottom {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 16rem;
  height: 16rem;
  background-color: var(--color-orange-600);
  border-radius: var(--radius-full);
  filter: blur(80px);
  pointer-events: none;
}

.splash-illustration {
  position: relative;
  margin-top: var(--spacing-12);
}

.splash-illustration-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12rem;
  height: 12rem;
  background-color: rgba(255, 165, 0, 0.3);
  border-radius: var(--radius-full);
  filter: blur(40px);
}

.splash-illustration-img {
  width: 14rem;
  height: 14rem;
  object-fit: contain;
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 0 25px rgba(255, 165, 0, 0.5));
}

.splash-play-icon {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-orange-500);
  border: 2px solid var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.splash-play-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--color-white);
}

.splash-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
}

.splash-branding h1 {
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.splash-branding h2 {
  color: var(--color-white-90);
  margin-top: var(--spacing-4);
}

.splash-branding p {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  font-weight: 300;
}

.splash-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-8);
  z-index: 10;
  position: relative;
}

.btn {
  width: 100%;
  padding: var(--spacing-4) 0;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--color-white-10);
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  font-family: var(--font-family);
  color: var(--color-white);
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-purple-light) 0%, var(--color-indigo) 100%);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

.btn-secondary {
  background: linear-gradient(90deg, var(--color-purple-dark) 0%, rgba(79, 13, 165, 1) 100%);
  border-color: var(--color-white-5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
  background-color: var(--color-white-5);
  border-color: var(--color-white-10);
}

.btn-tertiary:hover {
  background-color: var(--color-white-10);
}

.splash-disclaimer {
  font-size: 0.625rem;
  color: var(--color-gray-500);
  padding: 0 var(--spacing-4);
  margin-top: var(--spacing-2);
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 480px) {
  .container-mobile {
    max-width: 100%;
    height: auto;
    aspect-ratio: 375 / 812;
    border-radius: 20px;
    border-width: 4px;
  }
  
  /* Remove conflicting auth styles - handled in template */
  h1 {
    font-size: 1.875rem;
  }
  
  .splash-illustration-img {
    width: 10rem;
    height: 10rem;
  }
}

/* ============================================================
   DESKTOP FOOTER
   ============================================================ */

.desktop-footer {
  display: none;
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(45, 10, 78, 0.5) 0%, rgba(26, 11, 46, 0.5) 100%);
  border: 1px solid var(--color-white-10);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  padding: 2rem;
  width: 100%;
  max-width: 1000px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-white-90);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.footer-divider {
  color: var(--color-white-10);
  font-size: 1rem;
}

.footer-copyright {
  color: var(--color-gray-500);
  font-size: 0.75rem;
  font-weight: 300;
}

/* ============================================================
   CONTENT PAGES
   ============================================================ */

.content-container {
  position: relative;
  width: 100%;
  max-width: 375px;
  overflow: hidden;
  border-radius: 40px;
  border: 8px solid var(--color-purple-dark);
  box-shadow: 0 20px 40px rgba(109, 40, 217, 0.2);
  background-color: var(--color-dark-bg);
  margin: 0 auto;
}

.page-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--spacing-8);
  background: linear-gradient(135deg, var(--color-purple-medium) 0%, var(--color-purple-dark) 100%);
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  max-height: 812px;
  overflow-y: auto;
}

.page-content h1 {
  width: 100%;
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-8);
}

.content-section {
  width: 100%;
  margin-bottom: var(--spacing-8);
}

.content-section h2 {
  color: var(--color-white-90);
  margin-bottom: var(--spacing-4);
  font-size: 1.125rem;
}

.content-section p {
  color: var(--color-gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================================
   DESKTOP LAYOUT
   ============================================================ */

@media (min-width: 1024px) {
  .desktop-footer {
    display: block;
  }

  .container-mobile {
    max-width: 1000px;
    height: auto;
    border-radius: 24px;
    border-width: 8px;
  }

  .content-container {
    max-width: 900px;
    height: auto;
    border-radius: 24px;
    border-width: 8px;
  }

  .page-content {
    padding: 3rem;
    min-height: auto;
    max-height: none;
  }

  .page-content h1 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
  }

  .content-section h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }

  .content-section p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .content-section {
    margin-bottom: 2rem;
  }

  .splash-container {
    padding: 4rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    text-align: left;
  }

  .splash-illustration {
    flex: 0 0 45%;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .splash-illustration-img {
    width: 22rem;
    height: 22rem;
  }

  .splash-branding {
    flex: 1 1 45%;
    align-items: flex-start;
    text-align: left;
  }

  .splash-branding h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
  }

  .splash-branding h2 {
    font-size: 1.375rem;
    margin-top: 0.5rem;
  }

  .splash-branding p {
    font-size: 1rem;
    margin-top: 0.75rem;
  }

  .splash-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-bottom: 0;
    align-self: flex-end;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .splash-disclaimer {
    grid-column: 1 / -1;
    margin-top: 1rem;
    font-size: 0.7rem;
  }
}

/* ============================================================
   AUTHENTICATION STYLES
   ============================================================ */

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-content {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.auth-skip-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.skip-link {
  color: var(--color-white-90);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--color-white-10);
  transition: all 0.3s ease;
}

.skip-link:hover {
  background-color: var(--color-white-5);
  color: var(--color-white);
}

.auth-header {
  margin-bottom: 3rem;
}

.auth-logo {
  margin-bottom: 1.5rem;
}

.logo-glow {
  filter: drop-shadow(0 0 20px rgba(109, 40, 217, 0.3));
}

.splash-illustration-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.auth-brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--color-purple-light), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-screen-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white-90);
  margin-bottom: 2rem;
}

.auth-form {
  width: 100%;
  max-width: 320px;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--color-white-10);
  border-radius: var(--radius-lg);
  background-color: var(--color-white-5);
  color: var(--color-white);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: var(--color-gray-400);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-purple-light);
  background-color: var(--color-white-10);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.form-action-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-purple-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form-action-btn:hover {
  color: var(--color-orange);
}

.auth-button {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(45deg, var(--color-purple-light), var(--color-indigo));
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-link-section {
  margin-bottom: 2rem;
}

.auth-link-text {
  color: var(--color-white-90);
  font-size: 0.875rem;
  font-weight: 400;
}

.auth-link {
  color: var(--color-purple-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: var(--color-orange);
}

.auth-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin: 2rem 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--color-white-10);
}

.auth-divider-text {
  margin: 0 1rem;
  color: var(--color-gray-400);
  font-size: 0.875rem;
  font-weight: 400;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-red-500 {
  color: #ef4444;
}

.text-sm {
  font-size: 0.875rem;
}

 /* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  body {
    background-color: var(--color-white);
  }
}
