/* Modern Nahiku Camp Staff Hub - Inspired by Punahou Design */

/* Import Punahou Fonts */
@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@100;200;300;400;500;600;700;800;900&family=Slabo+27px&display=swap');

/* CSS Variables - Punahou Inspired Color System */
:root {
  /* Primary Colors - Blue and Gold */
  --blue-900: #0D1B2A;
  --blue-800: #1E3A8A;
  --blue-700: #1E40AF;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-300: #93C5FD;
  --blue-200: #BFDBFE;
  --blue-100: #DBEAFE;
  --blue-50: #EFF6FF;
  
  --gold-900: #92400E;
  --gold-800: #B45309;
  --gold-700: #D97706;
  --gold-600: #F59E0B;
  --gold-500: #FBBF24;
  --gold-400: #FCD34D;
  --gold-300: #FDE68A;
  --gold-200: #FEF3C7;
  --gold-100: #FFFBEB;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Spacing Scale */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Typography Scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Font Families */
  --font-primary: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Slabo 27px', Georgia, serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--gold-100) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header with Punahou Styling */
.header {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 100%);
  color: var(--white);
  padding: var(--space-6) 0;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://bbk12e1-cdn.myschoolcdn.com/ftpimages/1406/logo/Punahou-halaTree-white.png') no-repeat;
  background-size: 100px;
  background-position: right 2rem top 50%;
  opacity: 0.1;
  pointer-events: none;
}

.header__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header__text {
  flex: 1;
}

.header__title {
  font-family: var(--font-secondary);
  font-size: var(--text-4xl);
  font-weight: 400;
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}

.header__subtitle {
  font-size: var(--text-xl);
  color: var(--gold-200);
  font-weight: 300;
  letter-spacing: 0.025em;
}

/* Main Content */
.main {
  padding: var(--space-8) 0 var(--space-16);
}

/* Modern Card Design */
.card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--space-8);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Time and Date Display */
.time-display {
  text-align: center;
  margin-bottom: var(--space-8);
}

.current-time {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: var(--space-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.current-date {
  font-size: var(--text-xl);
  color: var(--gray-600);
  font-weight: 400;
  line-height: 1.3;
}

/* Current Block Display */
.current-block {
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-200) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--gold-300);
  position: relative;
  overflow: hidden;
}

.current-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--gold-200) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.current-block__content {
  position: relative;
  z-index: 2;
}

.current-block__time {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.current-block__name {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.current-block__status {
  font-size: var(--text-lg);
  color: var(--gray-700);
  font-weight: 400;
  line-height: 1.4;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
  background: var(--white);
  padding: var(--space-3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.nav-tab {
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--gray-700);
  text-decoration: none;
  display: inline-block;
}

.nav-tab:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--blue-700);
  transform: translateY(-1px);
}

.nav-tab.active {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 100%);
  border-color: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

/* Day Selector */
.day-selector {
  text-align: center;
  margin-bottom: var(--space-6);
}

.day-select {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  min-width: 180px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.day-select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.day-select:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
}

/* Schedule Table */
.schedule-container {
  margin-bottom: var(--space-8);
}

.schedule-grid {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: var(--text-base);
  line-height: 1.5;
}

.schedule-table th {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: var(--space-4) var(--space-3);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
  letter-spacing: 0.025em;
}

.schedule-table th:first-child {
  border-top-left-radius: var(--radius-2xl);
}

.schedule-table th:last-child {
  border-top-right-radius: var(--radius-2xl);
}

.schedule-table td {
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.schedule-table tr:hover {
  background: var(--blue-25);
}

.schedule-table tr.current-time {
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-200) 100%);
  font-weight: 600;
  border-left: 4px solid var(--blue-600);
}

.schedule-table tr.current-time td {
  border-bottom-color: var(--gold-300);
}

.time-block {
  font-weight: 600;
  color: var(--blue-800);
  min-width: 140px;
  font-size: var(--text-sm);
  line-height: 1.4;
}

.time-block small {
  display: block;
  font-weight: 400;
  color: var(--gray-600);
  margin-top: var(--space-1);
}

.activity-cell {
  min-width: 160px;
  font-size: var(--text-sm);
}

.activity-name {
  display: block;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.activity-location {
  display: block;
  font-size: var(--text-xs);
  color: var(--gray-600);
  line-height: 1.3;
  font-weight: 400;
}

.all-groups-together {
  text-align: center;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-50);
  font-size: var(--text-sm);
  line-height: 1.4;
  font-style: italic;
}

.all-groups-together.current-time {
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-200) 100%);
  color: var(--blue-800);
  font-weight: 600;
  font-style: normal;
}

.selected-group {
  background: var(--blue-50) !important;
  border-left: 3px solid var(--blue-500) !important;
  font-weight: 600;
}

.selected-group .activity-name {
  color: var(--blue-800);
  font-weight: 700;
}

.selected-group.current-time {
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-200) 100%) !important;
  border-left: 4px solid var(--blue-600) !important;
}

/* Holiday Message */
.holiday-message {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-200) 100%);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--gold-400);
  position: relative;
  overflow: hidden;
}

.holiday-message::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--gold-300) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.holiday-message__content {
  position: relative;
  z-index: 2;
}

.holiday-icon {
  font-size: 4rem;
  margin-bottom: var(--space-6);
  line-height: 1;
}

.holiday-title {
  font-family: var(--font-secondary);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--blue-800);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.holiday-text {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--blue-700);
  margin-bottom: var(--space-6);
  line-height: 1.4;
}

.holiday-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-700);
  font-style: italic;
  font-weight: 400;
}

/* Staff Contact Section */
.staff-section {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: var(--space-8);
}

.staff-section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.staff-section__title {
  font-family: var(--font-secondary);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--blue-800);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.staff-section__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  font-weight: 400;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.staff-card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.staff-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.staff-card__header {
  margin-bottom: var(--space-4);
}

.staff-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: var(--space-1);
}

.staff-card__role {
  font-size: var(--text-sm);
  color: var(--gold-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.staff-list {
  list-style: none;
}

.staff-member {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  transition: all var(--transition-fast);
}

.staff-member:hover {
  background: var(--blue-50);
}

.staff-member__name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.staff-member__contact {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-1);
}

.staff-member__hours {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-style: italic;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.quick-action {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  text-decoration: none;
  color: var(--gray-700);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.quick-action:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-action__icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.quick-action__title {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.quick-action__subtitle {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* Weather Widget */
.weather-container {
  text-align: center;
  margin-top: var(--space-8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  .header {
    padding: var(--space-4) 0;
  }
  
  .header__content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .header__logo {
    height: 40px;
  }
  
  .header__title {
    font-size: var(--text-2xl);
  }
  
  .header__subtitle {
    font-size: var(--text-lg);
  }
  
  .main {
    padding: var(--space-6) 0 var(--space-12);
  }
  
  .card {
    padding: var(--space-6);
  }
  
  .current-time {
    font-size: var(--text-3xl);
  }
  
  .current-date {
    font-size: var(--text-lg);
  }
  
  .current-block {
    padding: var(--space-6);
  }
  
  .current-block__time {
    font-size: var(--text-2xl);
  }
  
  .current-block__name {
    font-size: var(--text-xl);
  }
  
  .nav-tabs {
    gap: var(--space-1);
    padding: var(--space-2);
  }
  
  .nav-tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
  
  .schedule-table {
    min-width: 600px;
    font-size: var(--text-sm);
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: var(--space-2);
    font-size: var(--text-xs);
  }
  
  .activity-name {
    font-size: var(--text-xs);
  }
  
  .activity-location {
    font-size: 0.625rem;
  }
  
  .time-block {
    font-size: var(--text-xs);
    min-width: 120px;
  }
  
  .all-groups-together {
    font-size: var(--text-xs);
  }
  
  .holiday-message {
    padding: var(--space-8) var(--space-4);
  }
  
  .holiday-icon {
    font-size: var(--text-5xl);
  }
  
  .holiday-title {
    font-size: var(--text-2xl);
  }
  
  .holiday-text {
    font-size: var(--text-lg);
  }
  
  .staff-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
  }
  
  .quick-action {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .current-time {
    font-size: var(--text-2xl);
  }
  
  .current-block__time {
    font-size: var(--text-xl);
  }
  
  .current-block__name {
    font-size: var(--text-lg);
  }
  
  .schedule-table {
    min-width: 500px;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: var(--space-1) var(--space-2);
  }
  
  .holiday-icon {
    font-size: var(--text-4xl);
  }
  
  .holiday-title {
    font-size: var(--text-xl);
  }
  
  .holiday-text {
    font-size: var(--text-base);
  }
}

/* Print Styles */
@media print {
  .header,
  .nav-tabs,
  .day-selector,
  .quick-actions,
  .weather-container {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
  
  .schedule-table th {
    background: var(--gray-100) !important;
    color: var(--gray-900) !important;
  }
}