/* ============================================
   FTC Team 19098 - Eastern Foxes
   Component Styles
   ============================================ */

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(70, 35, 25, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(6px, 1vw, 8px) clamp(16px, 3vw, 24px);
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  height: clamp(32px, 5vw, 40px);
}

.navbar-logo img {
  height: 100%;
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: clamp(16px, 3vw, 32px);
}

.navbar-item {
  position: relative;
}

.navbar-link {
  font-family: var(--font-headers);
  color: #FFFFFF;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  padding: clamp(6px, 1vw, 8px) 0;
  transition: var(--transition-fast);
  letter-spacing: 0.05em;
}

.navbar-link:hover {
  color: #FF5D24;
}

.navbar-link.active {
  color: #FF5D24;
  border-bottom: 3px solid #FF5D24;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.navbar-toggle-bar {
  width: 30px;
  height: 3px;
  background-color: var(--color-text-accent);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Menu Overlay */
.navbar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  cursor: pointer;
}

/* Show overlay when checkbox is checked */
#mobile-menu-toggle:checked ~ .navbar-overlay {
  display: block;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  font-family: var(--font-headers);
  display: inline-block;
  padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 32px);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  text-align: center;
  border: 2px solid var(--color-btn-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-normal);
  letter-spacing: var(--letter-spacing-wide);
}

.btn-primary {
  background-color: var(--color-btn-primary);
  color: var(--color-btn-text);
}

.btn-primary:hover {
  background-color: var(--color-btn-primary-hover);
  color: var(--color-btn-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-btn-primary);
  border-color: var(--color-btn-primary);
}

.btn-outline:hover {
  background-color: var(--color-btn-primary);
  color: var(--color-btn-text);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: clamp(18px, 2vw, 22px);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
  border-left: 4px solid var(--color-text-accent);
}

/* Team Member Card - Horizontal Layout */
.team-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  padding: clamp(12px, 2vw, 16px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.team-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-glow);
}

.team-card-image {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: var(--radius-full);
  border: 1px solid #D3D3D3;
  object-fit: cover;
  flex-shrink: 0;
}

.team-card-text {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5vw, 6px);
  text-align: left;
}

.team-card-name {
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin: 0;
}

.team-card-role {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin: 0;
}

/* Role-based card outlines */
.team-card-pr {
  border-color: var(--PR_COLOR);
}

.team-card-construction {
  border-color: var(--CONSTRUCTION_COLOR);
}

.team-card-programming {
  border-color: var(--PROGRAMMING_COLOR);
}

.team-card-alumni {
  border-color: var(--ALUMNI_COLOR);
}

.team-card-mentor {
  border-color: var(--MENTOR_COLOR);
}

.team-card-volunteer {
  border-color: var(--VOLUNTEER_COLOR);
}

/* Leader name colors (match department) */
.team-card-name-pr-leader {
  color: var(--PR_COLOR);
}

.team-card-name-construction-leader {
  color: var(--CONSTRUCTION_COLOR);
}

.team-card-name-programming-leader {
  color: var(--PROGRAMMING_COLOR);
}

/* Mentor name color */
.team-card-name-mentor {
  color: var(--MENTOR_COLOR);
}

/* Sponsor Logo Card */
.sponsor-card {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-normal);
  height: clamp(80px, 12vw, 120px);
}

.sponsor-card:hover {
  transform: scale(1.1);
}

.sponsor-logo {
  width: 220px;
  height: 120px;
  min-width: 220px;
  min-height: 120px;
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
  transition: var(--transition-fast);
  display: block;
}

.sponsor-logo-invert {
  filter: brightness(0) invert(1);
}

/* Award Card */
.award-card {
  border-radius: var(--radius-xl);
  padding: clamp(12px, 2vw, 16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 3vw, 24px);
  transition: var(--transition-fast);
  opacity: 0.70;
}

.award-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  opacity: 0.80;
}

.award-card-worlds {
  background-color: var(--color-award-worlds);
}

.award-card-mti {
  background-color: var(--color-award-mti);
}

.award-card-nationals {
  background-color: var(--color-award-nationals);
}

.award-card-regionals {
  background-color: var(--color-award-regionals);
}

.award-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5vw, 6px);
}

.award-card-label {
  font-family: var(--font-headers);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.award-card-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}

.award-card-medal {
  font-size: clamp(24px, 4vw, 32px);
  margin-left: clamp(12px, 2vw, 16px);
}

/* Resource Card */
.resource-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 32px);
  text-align: center;
}

.resource-card-title {
  font-family: var(--font-headers);
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--color-text-accent);
  margin-bottom: clamp(16px, 3vw, 24px);
  text-transform: uppercase;
}

.resource-card-links {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 16px);
}

.resource-link {
  font-family: var(--font-body);
  display: inline-block;
  padding: clamp(12px, 2vw, 16px);
  background-color: var(--color-btn-primary);
  color: var(--color-btn-text);
  border-radius: var(--radius-md);
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  font-size: clamp(12px, 1.5vw, 14px);
  transition: var(--transition-fast);
}

.resource-link:hover {
  background-color: var(--color-btn-primary-hover);
  color: var(--color-btn-text);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--color-bg-section);
  padding: clamp(32px, 5vw, 48px) clamp(16px, 3vw, 24px);
  margin-top: clamp(32px, 6vw, 64px);
  text-align: center;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.footer-social {
  display: flex;
  gap: clamp(20px, 4vw, 32px);
}

.footer-social-link {
  display: inline-block;
  transition: var(--transition-fast);
}

.footer-social-icon {
  width: clamp(24px, 4vw, 32px);
  height: clamp(24px, 4vw, 32px);
  fill: var(--color-text-primary);
  transition: var(--transition-fast);
}

.footer-social-link:hover .footer-social-icon {
  transform: scale(1.2);
}

.footer-social-link:hover .footer-social-icon.footer-social-facebook {
  fill: var(--color-social-facebook);
}

.footer-social-link:hover .footer-social-icon.footer-social-instagram {
  fill: var(--color-social-instagram);
}

.footer-social-link:hover .footer-social-icon.footer-social-youtube {
  fill: var(--color-social-youtube);
}

.footer-social-link:hover .footer-social-icon.footer-social-linkedin {
  fill: var(--color-social-linkedin);
}

.footer-social-link:hover .footer-social-icon.footer-social-tiktok {
  fill: var(--color-social-tiktok);
}

.footer-contact-link {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  font-size: clamp(13px, 1.5vw, 15px);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.footer-contact-link:hover {
  color: var(--color-text-accent);
}

.footer-text {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  font-size: clamp(12px, 1.5vw, 14px);
  margin-top: clamp(16px, 3vw, 24px);
}

/* ============================================
   SIDEBAR NAVIGATION (Resources Page)
   ============================================ */

.sidebar-layout {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
}

.sidebar {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 24px);
  position: sticky;
  top: 80px;
}

.sidebar-title {
  font-family: var(--font-headers);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--color-text-accent);
  margin-bottom: clamp(16px, 3vw, 24px);
  text-align: center;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 16px);
}

.sidebar-item {
  width: 100%;
}

.sidebar-link {
  font-family: var(--font-body);
  display: block;
  padding: clamp(12px, 2vw, 16px);
  color: var(--color-text-primary);
  background-color: rgba(255, 93, 36, 0.1);
  border-radius: var(--radius-md);
  text-align: center;
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  font-size: clamp(12px, 1.5vw, 14px);
  transition: var(--transition-fast);
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: var(--color-btn-primary);
  color: var(--color-btn-text);
}

/* ============================================
   RESOURCES PAGE - NEW LAYOUT
   ============================================ */

.resources-main-content {
  
}

/* 3D Models Container */
.models-container {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.robot-3d-section {
  width: 100%;
  max-width: 100%;
  margin: 40px auto;
  text-align: center;
  display: block;
}

/* 3D Model Viewer - Make Responsive */
model-viewer {
  width: 75%;
  max-width: none;
  height: 60vh;
  border-radius: 20px;
  background-color: #000000;
  display: block;
  margin: 0 auto;
}

/* 3D Model Lazy-Load Placeholder */
.model-placeholder {
  width: 75%;
  max-width: none;
  height: 60vh;
  border-radius: 20px;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
}

.load-model-btn {
  font-family: var(--font-headers);
  padding: clamp(16px, 3vw, 20px) clamp(32px, 5vw, 48px);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  background-color: var(--color-btn-primary);
  color: var(--color-btn-text);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-normal);
  letter-spacing: var(--letter-spacing-wide);
  box-shadow: 0 4px 12px rgba(255, 93, 36, 0.3);
}

.load-model-btn:hover {
  background-color: var(--color-btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 93, 36, 0.5);
}

.loading-spinner {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  font-size: clamp(16px, 2vw, 20px);
  text-align: center;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Robot Photo/Slideshow Section */
.robot-photo-section {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-row: 1 / 3;
  min-height: clamp(400px, 50vw, 600px);
}

.robot-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-text-accent);
}

.robot-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-slide-active {
  opacity: 1;
  animation: slideshow 9s infinite;
}

.robot-slide:nth-child(2) {
  animation-delay: 3s;
}

.robot-slide:nth-child(3) {
  animation-delay: 6s;
}

@keyframes slideshow {
  0% { opacity: 0; }
  11% { opacity: 1; }
  33% { opacity: 1; }
  44% { opacity: 0; }
  100% { opacity: 0; }
}

.robot-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Static 2-Photo Layout */
.robot-photos-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-text-accent);
  overflow: hidden;
}

.robot-photo-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.robot-photo-divider {
  width: 4px;
  background-color: var(--color-text-accent);
  flex-shrink: 0;
}

/* Slideshow Navigation Dots */
.slideshow-dots {
  display: flex;
  gap: clamp(8px, 1.5vw, 12px);
  margin-top: clamp(12px, 2vw, 16px);
  justify-content: center;
}

.slideshow-dot {
  width: clamp(8px, 1.5vw, 12px);
  height: clamp(8px, 1.5vw, 12px);
  border-radius: var(--radius-full);
  background-color: rgba(255, 93, 36, 0.3);
  transition: var(--transition-fast);
  cursor: pointer;
}

.slideshow-dot-active {
  background-color: var(--color-text-accent);
  animation: dotPulse 9s infinite;
}

.slideshow-dot:nth-child(2) {
  animation-delay: 3s;
}

.slideshow-dot:nth-child(3) {
  animation-delay: 6s;
}

@keyframes dotPulse {
  0% { background-color: rgba(255, 93, 36, 0.3); }
  11% { background-color: var(--color-text-accent); }
  33% { background-color: var(--color-text-accent); }
  44% { background-color: rgba(255, 93, 36, 0.3); }
  100% { background-color: rgba(255, 93, 36, 0.3); }
}

/* Resource Cards Grid - 2x2 Layout */
.resources-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 24px);
  grid-column: 2;
  grid-row: 1 / 3;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.stats-section {
  padding: clamp(32px, 6vw, 64px) 0;
  text-align: center;
}

.stats-header {
  font-family: var(--font-3d-titles);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--color-text-accent);
  text-transform: uppercase;
  margin-bottom: clamp(24px, 4vw, 48px);
  text-shadow:
    -3px 3px 0 #fff,
    -4px 4px 0 rgba(255, 255, 255, 0.8),
    -5px 5px 0 rgba(255, 255, 255, 0.6);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 2vw, 20px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

.stat-box {
  background-color: rgba(255, 93, 36, 0.85);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px) clamp(12px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  transition: var(--transition-normal);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 93, 36, 0.4);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: var(--weight-black);
  color: #FFFFFF;
  line-height: 1;
  margin: 0;
}

.stat-label {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.5vw, 16px);
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ============================================
   BORDERED IMAGE FRAME (Hero Images)
   ============================================ */

.image-frame {
  border: 4px solid var(--color-text-accent);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: block;
  width: 100%;
}

.image-frame img {
  width: 100%;
  border-radius: var(--radius-sm);
}
