/* Baseball Wallpapers – Website Styles */
:root {
  --navy: #0d2137;
  --navy-light: #1a3a52;
  --red: #c41e3a;
  --red-light: #e63950;
  --cream: #f5f0e8;
  --white: #ffffff;
  --green: #2d5016;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  overflow-x: hidden;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--cream);
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease-out);
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0f2840 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(196, 30, 58, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-tagline.tagline {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-animate {
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-out) forwards;
  animation-delay: calc(0.15s + (var(--i, 0) * 0.12s));
}

.section h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.35rem;
  display: inline-block;
  letter-spacing: -0.02em;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.section h2:hover {
  border-bottom-color: var(--red-light);
}

.section p {
  margin-bottom: 1rem;
  color: var(--navy);
}

.section ul {
  margin: 1rem 0 1rem 1.5rem;
}

.section li {
  margin-bottom: 0.5rem;
  transition: transform 0.2s var(--ease-out);
}

.section li:hover {
  transform: translateX(4px);
}

/* CTA */
.cta {
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
  position: relative;
}

.cta-animate .container {
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.cta p {
  color: var(--cream);
  margin-bottom: 1rem;
}

.btn-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.4);
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(196, 30, 58, 0.5);
  background: var(--red-light);
  text-decoration: none;
}

.btn-cta:active {
  transform: scale(0.98);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 1.5rem 0;
  margin-top: 2rem;
  transition: background 0.3s var(--ease-out);
}

.site-footer:hover {
  background: #0a1c2e;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: var(--white);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Legal pages */
.legal-page .section {
  padding: 1.5rem 0;
}

.legal-page h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}

.legal-page p, .legal-page ul {
  margin-bottom: 0.75rem;
}

.legal-page ul {
  margin-left: 1.5rem;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

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

@media (max-width: 600px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding: 3rem 0;
  }
}
