/* ==========================================================================
   Hoolie Software - Shared Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --hoolie-purple: #200e35;
  --hoolie-purple-light: #2d1548;
  --hoolie-pink: #fb155f;
  --hoolie-orange: #fc6f00;
  --hoolie-white: #ffffff;
  --hoolie-white-muted: rgba(255, 255, 255, 0.7);
  --hoolie-white-dim: rgba(255, 255, 255, 0.4);

  --font-primary: 'Mundail', 'Inter', 'Segoe UI', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--hoolie-purple);
  color: var(--hoolie-white);
  line-height: 1.6;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Animated Gradient Background
   -------------------------------------------------------------------------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(251, 21, 95, 0.12) 0%, transparent 60%);
  animation: drift 25s ease-in-out infinite;
}

.bg-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(252, 111, 0, 0.08) 0%, transparent 60%);
  animation: drift 30s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5%, 3%) rotate(1deg); }
  50% { transform: translate(-3%, 5%) rotate(-1deg); }
  75% { transform: translate(2%, -3%) rotate(0.5deg); }
}

/* --------------------------------------------------------------------------
   Page Layout
   -------------------------------------------------------------------------- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem);
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out-expo) 0.1s forwards;
}

/* Home page - single screen, no scroll */
.page--home {
  height: 100vh;
}

.page--home body {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: clamp(1rem, 2vh, 1.5rem);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--hoolie-white-dim);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-address {
  order: 1;
}

.footer-emblem {
  order: 2;
}

.footer-emblem a {
  display: block;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.footer-emblem a:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.footer-emblem img {
  height: 24px;
  width: auto;
}

.footer-legal {
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .footer-legal {
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
  }
}

.footer-legal a {
  color: var(--hoolie-white-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--hoolie-pink);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Home Page Specific Styles
   ========================================================================== */

/* Main content area */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(2rem, 5vh, 4rem);
}

/* Brand section */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 700px;
}

.logo {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-bottom: 0.75rem;
}

.headline {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.headline-accent {
  background: linear-gradient(135deg, var(--hoolie-pink) 0%, var(--hoolie-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--hoolie-white-muted);
  max-width: 520px;
  margin-top: 0.25rem;
}

/* Divider */
.divider {
  width: 100%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Products section */
.products {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.section-label {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hoolie-white-dim);
}

/* Product link */
.product-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out-expo), filter 0.4s var(--ease-out-expo);
}

.product-link:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 30px rgba(251, 21, 95, 0.3));
}

.product-link:focus {
  outline: 2px solid var(--hoolie-pink);
  outline-offset: 8px;
  border-radius: 4px;
}

.product-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.product-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--hoolie-white-muted);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Privacy Page Specific Styles
   ========================================================================== */

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header-logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 1;
}

/* Content area */
.content {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.content h2 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--hoolie-white);
}

.content p {
  color: var(--hoolie-white-muted);
  margin-bottom: 1rem;
}

.content ul {
  color: var(--hoolie-white-muted);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content a {
  color: var(--hoolie-pink);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.content a:hover {
  opacity: 0.8;
}

.last-updated {
  color: var(--hoolie-white-dim);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

/* Privacy page footer spacing */
.page--privacy footer {
  margin-top: 4rem;
}
