/* ---------- SURVIVAL GUIDE - PREMIUM DESIGN SYSTEM ---------- */
:root {
  --guide-primary: #1e3c72;
  --guide-secondary: #2b4c7c;
  --guide-accent: #fcbf49;
  --guide-emergency: #e63946;
  --guide-medical-teal: #10b981;
  --guide-bg: #fdfdfd;
  --guide-card-bg: #ffffff;
  --guide-border: #000000;
  
  --transition-smooth: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Styles */
body.survival-guide {
  background-color: var(--guide-bg);
  background-image: radial-gradient(#d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
  color: #1f2937;
  scroll-behavior: smooth;
  padding: 0;
  overflow-x: hidden;
}

/* Layout */
.survival-container {
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.survival-hero {
  background: linear-gradient(135deg, var(--guide-primary) 0%, var(--guide-secondary) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 8px solid var(--guide-border);
}

.survival-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  text-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

.survival-hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.survival-badge {
  background: var(--guide-accent);
  color: #000;
  display: inline-block;
  padding: 8px 20px;
  border: 3px solid #000;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-top: 2rem;
  transform: rotate(-1deg);
  box-shadow: 4px 4px 0px #000;
}

/* Navigation Grid */
.survival-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--guide-border);
}

.nav-pill {
  background: #fff;
  border: 3px solid var(--guide-border);
  padding: 10px 20px;
  font-weight: 700;
  color: var(--guide-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  box-shadow: 3px 3px 0px var(--guide-border);
}

.nav-pill:hover {
  background: var(--guide-accent);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--guide-border);
}

/* Content Layout */
.main-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
}

/* Sidebar */
.survival-sidebar {
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 1rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: #4b5563;
  font-weight: 600;
  border-radius: 12px;
  transition: 0.2s;
}

.sidebar-link:hover {
  background: #f3f4f6;
  color: var(--guide-primary);
  transform: translateX(5px);
}

.sidebar-link.active {
  background: var(--guide-primary);
  color: white;
}

/* Section Cards */
.guide-section {
  background: #fff;
  border: 4px solid #000;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  box-shadow: 10px 10px 0px #000;
  transition: var(--transition-smooth);
}

.guide-section:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0px var(--guide-medical-teal);
}

.section-number {
  position: absolute;
  top: -20px;
  left: 20px;
  background: var(--guide-accent);
  color: #000;
  border: 3px solid #000;
  font-weight: 900;
  padding: 5px 15px;
  font-size: 1.2rem;
}

.guide-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Emergency Styling */
.emergency-card {
  border-color: var(--guide-emergency);
  box-shadow: 10px 10px 0px var(--guide-emergency);
  background: #fffcfc;
}

.emergency-card:hover {
  box-shadow: 14px 14px 0px #000;
}

.emergency-card .guide-title {
  color: var(--guide-emergency);
}

/* Checklists */
.survival-checklist {
  list-style: none;
  margin: 1.5rem 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px;
  border-bottom: 1px dashed #e5e7eb;
  transition: 0.2s;
  cursor: pointer;
}

.checklist-item:hover {
  background: #f9fafb;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--guide-medical-teal);
  margin-top: 3px;
}

.checklist-item label {
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}

.checklist-item.checked label {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Highlight Boxes */
.pro-tip {
  background: var(--guide-medical-teal);
  color: white;
  padding: 1.5rem;
  border: 3px solid #000;
  box-shadow: 6px 6px 0px #000;
  margin: 2rem 0;
  position: relative;
}

.pro-tip::before {
  content: '💡';
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 2rem;
  transform: rotate(15deg);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.mini-card {
  background: #f3f4f6;
  border: 2px solid #000;
  padding: 1.5rem;
  transition: 0.2s;
}

.mini-card:hover {
  background: #fff;
  transform: scale(1.02);
}

.mini-card h4 {
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--guide-primary);
}

/* Interactive Search */
.guide-search-wrap {
  margin-bottom: 3rem;
  position: relative;
}

.guide-search-input {
  width: 100%;
  padding: 20px 60px 20px 25px;
  font-size: 1.2rem;
  border: 4px solid #000;
  background: #fff;
  box-shadow: 8px 8px 0px var(--guide-accent);
  font-family: inherit;
  outline: none;
}

.guide-search-input:focus {
  box-shadow: 12px 12px 0px #000;
}

.search-icon-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
}

/* Animations */
@keyframes pulse-red {
  0% { transform: scale(1); box-shadow: 10px 10px 0px var(--guide-emergency); }
  50% { transform: scale(1.02); box-shadow: 15px 15px 20px rgba(230, 57, 70, 0.4); }
  100% { transform: scale(1); box-shadow: 10px 10px 0px var(--guide-emergency); }
}

.urgent-pulse {
  animation: pulse-red 2s infinite ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .survival-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .survival-hero h1 {
    font-size: 2.2rem;
  }
  .guide-section {
    padding: 1.5rem;
  }
  .nav-pill {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
