/**
 * ============================================
 * FOOTER RSI WONOSOBO - ASIIK Luxury Final
 * Modern Green Hospital Design
 * ============================================
 *
 * Design Philosophy:
 * - Premium luxury aesthetic with gold accents
 * - Clean white background with subtle grain texture
 * - ASIIK values prominently displayed
 * - Large watermark hospital icon for depth
 */

/* ============================================
   LIVE DASHBOARD - Luxury Light Theme
   ============================================ */

/* Section Container */
.live-dashboard-section {
  background: #F8F9FB;
  padding: 60px 0;
  position: relative;
}

/* Header */
.live-dashboard-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}

.header-left {
  flex: 1;
  min-width: 280px;
}

.section-title-live {
  font-size: 28px;
  font-weight: 700;
  color: #0A1B6B;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.3;
}

.section-title-live i {
  color: #D4AF37;
  font-size: 24px;
}

/* Live Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #E31E24;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  width: 12px;
  height: 12px;
  background: #E31E24;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4);
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(227, 30, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0);
  }
}

.section-subtitle-live {
  font-size: 14px;
  color: #718096;
  margin: 0;
  font-weight: 400;
}

/* See All Button */
.btn-see-all-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 2px solid #0A1B6B;
  border-radius: 50px;
  color: #0A1B6B;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-see-all-live:hover {
  background: #0A1B6B;
  color: #FFFFFF;
  transform: translateX(4px);
}

.btn-see-all-live i {
  transition: transform 0.3s ease;
}

.btn-see-all-live:hover i {
  transform: translateX(4px);
}

/* Cards Grid */
.live-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Individual Card */
.live-poli-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 25px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border-top: 3px solid #D4AF37;
  overflow: visible;
}

.live-poli-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(10, 27, 107, 0.08);
}

/* Pulsing Dot (Top Right) */
.pulsing-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: dotPulse 2s infinite;
}

.pulsing-dot.dot-open {
  background: #1B6B3A;
  box-shadow: 0 0 0 0 rgba(27, 107, 58, 0.4);
}

.pulsing-dot.dot-closed {
  background: #A0AEC0;
  box-shadow: none;
  animation: none;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 107, 58, 0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(27, 107, 58, 0);
  }
}

/* Poli Name */
.poli-name {
  font-size: 14px;
  font-weight: 700;
  color: #0A1B6B;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  padding-right: 20px;
}

/* Doctor Name */
.doctor-name {
  font-size: 13px;
  color: #718096;
  margin: 0 0 20px 0;
  font-weight: 400;
  line-height: 1.4;
  min-height: 40px;
}

.doctor-name em {
  font-style: italic;
  color: #A0AEC0;
}

/* Queue Number Display */
.queue-number-display {
  text-align: center;
  margin-bottom: 20px;
}

.queue-label {
  font-size: 11px;
  font-weight: 600;
  color: #A0AEC0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.queue-value {
  font-size: 42px;
  font-weight: 800;
  color: #0A1B6B;
  line-height: 1;
  margin-bottom: 20px;
}

/* Status Badge (Soft) */
.status-badge {
  display: inline-block;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.badge-open {
  background: rgba(46, 168, 94, 0.1);
  color: #1B6B3A;
}

.badge-closed {
  background: rgba(160, 174, 192, 0.1);
  color: #718096;
}

/* Responsive - Tablet (2 columns) */
@media (max-width: 1024px) {
  .live-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .live-dashboard-section {
    padding: 60px 0;
  }

  .section-title-live {
    font-size: 24px;
  }
}

/* Responsive - Mobile (1 column) */
@media (max-width: 640px) {
  .live-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .live-dashboard-section {
    padding: 40px 0;
  }

  .live-dashboard-header {
    flex-direction: column;
    gap: 16px;
  }

  .section-title-live {
    font-size: 20px;
  }

  .queue-value {
    font-size: 2.5rem;
  }

  .live-poli-card {
    padding: 20px;
  }
}

/* ============================================
   CSS VARIABLES - ASIIK Luxury Palette
   ============================================ */
:root {
  /* Primary Colors */
  --navy-integritas: #0A1B6B;
  --green-sinergi: #1B6B3A;
  --gold-premium: linear-gradient(135deg, #D4AF37 0%, #FFF2CD 50%, #D4AF37 100%);
  --gold-solid: #D4AF37;
  --red-komitmen: #E31E24;
  
  /* Background & Text */
  --bg-luxury: #FFFFFF;
  --text-main: #4A5568;
  --border-light: rgba(10, 27, 107, 0.08);
  
  /* ASIIK Value Colors */
  --c-amanah: #F5B041;
  --c-sinergi: #1B6B3A;
  --c-integritas: #0A1B6B;
  --c-inovasi: #6B21A8;
  --c-kompeten: #F5A623;
  --c-komitmen: #E31E24;
  
  /* Spacing System */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-11: 60px;
  
  /* Typography */
  --font-luxury: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* Shadows */
  --shadow-soft: 0 20px 50px rgba(10, 27, 107, 0.05);
  --shadow-medium: 0 30px 60px rgba(10, 27, 107, 0.2);
  --shadow-glow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TOP GOLD ACCENT BAR
   ============================================ */
.footer-gold-bar {
  width: 100%;
  height: 6px;
  background: var(--gold-premium);
  position: relative;
  z-index: 10;
}

/* ============================================
   MAIN FOOTER CONTAINER
   ============================================ */
.luxury-footer {
  background-color: var(--bg-luxury);
  position: relative;
  padding-top: 60px;
  padding-bottom: 0;
  color: var(--text-main);
  overflow: hidden;
  font-family: var(--font-luxury);

  /* Premium Paper Grain Texture */
  background-image: url("https://www.transparenttextures.com/patterns/felt.png");
}

/* Large Watermark Hospital Icon (Very Subtle) */
.luxury-footer::after {
  content: '\f402'; /* Bootstrap Icons hospital */
  font-family: "bootstrap-icons";
  position: absolute;
  bottom: -50px;
  right: -20px;
  font-size: 500px;
  color: rgba(10, 27, 107, 0.03); /* Only 3% opacity */
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.luxury-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

/* ============================================
   FOOTER GRID LAYOUT
   ============================================ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* ============================================
   FOOTER COLUMNS
   ============================================ */
.footer-col h4 {
  color: var(--navy-integritas);
  font-size: 16px;
  font-weight: var(--font-black);
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: var(--font-regular);
}

.footer-col p i {
  color: var(--gold-solid);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-col p a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col p a:hover {
  color: var(--gold-solid);
}

/* Brand Name & Tagline */
.brand-name-luxury {
  color: var(--navy-integritas) !important;
  font-weight: var(--font-bold) !important;
  font-size: 18px !important;
  margin-bottom: 5px !important;
}

.brand-tagline-luxury {
  font-style: italic !important;
  color: var(--gold-solid) !important;
  margin-bottom: 25px !important;
  font-weight: var(--font-medium) !important;
  line-height: 1.4 !important;
}

/* IGD Link & Badge */
.igd-link {
  color: var(--red-komitmen) !important;
  font-weight: var(--font-bold) !important;
}

.badge-24jam-luxury {
  display: inline-block;
  background: var(--red-komitmen);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: var(--font-black);
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 4px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* Social Media Icons */
.social-luxury {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-icon-luxury {
  width: 40px;
  height: 40px;
  background: var(--bg-luxury);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-integritas);
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.social-icon-luxury:hover {
  background: var(--gold-premium);
  color: var(--navy-integritas);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
  border-color: var(--gold-solid);
}

/* ============================================
   FOOTER LINKS
   ============================================ */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--navy-integritas);
  transform: translateX(5px);
}

/* ============================================
   OPERATIONAL HOURS
   ============================================ */
.operasional-item {
  margin-bottom: 18px;
}

.op-label {
  font-weight: var(--font-bold);
  color: var(--navy-integritas);
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.op-value {
  color: var(--text-main);
  font-size: 14px;
  font-weight: var(--font-medium);
}

.op-value.emergency-pulse {
  color: var(--red-komitmen);
  font-weight: var(--font-black);
  font-size: 16px;
  letter-spacing: 1px;
  animation: pulse-emergency 2s infinite;
}

.op-value.closed-text {
  color: #A0AEC0;
  font-style: italic;
}

@keyframes pulse-emergency {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================
   PREMIUM CARD - Jam Besuk
   ============================================ */
.premium-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(10, 27, 107, 0.08);
}

.premium-card h5 {
  color: var(--navy-integritas);
  font-size: 16px;
  font-weight: var(--font-bold);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--gold-solid);
  display: inline-block;
  padding-bottom: 5px;
}

.premium-card h5 i {
  margin-right: 8px;
  color: var(--gold-solid);
}

.time-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
}

.time-label-luxury {
  color: #718096;
  font-size: 13px;
  font-weight: var(--font-medium);
}

.time-value-luxury {
  color: var(--navy-integritas);
  font-weight: var(--font-bold);
  font-size: 14px;
}

/* Visiting Note */
.visiting-note-luxury {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(245, 176, 65, 0.1);
  border-radius: 12px;
  font-size: 12px;
  color: #718096;
  margin-top: 12px;
}

.visiting-note-luxury i {
  color: var(--gold-solid);
  font-size: 14px;
}

/* ============================================
   ASIIK LUXURY BANNER
   ============================================ */
.asiik-luxury-banner {
  background: var(--navy-integritas);
  border-radius: 16px;
  padding: 25px 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-medium);
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Inner Orange Line */
.asiik-luxury-banner::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(232, 149, 29, 0.5);
  border-radius: 12px;
  pointer-events: none;
}

.asiik-header-luxury {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.asiik-header-luxury i {
  color: var(--gold-solid);
  font-size: 18px;
}

.asiik-header-luxury span {
  color: var(--gold-solid);
  font-weight: var(--font-bold);
  letter-spacing: 5px;
  font-size: 10px;
  text-transform: uppercase;
}

.banner-title {
  color: var(--gold-solid);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 11px;
  text-transform: uppercase;
  margin-right: 20px;
}

.asiik-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.asiik-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asiik-letter {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.asiik-text {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   COPYRIGHT BOTTOM BAR
   ============================================ */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: #718096;
  font-weight: var(--font-regular);
}

.copyright-text-luxury {
  margin: 0;
}

.copyright-text-luxury strong {
  color: var(--navy-integritas);
  font-weight: var(--font-bold);
}

.copyright-links-luxury {
  display: flex;
  align-items: center;
  gap: 30px;
}

.copyright-links-luxury a {
  color: #718096;
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright-links-luxury a:hover {
  color: var(--gold-solid);
}

.copyright-links-luxury .separator {
  color: #CBD5E0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (≤991px) */
@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .asiik-flex-container {
    justify-content: center;
  }
  
  .asiik-luxury-banner {
    padding: 30px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 767.98px) {
  .luxury-footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .luxury-footer::after {
    font-size: 300px;
    opacity: 0.02;
    bottom: -30px;
  }

  .asiik-luxury-banner {
    padding: 20px 15px;
    margin-bottom: 30px;
  }

  .asiik-flex-container {
    flex-direction: column;
    gap: 12px;
    justify-content: center;
  }

  .banner-title {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    margin-right: 0;
  }

  .asiik-item {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px 0;
  }

  .copyright-links-luxury {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 479.98px) {
  .luxury-footer {
    padding-top: 30px;
  }

  .luxury-footer .container {
    padding: 0 16px;
  }

  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .brand-name-luxury {
    font-size: 16px !important;
  }

  .premium-card {
    padding: 15px;
  }

  .asiik-luxury-banner {
    padding: 15px 12px;
    border-radius: 16px;
  }

  .asiik-letter {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .asiik-text {
    font-size: 11px;
  }

  .footer-bottom {
    padding: 15px 0;
  }

  .copyright-links-luxury {
    flex-direction: column;
    gap: 8px;
  }

  .copyright-links-luxury .separator {
    display: none;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.footer-links a:focus,
.social-icon-luxury:focus,
.premium-card:focus-within {
  outline: 2px solid var(--gold-solid);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
