
:root {
  --primary-color: #1e3a8a;
  --primary-light: #2563eb;
  --primary-dark: #1e293b;
  --accent-color: #d97706;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 90px;
  max-width: 650px;
  margin: 0 auto;
}

header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 24px 20px 20px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25);
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brand-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-home-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-home-nav:active {
  transform: scale(0.96);
  background: #f1f5f9;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 4px;
}

header p.date-subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-top: 6px;
  font-weight: 500;
}

.container {
  padding: 20px 16px;
}

.nfc-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #1e40af;
  font-size: 0.9rem;
}

.nfc-icon {
  font-size: 1.4rem;
}

/* Day Buttons on Landing Page */
.day-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.day-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  padding: 18px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.day-card-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--primary-light);
}

.day-card-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.day-card-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.day-card-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.day-card-arrow {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Timeline on Day Pages */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.event-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.event-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.event-content {
  flex: 1;
}

.event-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 6px;
  white-space: pre-line;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;

}

.event-address {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: pre-line;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.map-btn:active {
  background: #e0f2fe;
}

/* Bottom Fixed Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 10px 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  z-index: 100;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 2px;
  flex: 1;
  text-align: center;
}

.nav-link.active {
  color: var(--primary-light);
}

.nav-link-icon {
  font-size: 1.3rem;
}

/* Quick Info Box */
.info-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 24px;
  color: #166534;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.88rem;
  line-height: 1.4;
}
