/* =====================================================
   REENGAGEMENT ROOM - NAVIGATION & LAYOUT STYLES
   Phase 3 CSS Extraction
   Created: December 9, 2025
   Purpose: Container layouts, header sections, loading states
   ===================================================== */

/* ===== CONTAINER LAYOUTS ===== */

/* Sidebar layout override */
body.sidebar-layout .container {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1.5rem !important;
  border-radius: 0 !important;
  border: none !important;
}

/* Main container */
.container { 
  max-width: 1600px; 
  margin: var(--spacing-lg) auto; 
  background: var(--card); 
  border-radius: var(--border-radius-lg); 
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ===== HEADER SECTION ===== */

.header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--nav-bg) 0%, #004a73 100%);
  color: white;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: var(--transition);
}

.header-section:hover::before {
  opacity: 1;
}

/* System status badge */
.system-status {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(5, 150, 105, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.system-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Logo container */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.logo-center { 
  height: 60px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
  transition: var(--transition);
  animation: pulse 2s ease-in-out infinite;
}

.logo-center:hover {
  transform: scale(1.1);
}

.triple-r-logo {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  padding: var(--spacing-sm);
  transition: var(--transition);
  animation: pulse 2s ease-in-out infinite 1s;
}

.triple-r-logo:hover {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255,255,255,0.2);
}

/* Header text */
.header-title { 
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-sm) auto;
  letter-spacing: -0.025em;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  color: #1565c0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  display: block;
}

.header-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 auto;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  text-align: center;
  width: 100%;
  display: block;
}

/* ===== LOADING STATUS ===== */

.loading-status { 
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); 
  border: 1px solid #90caf9; 
  margin: var(--spacing-lg) auto; 
  padding: var(--spacing-lg); 
  border-radius: var(--border-radius); 
  text-align: center;
  color: var(--nav-bg);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
  max-width: 400px;
  box-sizing: border-box;
}

.loading-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 2s ease-in-out infinite;
}

.loading-spinner { 
  border: 3px solid rgba(0, 48, 87, 0.1); 
  border-top: 3px solid var(--nav-bg); 
  border-radius: 50%; 
  width: 20px; 
  height: 20px; 
  animation: spin 1s linear infinite; 
  flex-shrink: 0;
}

.loading-text {
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 768px) {
  .container {
    margin: var(--spacing-md);
    border-radius: var(--border-radius);
  }

  .header-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .header-title {
    font-size: 1.5rem;
  }

  .header-subtitle {
    font-size: 0.875rem;
  }

  .logo-center,
  .triple-r-logo {
    height: 48px;
    width: 48px;
  }

  .system-status {
    position: static;
    margin-bottom: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  body.sidebar-layout .container {
    padding: 1rem !important;
  }

  .container {
    margin: var(--spacing-sm);
  }

  .header-section {
    padding: var(--spacing-md);
  }

  .header-title {
    font-size: 1.25rem;
  }

  .logo-container {
    gap: var(--spacing-md);
  }

  .logo-center,
  .triple-r-logo {
    height: 40px;
    width: 40px;
  }

  .loading-status {
    padding: var(--spacing-md);
    margin: var(--spacing-md) auto;
  }
}
