/* URI Powerlifting - Main CSS */
/* Spotify-inspired navigation with brand colors */

:root {
  --bg: #000000;
  --text: #ffffff;
  --accent-dark: #002147;
  --accent: #75b2dd;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --hover-bg: rgba(117, 178, 221, 0.1);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(117, 178, 221, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 33, 71, 0.2) 0%, transparent 50%),
    linear-gradient(180deg,
      #000000 0%,
      #0a0a0a 10%,
      #1a1a2e 20%,
      #16213e 30%,
      #0f1929 40%,
      #002147 50%,
      #0f1929 60%,
      #16213e 70%,
      #1a1a2e 80%,
      #0a0a0a 90%,
      #000000 100%
    );
  background-size: 100% 200vh;
  background-attachment: fixed;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header / Navbar - Spotify style */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(10px);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Logo and brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background-image: url('../assets/images/URILogoBlueEye.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 2px 8px rgba(117, 178, 221, 0.3));
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

/* Desktop navigation */
.navbar-nav {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(117, 178, 221, 0.3);
}

.nav-link {
  position: relative;
  font-weight: 600;
  opacity: 0.9;
  transition: all 0.2s ease;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  opacity: 1;
  color: #000;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  opacity: 0.5;
}

/* Desktop auth actions and social icons */
.navbar-actions {
  display: none;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.social-icon:hover,
.social-icon:focus-visible {
  opacity: 1;
  background: var(--hover-bg);
  transform: translateY(-1px);
}

.social-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.social-icon:hover img,
.social-icon:focus-visible img {
  filter: brightness(0) saturate(100%) invert(64%) sepia(85%) saturate(463%) hue-rotate(177deg) brightness(94%) contrast(96%);
}

.login-link {
  font-weight: 600;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.login-link:hover,
.login-link:focus-visible {
  opacity: 1;
  color: var(--accent);
}

.signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--accent);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.signup-btn:hover,
.signup-btn:focus-visible {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  list-style: none;
  margin: 0;
}

.mobile-nav-link {
  display: block;
  padding: 16px 20px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link.active {
  background: var(--hover-bg);
  color: var(--accent);
}

.mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Mobile social icons */
.mobile-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mobile-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-social-link:hover,
.mobile-social-link:focus-visible {
  background: var(--hover-bg);
  color: var(--accent);
}

.mobile-social-link img {
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.mobile-social-link:hover img,
.mobile-social-link:focus-visible img {
  filter: brightness(0) saturate(100%) invert(64%) sepia(85%) saturate(463%) hue-rotate(177deg) brightness(94%) contrast(96%);
}

.mobile-actions {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-login {
  padding: 12px 0;
  font-weight: 600;
  text-align: center;
}

.mobile-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-weight: 700;
  border: 2px solid var(--accent);
  border-radius: 24px;
  transition: all 0.2s ease;
}

.mobile-signup:hover,
.mobile-signup:focus-visible {
  background: var(--accent);
  color: var(--bg);
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-content {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin: 0 0 16px 0;
}

.footer-section h4 {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 12px 0;
}

.footer-section p {
  color: var(--muted);
  margin: 0;
}

/* Footer contact and social */
.footer-contact {
  margin-bottom: 16px;
}

.email-link {
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.footer-social-icon:hover,
.footer-social-icon:focus-visible {
  opacity: 1;
  background: var(--hover-bg);
  transform: translateY(-2px);
}

.footer-social-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.footer-social-icon:hover img,
.footer-social-icon:focus-visible img {
  filter: brightness(0) saturate(100%) invert(64%) sepia(85%) saturate(463%) hue-rotate(177deg) brightness(94%) contrast(96%);
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Page content */
main {
  flex: 1;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 64px 0;
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.3) 0%, rgba(117, 178, 221, 0.1) 100%);
  border-radius: 16px;
  margin-bottom: 48px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(45deg, #002147, #000000);
}


.hero__content {
  text-align: center;
  padding: clamp(2rem, 5vh, 4rem) clamp(1rem, 5vw, 2rem);
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero__logo-container {
  position: relative;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.hero__logo-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 60vw, 500px);
  height: clamp(300px, 60vw, 500px);
  background: linear-gradient(-135deg, #002147, #000000);
  border: 2px solid var(--accent);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  z-index: -1;
}

@media (max-width: 768px) {
  .hero__logo-container::before {
    width: clamp(280px, 70vw, 350px);
    height: clamp(280px, 70vw, 350px);
  }
}

.hero__logo {
  max-width: min(400px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: clamp(1.5rem, 4vh, 2.5rem) 0 clamp(1rem, 3vh, 1.5rem) 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

/* Glass gradient text effect for page headings */
.glass-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto clamp(2rem, 5vh, 3rem) auto;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero__cta-button {
  background: rgba(117, 178, 221, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__cta-button:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero__cta-button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__cta-button {
    animation: none;
  }
}

/* Hero Decorations */
.hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__dumbbell {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0.3;
  filter: brightness(0) saturate(100%) invert(66%) sepia(53%) saturate(376%) hue-rotate(171deg) brightness(95%) contrast(94%);
  animation: float-subtle 4s ease-in-out infinite;
}

.hero__dumbbell--1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.hero__dumbbell--2 {
  top: 70%;
  right: 15%;
  animation-delay: 1.5s;
  transform: rotate(45deg);
}

.hero__dumbbell--3 {
  top: 35%;
  right: 8%;
  animation-delay: 3s;
  transform: rotate(-30deg);
}

.hero__dumbbell--4 {
  top: 80%;
  left: 5%;
  animation-delay: 0.5s;
  transform: rotate(60deg);
}

.hero__dumbbell--5 {
  top: 25%;
  left: 85%;
  animation-delay: 2s;
  transform: rotate(-45deg);
}

.hero__dumbbell--6 {
  top: 55%;
  left: 3%;
  animation-delay: 4s;
  transform: rotate(90deg);
}

.hero__dumbbell--7 {
  top: 10%;
  right: 25%;
  animation-delay: 1s;
  transform: rotate(15deg);
}

.hero__dumbbell--8 {
  top: 85%;
  right: 40%;
  animation-delay: 2.5s;
  transform: rotate(-60deg);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__dumbbell {
    animation: none;
  }
}

/* Team Photo Section */
.team-photo {
  max-width: 1200px;
  margin: 0 auto 48px auto;
  padding: 0 24px;
}

.team-photo__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--text);
  border-radius: 28px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(117, 178, 221, 0.3);
}

.hero-btn:hover,
.hero-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(117, 178, 221, 0.4);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--accent);
  margin: 0 0 12px 0;
}

.card p {
  color: var(--muted);
  margin: 0;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(117, 178, 221, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--text);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-button:hover,
.form-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(117, 178, 221, 0.3);
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 600;
}

.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Responsive embeds */
.embed-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Profile cards */
.profile-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}

.profile-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow:
    0 0 20px rgba(117, 178, 221, 0.4),
    0 0 40px rgba(117, 178, 221, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.profile-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px 0;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Desktop responsive */
@media (min-width: 960px) {
  .navbar-nav,
  .navbar-actions {
    display: flex;
  }

  .hamburger-btn {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr;
  }
  
  .social-links {
    flex-direction: row;
    gap: 16px;
  }
  
  .footer-social-icons {
    justify-content: flex-start;
  }
}