/* Index-specific styles */

.hero {
  min-height: calc(100vh - var(--nav-offset));
  padding: clamp(1rem, 4vw, 2rem) 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo {
  width: clamp(180px, 32vw, 360px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(50%);
  filter: none;
  user-select: none;
  /* Optimize rendering */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-subtitle {
  margin: 0 0 0.5rem;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-secondary);
  max-width: 60ch;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  opacity: 0.9;
}

/* Visitor Hints Styles */
.visitor-hints {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
}

.hint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.hint-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  border: 2px solid var(--logo-teal);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hint-content h3 {
  color: var(--logo-teal);
  margin: 0 0 1.5rem 0;
  text-align: center;
  font-size: 1.5rem;
}

.hint-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hint-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 4px solid var(--logo-orange);
}

.hint-step i {
  color: var(--logo-orange);
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.hint-step strong {
  color: var(--text-primary);
}

.hint-close {
  background: var(--logo-teal);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: background 0.2s;
}

.hint-close:hover {
  background: var(--logo-orange);
}

.highlight-human {
  color: var(--logo-orange);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(212, 130, 42, 0.3);
}

/* Hero Navigation Hints */
.hero-navigation {
  margin-top: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 600px;
}

.nav-hint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 0 auto;
}

.nav-hint-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1rem);
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  min-height: 100px;
  justify-content: center;
  gap: 0.5rem;
}

.nav-hint-item:hover,
.nav-hint-item:focus {
  border-color: var(--logo-teal);
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 90, 0.2);
}

.nav-hint-item i {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--logo-orange);
  margin-bottom: 0.25rem;
}

.nav-hint-title {
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--text-primary);
}

.nav-hint-desc {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .nav-hint-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-hint-item {
    min-height: 80px;
    padding: 0.5rem;
  }
}



@media (prefers-color-scheme: dark) {
  .hero-subtitle {
    color: var(--text-muted);
  }
}

/* Announcements Section */
.announcements {
  padding: 0;
  background: var(--bg-primary);
}

.announcements-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.announcements-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}

.announcement-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
  contain: layout style paint;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.announcement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}


@media (min-width: 768px) {
  .announcements-container {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0;
  }

  .announcement-card {
    width: auto;
    margin-bottom: 0.75rem;
  }
}

.announcement-card time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.announcement-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.announcement-card h2 .lucide-icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--logo-orange);
  flex-shrink: 0;
}

.announcement-card .content {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.announcement-card .content p {
  margin: 0 0 0.5rem 0;
}

.announcement-card .content p:last-child {
  margin-bottom: 0;
}

.announcement-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.announcement-card img:hover {
  transform: scale(1.02);
}

.announcement-card canvas {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.announcement-card .chart-container {
  position: relative;
  margin: 0.5rem 0;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.announcement-card .chart-container:hover {
  transform: scale(1.02);
}

.announcement-card .chart-container canvas {
  transition: filter 0.3s ease;
}

.announcement-card .chart-container:hover canvas {
  filter: brightness(1.05);
}

.announcement-card a {
  color: var(--logo-orange);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.announcement-card a:hover {
  color: var(--logo-teal);
  text-decoration: underline;
}

.announcement-card .cta-button {
  background: var(--logo-teal);
  color: white;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.announcement-card .cta-button:hover {
  background: var(--logo-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.link-icon {
  font-size: 0.8rem;
  margin-right: 0.25rem;
  color: var(--logo-orange);
}

/* Update item styles for improved post layout */
.update-item {
  margin-bottom: 1rem;
}

.update-text {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.update-media {
  margin-bottom: 0.5rem;
}

.update-media img {
  max-width: 100px;
  height: auto;
  border-radius: 5px;
}

.update-action a {
  color: var(--logo-orange);
  text-decoration: none;
  font-weight: 500;
}

.update-action a:hover {
  text-decoration: underline;
}



/* Rock Show Text Pop-ups */
.rock-popup {
  position: fixed;
  z-index: 999; /* Below sidebar */
  font-family: 'Courier New', 'Courier', monospace;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.sidebar-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-primary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 1rem;
  height: 100px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--logo-teal);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* CTA Button */
.cta-button {
  background: var(--logo-teal);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: var(--logo-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Phase 1: Micro-Animations */

/* Enhanced card hover lift effects */
.announcement-card,
.card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  will-change: transform;
}

.announcement-card:hover,
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(44, 95, 90, 0.15);
}

/* Glassmorphism card design */
.announcement-card {
  background: rgba(248, 244, 230, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 220, 192, 0.3);
}

@media (prefers-color-scheme: dark) {
  .announcement-card {
    background: rgba(37, 43, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 114, 128, 0.3);
  }
}

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .announcement-card,
  .card {
    transition: none;
    will-change: auto;
  }

  .announcement-card:hover,
  .card:hover {
    transform: none;
  }
}

/* Disable hover animations on mobile */
@media (max-width: 767px) {
  .announcement-card:hover,
  .card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .announcement-card {
    max-height: 300px;
    overflow-y: auto;
  }
}

/* Phase 3: Visual Hierarchy & Design */

/* Gradient overlays for backgrounds */
.hero {
  background: linear-gradient(135deg, 
    var(--bg-primary) 0%, 
    var(--bg-secondary) 50%, 
    var(--bg-primary) 100%);
}

.announcements {
  background: linear-gradient(180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%);
}

@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(135deg,
      var(--bg-primary) 0%,
      rgba(37, 43, 42, 0.8) 50%,
      var(--bg-primary) 100%);
  }
  
  .announcements {
    background: linear-gradient(180deg,
      var(--bg-primary) 0%,
      rgba(37, 43, 42, 0.6) 100%);
  }
}

/* Custom scrollbar - Branded teal/orange theme */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--logo-teal) 0%, var(--logo-orange) 100%);
  border-radius: 6px;
  border: 2px solid var(--bg-secondary);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--logo-orange) 0%, var(--logo-teal) 100%);
}

::-webkit-scrollbar-corner {
  background: var(--bg-secondary);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--logo-teal) var(--bg-secondary);
}

/* Enhanced button states with micro-animations */
button,
.hint-close,
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button::before,
.hint-close::before,
.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::before,
.hint-close:active::before,
.cta-button:active::before {
  width: 300px;
  height: 300px;
}

button:hover,
.hint-close:hover,
.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(44, 95, 90, 0.25);
}

button:active,
.hint-close:active,
.cta-button:active {
  transform: translateY(0) scale(0.98);
}


