/* =====================================================
   IRONMAN Conference App - Core Stylesheet
   Replaces Tailwind utilities with custom components
   Matching original conference HTML design
   ===================================================== */

/* ===========================================
   1. BASE STYLES & RESET
   =========================================== */

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

body {
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
}

/* ===========================================
   2. IRONMAN HEADER & BRANDING
   =========================================== */

.ironman-header {
  background: #fff;
  color: #000;
  padding: 8px 20px;
  border-bottom: 4px solid #E60000;
  position: relative;
}

.ironman-header-content {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: -20px;
}

.ironman-logo-container {
  flex-shrink: 0;
  width: 220px;
}

.ironman-logo {
  width: 100%;
  height: auto;
  max-height: 55px;
  object-fit: contain;
}

.ironman-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 1.4;
  padding-right: 60px;
}

@media (max-width: 768px) {
  .ironman-logo-container {
    width: 190px;
  }

  .ironman-logo {
    max-height: 48px;
  }

  .ironman-header-content {
    gap: 6px;
    margin-left: -15px;
  }
}

@media (max-width: 480px) {
  .ironman-logo-container {
    width: 145px;
  }

  .ironman-logo {
    max-height: 40px;
  }

  .ironman-header-content {
    gap: 5px;
    margin-left: -10px;
  }

  .ironman-header {
    padding: 6px 15px;
  }
}

.ironman-header h1 {
  font-size: 2.5em;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.ironman-header h1 .ironman-brand {
  color: #E60000;
}

.ironman-header .subtitle {
  font-size: 1.1em;
  margin: 0;
  color: #333;
  font-weight: 600;
}

.ironman-header .tagline {
  font-size: 0.95em;
  color: #E60000;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin: 0;
}

/* Medium screens: larger subtitle and tagline */
@media (min-width: 769px) and (max-width: 1200px) {
  .ironman-header .subtitle {
    font-size: 1.3em;
  }

  .ironman-header .tagline {
    font-size: 1.1em;
  }
}

/* Mobile: smaller subtitle and tagline (must come after base rules) */
@media (max-width: 768px) {
  .ironman-header .subtitle {
    font-size: 0.55em;
  }

  .ironman-header .tagline {
    font-size: 0.38em;
  }
}

@media (max-width: 480px) {
  .ironman-header .subtitle {
    font-size: 0.45em;
  }

  .ironman-header .tagline {
    font-size: 0.32em;
  }
}

@media (max-width: 360px) {
  .ironman-header .subtitle {
    font-size: 0.38em;
  }

  .ironman-header .tagline {
    font-size: 0.26em;
  }
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  display: inline-block;
  z-index: 2000;
}

.user-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E60000;
  border: 2px solid white;
  cursor: pointer;
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-avatar:hover {
  background: #cc0000;
}

.avatar-initials {
  color: white;
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  user-select: none;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  z-index: 2001;
}

.dropdown-menu-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.dropdown-user-name {
  font-weight: 600;
  color: #171717;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.dropdown-user-email {
  font-size: 0.8125rem;
  color: #737373;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #404040;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}

.dropdown-item:hover {
  background-color: #fafafa;
  color: #171717;
  text-decoration: none;
}

.dropdown-item small {
  display: block;
  color: #737373;
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

.dropdown-item-danger:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

.dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0.25rem 0;
}

@media (max-width: 640px) {
  .dropdown-menu {
    min-width: 220px;
    right: -8px;
  }

  .user-dropdown {
    right: 10px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
  }

  .avatar-initials {
    font-size: 0.75rem;
  }

  .ironman-header-text {
    padding-right: 50px;
  }
}

@media (max-width: 768px) {
  .ironman-dropdown-menu {
    min-width: 240px;
  }
}

/* ===========================================
   3. NAVIGATION & TABS
   =========================================== */

/* Desktop Tab Navigation */
.ironman-view-tabs {
  background: #fff;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  border-bottom: 2px solid #E60000;
}

.ironman-tab-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15),
              0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.ironman-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.ironman-tab-btn:hover::before {
  left: 100%;
}

.ironman-tab-btn:hover {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25),
              0 3px 6px rgba(0, 0, 0, 0.15);
}

.ironman-tab-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ironman-tab-btn.active {
  background: #fff;
  color: #1a202c;
  border: 2px solid #2d3748;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12),
              0 1px 3px rgba(0, 0, 0, 0.08),
              inset 0 0 0 1px rgba(45, 55, 72, 0.1);
  font-weight: 900;
}

.ironman-tab-btn.active::before {
  display: none;
}

.ironman-tab-btn.active:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15),
              0 2px 4px rgba(0, 0, 0, 0.1),
              inset 0 0 0 2px rgba(45, 55, 72, 0.15);
}

.ironman-tab-btn.secondary {
  background: #fff;
  border: 2px solid #E60000;
  color: #E60000;
}

.ironman-tab-btn.secondary:hover {
  background: #E60000;
  color: #fff;
}

/* Mobile Bottom Navigation - HIDDEN */
.ironman-mobile-nav {
  display: none !important;
}

.ironman-mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ironman-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  border-top: 3px solid transparent;
}

.ironman-mobile-nav-item:hover {
  background: #f5f5f5;
}

.ironman-mobile-nav-item.active {
  color: #E60000;
  border-top-color: #E60000;
  font-weight: 700;
}

/* ===========================================
   4. LAYOUT CONTAINERS & PANELS
   =========================================== */

/* Main Two-Column Desktop Layout */
.ironman-main-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: calc(100vh - 250px);
  background: #fff;
}

/* Single Column for Single-View Pages */
.ironman-single-view {
  grid-template-columns: 1fr;
}

/* Left Schedule Panel */
.ironman-schedule-panel {
  background: #fff;
  color: #000;
  padding: 30px;
  overflow-y: auto;
  border-right: 4px solid #E60000;
}

/* Right Map/Info Panel */
.ironman-map-panel {
  background: #fff;
  padding: 30px;
  overflow-y: auto;
  display: none; /* Hidden by default, shown on desktop */
}

/* Show map panel on desktop */
@media (min-width: 1201px) {
  .ironman-map-panel {
    display: block !important;
  }
}

/* Custom Scrollbar */
.ironman-schedule-panel::-webkit-scrollbar,
.ironman-map-panel::-webkit-scrollbar,
.ironman-personal-info-panel::-webkit-scrollbar {
  width: 10px;
}

.ironman-schedule-panel::-webkit-scrollbar-track,
.ironman-map-panel::-webkit-scrollbar-track,
.ironman-personal-info-panel::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.ironman-schedule-panel::-webkit-scrollbar-thumb,
.ironman-map-panel::-webkit-scrollbar-thumb,
.ironman-personal-info-panel::-webkit-scrollbar-thumb {
  background: #E60000;
  border-radius: 5px;
}

.ironman-schedule-panel::-webkit-scrollbar-thumb:hover,
.ironman-map-panel::-webkit-scrollbar-thumb:hover,
.ironman-personal-info-panel::-webkit-scrollbar-thumb:hover {
  background: #cc0000;
}

/* Panel Headers */
.ironman-panel-header {
  margin-bottom: 25px;
}

.ironman-panel-title {
  color: #E60000;
  font-size: 1.8em;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

/* ===========================================
   5. EVENT CARDS & SCHEDULE ITEMS
   =========================================== */

.ironman-day-header {
  background: #E60000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  margin: 25px 0 15px 0;
}

.ironman-event-card {
  background: #f9f9f9;
  border-left: 4px solid #E60000;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.ironman-event-card:hover {
  background: #fff;
  transform: translateX(5px);
  border-left-width: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Add a subtle animation on hover */
.ironman-event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 0, 0, 0.05), transparent);
  transition: left 0.5s ease;
}

.ironman-event-card:hover::before {
  left: 100%;
}

/* Event Type Variations */
.ironman-event-card.split {
  border-left-color: #ffc107;
}

.ironman-event-card.breakout {
  border-left-color: #00ff00;
}

/* Active/Selected State */
.ironman-event-card.active {
  background: #fff;
  border-left-width: 8px;
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.2);
  transform: translateX(8px);
}

/* Pulse animation for newly selected cards */
@keyframes event-pulse {
  0% {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  50% {
    box-shadow: 0 4px 16px rgba(230, 0, 0, 0.3);
  }
  100% {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
}

.ironman-event-card.highlighting {
  animation: event-pulse 0.6s ease;
}

.ironman-event-time {
  color: #E60000;
  font-weight: 700;
  font-size: 0.85em;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.ironman-event-title {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 5px;
  color: #000;
}

.ironman-event-location {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.ironman-event-details {
  color: #333;
  font-size: 0.9em;
  line-height: 1.5;
  margin-top: 8px;
}

/* Event Badges */
.ironman-event-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75em;
  margin-left: 10px;
  font-weight: 600;
}

.ironman-badge-all {
  background: #E60000;
  color: #fff;
}

.ironman-badge-split {
  background: #ffc107;
  color: #000;
}

.ironman-badge-breakout {
  background: #00ff00;
  color: #000;
}

/* Team Badges */
.ironman-team-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 0.8em;
}

.ironman-team-badge.blue { background: #0066cc; color: #fff; }
.ironman-team-badge.red { background: #cc0000; color: #fff; }
.ironman-team-badge.orange { background: #ff6600; color: #fff; }
.ironman-team-badge.green { background: #009900; color: #fff; }

/* Breakout Sessions Grid */
.ironman-breakout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.ironman-breakout-session {
  background: #fff;
  border: 2px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #333;
}

/* ===========================================
   6. LEGEND & INFO COMPONENTS
   =========================================== */

.ironman-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.ironman-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: #333;
}

.ironman-legend-color {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

/* ===========================================
   7. FORMS & INPUTS
   =========================================== */

.ironman-lookup-form {
  max-width: 500px;
  margin: 0 auto;
}

.ironman-lookup-title {
  color: #E60000;
  font-size: 2em;
  font-weight: 900;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  text-align: center;
}

.ironman-input {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  border: 2px solid #ddd;
  background: #f9f9f9;
  color: #000;
  border-radius: 4px;
  margin-bottom: 20px;
}

.ironman-input:focus {
  outline: none;
  border-color: #E60000;
  background: #fff;
}

/* ===========================================
   8. BUTTONS & ACTIONS
   =========================================== */

.ironman-btn {
  background: #E60000;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.ironman-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.ironman-btn-large {
  padding: 15px 50px;
  font-size: 1.2em;
  letter-spacing: 0.5px;
}

.ironman-btn-secondary {
  background: #fff;
  border: 2px solid #E60000;
  color: #E60000;
}

.ironman-btn-secondary:hover {
  background: #E60000;
  color: #fff;
}

.ironman-btn-dark {
  background: #000;
  color: #fff;
}

.ironman-btn-dark:hover {
  background: #333;
}

.ironman-print-btn {
  background: #E60000;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ironman-print-btn:hover {
  background: #cc0000;
}

/* ===========================================
   9. TABLES
   =========================================== */

.ironman-table {
  width: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.ironman-table table {
  width: 100%;
  border-collapse: collapse;
}

.ironman-table th {
  background: #E60000;
  color: #fff;
  padding: 12px;
  text-align: left;
  font-size: 0.9em;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.ironman-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  color: #333;
}

.ironman-table tr:hover {
  background: #f9f9f9;
}

.ironman-table tr:last-child td {
  border-bottom: none;
}

/* ===========================================
   10. ACCOMMODATION CARDS
   =========================================== */

.ironman-accommodation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.ironman-accommodation-card {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-top: 4px solid #E60000;
  transition: all 0.3s;
}

.ironman-accommodation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ironman-accommodation-card h3 {
  color: #E60000;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.ironman-accommodation-card .guest-count {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.ironman-accommodation-card .details {
  color: #333;
  line-height: 1.6;
  font-size: 0.95em;
}

/* Hotel Guests List */
.ironman-hotel-guests {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #ddd;
}

.ironman-hotel-guests h4 {
  color: #000;
  margin-bottom: 10px;
  font-size: 0.95em;
  font-weight: 700;
}

.ironman-guests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.ironman-guest-item {
  padding: 6px 10px;
  background: #f5f5f5;
  border-radius: 3px;
  font-size: 0.85em;
  border-left: 3px solid #ccc;
}

.ironman-guest-item.current-user {
  background: #E60000;
  color: #fff;
  font-weight: 700;
  border-left-color: #000;
}

/* ===========================================
   11. PERSONAL INFO CARDS
   =========================================== */

.ironman-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ironman-info-card {
  background: #f9f9f9;
  border-left: 4px solid #E60000;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ironman-info-card h3 {
  color: #000;
  font-size: 1.2em;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.ironman-info-card-content {
  color: #333;
  line-height: 1.8;
}

.ironman-info-card-content strong {
  color: #000;
  display: inline-block;
  min-width: 100px;
}

/* ===========================================
   12. MAP CONTAINER
   =========================================== */

.ironman-map-title {
  color: #E60000;
  font-size: 1.8em;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.ironman-map-container {
  height: 500px;
  min-height: 500px;
  border-radius: 4px;
  border: 2px solid #ddd;
  position: relative;
  background: #f5f5f5;
}

#map {
  height: 100%;
  width: 100%;
  border-radius: 4px;
}

/* ===========================================
   13. TEAM SELECTION
   =========================================== */

.ironman-team-selection {
  background: #f9f9f9;
  border: 2px solid #E60000;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.ironman-team-selection h3 {
  color: #E60000;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.ironman-team-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.ironman-team-select-btn {
  padding: 15px;
  border: 3px solid;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
}

.ironman-team-select-btn.blue { border-color: #0066cc; color: #0066cc; }
.ironman-team-select-btn.blue.active { background: #0066cc; color: #fff; }
.ironman-team-select-btn.red { border-color: #cc0000; color: #cc0000; }
.ironman-team-select-btn.red.active { background: #cc0000; color: #fff; }
.ironman-team-select-btn.orange { border-color: #ff6600; color: #ff6600; }
.ironman-team-select-btn.orange.active { background: #ff6600; color: #fff; }
.ironman-team-select-btn.green { border-color: #009900; color: #009900; }
.ironman-team-select-btn.green.active { background: #009900; color: #fff; }

/* ===========================================
   14. UTILITY CLASSES
   =========================================== */

.ironman-hidden {
  display: none !important;
}

.ironman-text-center {
  text-align: center;
}

.ironman-uppercase {
  text-transform: uppercase;
}

.ironman-bold {
  font-weight: 700;
}

.ironman-letter-spacing-1 {
  letter-spacing: 1px;
}

.ironman-letter-spacing-2 {
  letter-spacing: 2px;
}

.ironman-letter-spacing-3 {
  letter-spacing: 3px;
}

/* ===========================================
   15. RESPONSIVE DESIGN
   =========================================== */

/* Desktop-specific styles */
@media (min-width: 1201px) {
  /* Ensure map panel is visible on desktop for two-column layouts */
  .ironman-main-container:not(.ironman-single-view) .ironman-map-panel {
    display: block !important;
  }

  /* Ensure proper two-column layout ONLY for containers without single-view class */
  .ironman-main-container:not(.ironman-single-view) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 1200px) {
  /* Switch to single column layout */
  .ironman-main-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  /* Remove border on mobile */
  .ironman-schedule-panel {
    border-right: none;
    border-bottom: 4px solid #E60000;
  }

  /* Hide map panel on mobile */
  .ironman-map-panel {
    display: none !important;
  }

  /* Make navigation responsive on mobile - 2x2 grid */
  .ironman-view-tabs {
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 12px;
    gap: 8px;
  }

  .ironman-tab-btn {
    padding: 8px 12px;
    font-size: 0.85em;
    border-radius: 6px;
  }

  /* Adjust header for mobile */
  .ironman-header h1 {
    font-size: 1.8em;
    letter-spacing: 2px;
  }

  /* Adjust panel padding */
  .ironman-schedule-panel,
  .ironman-map-panel {
    padding: 20px;
  }

  /* Make map smaller on mobile */
  .ironman-map-container {
    height: 400px;
    margin-bottom: 80px; /* Space for mobile nav */
  }

  /* Single column for breakout sessions */
  .ironman-breakout-grid {
    grid-template-columns: 1fr;
  }

  /* Stack team buttons on mobile */
  .ironman-team-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Adjust accommodation cards */
  .ironman-accommodation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Further mobile adjustments */
  .ironman-header h1 {
    font-size: 1.5em;
    letter-spacing: 1px;
  }

  .ironman-panel-title {
    font-size: 1.4em;
  }

  .ironman-event-card {
    padding: 12px;
  }

  .ironman-tab-btn {
    padding: 10px 15px;
    font-size: 0.75em;
    letter-spacing: 0.5px;
    border-radius: 6px;
  }
}

/* ===========================================
   16. ANIMATIONS & TRANSITIONS
   =========================================== */

/* Smooth transitions for all interactive elements */
.ironman-event-card,
.ironman-tab-btn,
.ironman-btn,
.ironman-accommodation-card,
.ironman-team-select-btn,
.ironman-mobile-nav-item {
  transition: all 0.3s ease;
}

/* Hover states only for non-touch devices */
@media (hover: hover) {
  .ironman-event-card:hover {
    transform: translateX(5px);
  }

  .ironman-tab-btn:hover,
  .ironman-btn:hover {
    transform: translateY(-2px);
  }

  .ironman-accommodation-card:hover {
    transform: translateY(-4px);
  }
}

/* Loading state */
.ironman-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Fade in animation */
@keyframes ironman-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ironman-fade-in {
  animation: ironman-fade-in 0.3s ease;
}

/* Slide in from right */
@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ironman-slide-in {
  animation: slide-in-right 0.4s ease;
}

/* Shake animation for errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease;
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ripple effect for buttons */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.ironman-bounce {
  animation: bounce 1s ease;
}

/* Glow effect for important elements */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(230, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.8), 0 0 30px rgba(230, 0, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 5px rgba(230, 0, 0, 0.5);
  }
}

.ironman-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Scroll to top button hover */
.ironman-scroll-top:hover {
  transform: scale(1.1);
  background: #cc0000 !important;
}

/* ===========================================
   17. PRINT STYLES
   =========================================== */

@media print {
  .ironman-mobile-nav,
  .ironman-view-tabs,
  .ironman-print-btn {
    display: none !important;
  }

  .ironman-header {
    border-bottom: 2px solid #000;
  }

  .ironman-event-card {
    page-break-inside: avoid;
  }

  .ironman-main-container {
    display: block;
    height: auto;
  }

  .ironman-schedule-panel {
    border: none;
    padding: 10px;
  }
}

/* ===========================================
   18. ACCESSIBILITY
   =========================================== */

/* Focus states for keyboard navigation */
.ironman-tab-btn:focus,
.ironman-btn:focus,
.ironman-input:focus,
.ironman-team-select-btn:focus {
  outline: 3px solid #E60000;
  outline-offset: 2px;
}

/* Skip to content link */
.ironman-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #E60000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.ironman-skip-link:focus {
  top: 0;
}

/* Screen reader only text */
.ironman-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
