/* FANTOWNS Shared Components Styles */
/* Unified header, footer, breadcrumbs, and mobile navigation */

/* ========== UNIFIED HEADER ========== */
.fantowns-header {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

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

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #60a5fa;
}

.nav-link.active {
  color: #60a5fa;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #60a5fa;
}

.bucket-list-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: inherit;
}

.bucket-list-btn:hover {
  transform: translateY(-2px);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10001;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  position: relative;
  transition: background 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  position: absolute;
  transition: transform 0.3s;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::before {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::after {
  transform: rotate(-45deg) translateY(-8px);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: rgba(15, 20, 25, 0.98);
  backdrop-filter: blur(10px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-nav.open {
  max-height: 100vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .nav-link {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
}

.mobile-nav .nav-link:hover {
  background: rgba(96, 165, 250, 0.1);
}

.bucket-list-btn-mobile {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: flex;
  }

  .header-nav {
    gap: 1rem;
  }

  .fantowns-header {
    padding: 1rem;
  }
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  background: #f8fafc;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-item {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.breadcrumb-item:hover {
  color: #3b82f6;
}

.breadcrumb-item.active {
  color: #1e293b;
  font-weight: 600;
}

.breadcrumb-separator {
  color: #cbd5e0;
  font-size: 0.9rem;
  user-select: none;
}

@media (max-width: 768px) {
  .breadcrumbs {
    padding: 0.8rem 1rem;
  }

  .breadcrumb-item {
    font-size: 0.85rem;
  }
}

/* ========== FOOTER ========== */
.fantowns-footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #60a5fa;
}

.footer-description {
  color: #cbd5e0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-link:hover {
  background: #60a5fa;
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: #60a5fa;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-weight: 600;
  color: #60a5fa;
}

@media (max-width: 768px) {
  .fantowns-footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s;
  z-index: 9999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* ========== ACCESSIBILITY ========== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100000;
}

.skip-to-content:focus {
  top: 0;
}

/* Keyboard focus indicators */
*:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
