/* ===================================
   FootToWatch Landing Page Styles
   Modern, Responsive, Accessible Design
   =================================== */

/* ===================================
   CSS Custom Properties (Design Tokens)
   =================================== */
:root {
  /* Colors */
  --color-primary: #8BC34A;
  --color-primary-dark: #7CB342;
  --color-text: #FFFFFF;
  --color-overlay-dark: rgba(0, 0, 0, 0.85);
  --color-overlay-medium: rgba(0, 0, 0, 0.7);
  --color-overlay-light: rgba(0, 0, 0, 0.5);
  --color-black: #000000;

  /* Typography */
  --font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* Font Sizes - Mobile First */
  --font-size-base: 1rem; /* 16px */
  --font-size-small: 0.875rem; /* 14px */
  --font-size-medium: 1.125rem; /* 18px */
  --font-size-large: 1.5rem; /* 24px */
  --font-size-xlarge: 2rem; /* 32px */
  --font-size-xxlarge: 2.5rem; /* 40px */
  --font-size-hero: 3rem; /* 48px */

  /* Spacing */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 1rem; /* 16px */
  --spacing-md: 1.5rem; /* 24px */
  --spacing-lg: 2rem; /* 32px */
  --spacing-xl: 2.5rem; /* 40px */
  --spacing-xxl: 3rem; /* 48px */
  --spacing-xxxl: 4rem; /* 64px */

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 1.25rem; /* 20px */
  --border-radius-button: 30px;
  --border-radius-badge: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('../assets/stadium.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Overlay for better text readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    var(--color-overlay-medium) 0%,
    var(--color-overlay-dark) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover,
a:focus {
  opacity: 0.8;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===================================
   Container
   =================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ===================================
   Header
   =================================== */
.header {
  padding: var(--spacing-md) 0;
  position: relative;
  z-index: 100;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo__image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.logo__text {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

/* CTA Buttons */
.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-text);
  border-radius: var(--border-radius-button);
  background-color: transparent;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.cta-button:hover,
.cta-button:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button--header {
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
}

.cta-button--hero {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-medium);
  margin-bottom: var(--spacing-xl);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--spacing-xxl) 0;
  min-height: calc(100vh - 200px);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

/* Phone Mockup */
.phone-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  order: 1;
  perspective: 1000px;
}

.phone-mockup__device {
  max-width: 320px;
  width: 100%;
  position: relative;
  padding: 1rem 0.75rem;
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  border-radius: 2.5rem;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-normal);
}

.phone-mockup__device--left {
  transform: perspective(1000px) rotateY(8deg);
}

.phone-mockup__device--right {
  transform: perspective(1000px) rotateY(-8deg);
}

.phone-mockup__device:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.phone-mockup__device::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

.phone-mockup__screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.phone-mockup__screenshot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Hero Content */
.hero__content {
  order: 2;
  text-align: center;
}

.hero__title {
  font-size: var(--font-size-xxlarge);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero__description {
  font-size: var(--font-size-medium);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
  opacity: 0.95;
}

/* Features */
.features {
  margin-bottom: var(--spacing-xl);
  text-align: left;
}

.features__title {
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-bold);
}

.features__list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-xl);
}

.features__item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.features__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* Store Badges */
.store-badges {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  background-color: var(--color-black);
  border-radius: var(--border-radius-badge);
  transition: all var(--transition-normal);
  min-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.store-badge:hover,
.store-badge:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary);
}

.store-badge__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.store-badge--android .store-badge__icon {
  color: var(--color-primary);
}

.store-badge--ios .store-badge__icon {
  color: var(--color-text);
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-badge__label {
  font-size: 0.75rem;
  opacity: 0.7;
}

.store-badge__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

/* Header Store Badges Variant */
.store-badges--header {
  flex-direction: row;
  gap: var(--spacing-sm);
}

.store-badge--header {
  padding: 0.5rem 1rem;
  min-width: auto;
}

.store-badge--header .store-badge__icon {
  width: 24px;
  height: 24px;
}

.store-badge--header .store-badge__label {
  font-size: 0.625rem;
}

.store-badge--header .store-badge__name {
  font-size: 0.875rem;
}

/* Mobile: Icon-only badges */
@media (max-width: 767px) {
  .store-badge--header {
    padding: 0.5rem;
  }

  .store-badge--header .store-badge__text {
    display: none;
  }

  .store-badge--header .store-badge__icon {
    width: 28px;
    height: 28px;
  }
}

/* ===================================
   Review Section
   =================================== */
.review {
  padding: var(--spacing-xxl) 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.review__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
}

.review__stars {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
}

.review__star {
  width: 32px;
  height: 32px;
  color: #FFD700;
}

.review__text {
  font-size: var(--font-size-large);
  font-style: italic;
  max-width: 800px;
  line-height: 1.6;
  margin: 0;
  color: var(--color-text);
}

.review__author {
  font-size: var(--font-size-base);
  opacity: 0.8;
  margin: 0;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: rgba(0, 0, 0, 0.9);
  padding: var(--spacing-xl) 0;
  margin-top: auto;
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  text-align: center;
}

.footer__section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xs);
}

.footer__link {
  color: var(--color-text);
  text-decoration: underline;
  opacity: 0.9;
}

.footer__link:hover,
.footer__link:focus {
  color: var(--color-primary);
  opacity: 1;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.social-icon:hover,
.social-icon:focus {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (min-width: 768px) {
  :root {
    --font-size-hero: 3.5rem; /* 56px */
    --font-size-xxlarge: 3rem; /* 48px */
    --container-padding: 2rem; /* 32px */
  }

  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxxl);
  }

  .phone-mockup {
    order: 1;
    justify-content: flex-end;
    gap: var(--spacing-lg);
  }

  .phone-mockup__device {
    max-width: 240px;
  }

  .hero__content {
    order: 2;
    text-align: left;
  }

  .store-badges {
    flex-direction: row;
    justify-content: flex-start;
  }

  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .social-icons {
    justify-content: flex-start;
  }
}

/* ===================================
   Responsive Design - Desktop
   =================================== */
@media (min-width: 1024px) {
  :root {
    --font-size-hero: 4rem; /* 64px */
    --container-padding: 3rem; /* 48px */
  }

  .phone-mockup__device {
    max-width: 300px;
  }

  .phone-mockup {
    gap: var(--spacing-xl);
  }

  .hero__title {
    font-size: var(--font-size-hero);
  }

  .cta-button--header {
    font-size: var(--font-size-base);
    padding: 0.75rem 2rem;
  }
}

/* ===================================
   Accessibility & Print Styles
   =================================== */

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-overlay-dark: rgba(0, 0, 0, 0.95);
  }

  .cta-button {
    border-width: 3px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }

  .header,
  .footer,
  .cta-button,
  .store-badges {
    display: none;
  }

  .hero__content {
    color: black;
  }
}

/* ===================================
   Utility Classes
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}
