/* ============================================================
   H2O.ai Status Page — Custom Header Styling
   Brand: H2O.ai (Yellow #FFE600, Black #161616, Gray #54585A)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --h2o-yellow: #FFE600;
  --h2o-yellow-hover: #FFD000;
  --h2o-black: #161616;
  --h2o-gray: #54585A;
  --h2o-border: #E0E0E0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 8px;
}

body {
  font-family: var(--font-main) !important;
}

/* --- Header --- */
.h2o-status-header {
  background: #fff;
  border-bottom: 3px solid var(--h2o-yellow);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.h2o-status-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h2o-status-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.h2o-status-logo-link {
  display: block;
  line-height: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.h2o-status-logo-link:hover {
  transform: scale(1.05);
}

.h2o-status-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}

.h2o-status-logo-link:hover .h2o-status-logo {
  filter: drop-shadow(0 4px 8px rgba(255, 230, 0, 0.3));
}

.h2o-status-divider {
  width: 1px;
  height: 28px;
  background: var(--h2o-border);
}

.h2o-status-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--h2o-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.h2o-status-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h2o-status-button-divider {
  width: 1px;
  height: 28px;
  background: var(--h2o-border);
}

/* --- Support Button (Icon-only style like search button) --- */
.h2o-status-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: #F5F5F5;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0;
  color: var(--h2o-gray) !important;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.h2o-status-support-btn:hover {
  background: #EBEBEB;
  border-color: var(--h2o-border);
  transform: translateY(-1px);
}

.h2o-status-support-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

/* Icon pulse animation on hover */
.h2o-status-support-btn:hover svg {
  animation: pulseIcon 0.6s ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Hide text, show only icon */
.h2o-status-support-btn::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--h2o-black);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.h2o-status-support-btn:hover::after {
  opacity: 1;
}

/* --- Subscribe Button (H2O.ai website style - Yellow CTA) --- */
.flat-button::before,
#show-updates-dropdown::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  transition: transform 0.3s ease;
}

/* Animated bell icon on hover */
.flat-button:hover::before,
#show-updates-dropdown:hover::before {
  animation: ringBell 0.6s ease-in-out;
}

@keyframes ringBell {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
  20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.flat-button,
#show-updates-dropdown {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 48px !important;
  padding: 0 28px !important;
  background: var(--h2o-yellow) !important;
  color: var(--h2o-black) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Ripple effect on click */
.flat-button::after,
#show-updates-dropdown::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.flat-button:active::after,
#show-updates-dropdown:active::after {
  width: 300px;
  height: 300px;
}

.flat-button:hover,
#show-updates-dropdown:hover {
  background: var(--h2o-yellow-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4) !important;
  opacity: 1 !important;
  color: var(--h2o-black) !important;
}

.flat-button:active,
#show-updates-dropdown:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(255, 230, 0, 0.3) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .h2o-status-header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .h2o-status-logo {
    height: 44px;
  }

  .h2o-status-divider,
  .h2o-status-title {
    display: none;
  }

  .h2o-status-support-btn {
    padding: 7px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .flat-button,
  #show-updates-dropdown {
    font-size: 13px !important;
    padding: 7px 14px !important;
  }
}