/* assets/css/notification.css */

/* Core Variables */
:root {
  --hop-orange: #ff6a00;
  --hop-orange-hover: #e05d00;
  --hop-dark: rgba(25, 27, 31, 0.95);
  --hop-glass-bg: rgba(30, 32, 38, 0.85);
  --hop-glass-border: rgba(255, 255, 255, 0.08);
  --hop-text: #ffffff;
  --hop-text-muted: #a0aec0;
}

/* Base Wrapper for Layering */
.hop-notify-container {
  font-family: 'Inter', sans-serif;
  color: var(--hop-text);
  z-index: 999999;
  position: relative;
}

/* Backdrop for Popup Modal */
.hop-notify-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.hop-notify-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* 1. Popup Modal Style */
.hop-notify-modal {
  background: var(--hop-glass-bg);
  border: 1px solid var(--hop-glass-border);
  border-radius: 24px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.hop-notify-backdrop.active .hop-notify-modal {
  transform: scale(1) translateY(0);
}

.hop-notify-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

/* Close Button styling */
.hop-notify-close {
  background: rgba(255, 255, 255, 0.08);
  color: var(--hop-text);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.hop-notify-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

/* Countdown Badge */
.hop-notify-countdown {
  background: rgba(255, 106, 0, 0.15);
  color: var(--hop-orange);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 106, 0, 0.25);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* High Priority Tag */
.hop-notify-priority {
  background: #ff3b30;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-right: 8px;
}

/* Content Area */
.hop-notify-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hop-notify-image-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hop-glass-border);
}

.hop-notify-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hop-notify-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.hop-notify-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--hop-text-muted);
}

.hop-notify-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hop-notify-desc {
  font-size: 14.5px;
  color: var(--hop-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Action Buttons Container */
.hop-notify-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.hop-notify-btn-primary {
  flex: 1;
  background: var(--hop-orange);
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.hop-notify-btn-primary:hover {
  background: var(--hop-orange-hover);
  transform: translateY(-2px);
}

.hop-notify-btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hop-text) !important;
  text-decoration: none;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid var(--hop-glass-border);
  cursor: pointer;
}

.hop-notify-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* 2. Announcement Bar Style */
.hop-notify-bar {
  position: fixed;
  top: -100px; /* Hidden initially */
  left: 0;
  right: 0;
  background: var(--hop-dark);
  border-bottom: 2px solid var(--hop-orange);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 999999;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.hop-notify-bar.active {
  top: 0;
}

.hop-notify-bar-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.hop-notify-bar-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--hop-glass-border);
}

.hop-notify-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hop-notify-bar-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.hop-notify-bar-desc {
  font-size: 12px;
  color: var(--hop-text-muted);
  margin: 0;
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hop-notify-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hop-notify-bar .hop-notify-btn-primary {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}

/* 3. Floating Toast Style */
.hop-notify-toast {
  position: fixed;
  bottom: 24px;
  right: -420px; /* Hidden initially */
  width: 380px;
  background: var(--hop-glass-bg);
  border: 1px solid var(--hop-glass-border);
  border-left: 4px solid var(--hop-orange);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.hop-notify-toast.active {
  right: 24px;
}

.hop-notify-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hop-notify-toast-body {
  display: flex;
  gap: 12px;
}

.hop-notify-toast-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--hop-glass-border);
}

.hop-notify-toast-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hop-notify-toast-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.hop-notify-toast-desc {
  font-size: 13px;
  color: var(--hop-text-muted);
  margin: 0;
  line-height: 1.4;
}

.hop-notify-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.hop-notify-toast .hop-notify-btn-primary {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* Animations Exit Utility */
.hop-notify-exit-modal {
  transform: scale(0.8) translateY(-40px) !important;
  opacity: 0 !important;
  transition: transform 0.4s ease, opacity 0.4s ease !important;
}

.hop-notify-exit-bar {
  top: -100px !important;
  transition: top 0.4s ease !important;
}

.hop-notify-exit-toast {
  right: -420px !important;
  transition: right 0.4s ease !important;
}

/* Responsive Styles */
@media (max-width: 767px) {
  /* Modal responsive fits */
  .hop-notify-modal {
    padding: 20px;
  }
  .hop-notify-title {
    font-size: 18px;
  }
  .hop-notify-image-wrapper {
    height: 130px;
  }

  /* Bar responsive fits */
  .hop-notify-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 10px;
    top: -150px;
  }
  .hop-notify-bar-content {
    align-items: flex-start;
  }
  .hop-notify-bar-right {
    justify-content: space-between;
    width: 100%;
  }

  /* Toast responsive fits */
  .hop-notify-toast {
    width: calc(100% - 32px);
    left: 16px;
    right: -100%;
    bottom: 16px;
  }
  .hop-notify-toast.active {
    left: 16px;
    right: 16px;
  }
}
