/**
 * Footer Styles
 * 
 * @package Nordlysvarsel\Footer
 * @since 1.0.0
 */

/* Hide old toolbar and modal system */
.nsgla-toolbar,
.nsgla-modal-bg {
  display: none !important;
}

/* Footer bar */
.nlsvk-footer-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #101820;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  color: #e6eef6;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Ensure body has padding at bottom so content doesn't hide behind footer */
body {
  padding-bottom: 60px;
}

.nlsvk-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 12px;
  flex-wrap: nowrap;
}

.nlsvk-footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.nlsvk-footer-brand {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.nlsvk-footer-loc {
  font-size: 13px;
  color: #FF5733;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}

.nlsvk-footer-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.nlsvk-footer-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e6eef6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nlsvk-footer-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nlsvk-footer-btn i {
  font-size: 18px;
  line-height: 1;
  display: block;
}

.nlsvk-footer-btn__badge {
  position: relative;
}

.nlsvk-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nlsvk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nlsvk-footer-btn i[data-icon="close"] {
  display: none;
}

/* Alerts & Settings panels - slide up from toolbar
   Use a CSS variable `--nlsvk-bottom` so JS can set the exact toolbar height
   without writing transform inline. These rules use !important to avoid
   accidental overrides from themes/plugins. */
.nlsvk-alerts-standalone,
.nlsvk-settings-standalone {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: var(--nlsvk-bottom, 60px) !important;
  background: #161616;
  border-top: none;
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(calc(100% + var(--nlsvk-bottom, 60px))) !important;
  transition: transform 0.3s ease !important;
  z-index: 110000 !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  overscroll-behavior: contain;
  border-radius: 12px 12px 0 0;
}

.nlsvk-alerts-standalone { z-index: 110000 !important; }
.nlsvk-settings-standalone { z-index: 109000 !important; }

.nlsvk-alerts-standalone.open,
.nlsvk-settings-standalone.open {
  transform: translateY(0) !important;
}

.nlsvk-settings-standalone__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  background: #101820;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nlsvk-settings-standalone__title {
  font-size: 16px;
  font-weight: 700;
  color: #e6eef6;
  margin: 0;
}

.nlsvk-settings-standalone__close {
  background: rgba(255, 255, 255, 0.08);
  color: #e6eef6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.nlsvk-settings-standalone__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nlsvk-settings-standalone__content {
  padding: 14px;
}

/* Settings sections */
.nlsvk-settings__section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nlsvk-settings__section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.nlsvk-settings__intro p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.nlsvk-settings__intro p:last-child {
  margin-bottom: 0;
}

.nlsvk-settings__intro-bold {
  font-weight: 700;
  font-size: 14px;
  color: inherit;
  margin: 0 0 10px;
  line-height: 1.6;
}

.nlsvk-settings__section h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.nlsvk-settings__hint {
  margin: 0 0 8px;
  font-size: 14px;
  color: #9bb0bf;
  line-height: 1.5;
}

/* Location help text */
.nlsvk-settings__location-help {
  font-size: 13px;
  color: #9bb0bf;
  margin: 0 0 10px;
  line-height: 1.5;
}

.nlsvk-settings__location-help .location-name {
  color: #FF5733;
  font-weight: 600;
}

/* Input group with button */
.nlsvk-settings__input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.nlsvk-settings__input-group input {
  flex: 1;
  min-height: 42px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #e6eef6;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.nlsvk-settings__input-group input:focus {
  outline: none;
  border-color: rgba(255, 87, 51, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.1);
}

.nlsvk-settings__input-group input::placeholder {
  color: #66788a;
}

.nlsvk-settings__clear-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e6eef6;
  font-size: 16px;
}

.nlsvk-settings__clear-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  transform: rotate(90deg);
}

/* Legacy - no longer used but kept for compatibility */
.nlsvk-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Legacy styles - kept for backwards compatibility */
.nlsvk-settings__actions input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 42px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #e6eef6;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

/* (file continues with full legacy CSS) */
