/* Notifications Dropdown */
.notification-dropdown {
  position: relative;
}

.notification-bell {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.notification-bell:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.notification-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: 360px;
  background: rgba(11, 16, 32, 0.98);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.notification-panel--open {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.mark-all-panel-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.mark-all-panel-btn:hover {
  background: rgba(255, 215, 0, 0.1);
}

.notification-panel-list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-panel-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.notification-panel-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notification-panel-item--unread {
  background: rgba(255, 215, 0, 0.05);
}

.notification-panel-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.notification-panel-content {
  flex: 1;
  min-width: 0;
}

.notification-panel-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.notification-panel-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.mark-read-panel-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.mark-read-panel-btn:hover {
  opacity: 1;
}

.notification-panel-empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.notification-panel-empty p {
  margin: 0;
  font-size: 0.9rem;
}

.notification-panel-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.notification-panel-link {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.notification-panel-link:hover {
  opacity: 0.8;
}

/* Notifications Page */
.notifications-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.notifications-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.mark-all-form {
  display: flex;
}

.mark-all-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.notifications-messages {
  margin-bottom: 1.5rem;
}

.notification-message {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.notification-message--success {
  background: rgba(72, 199, 116, 0.08);
  border: 1px solid rgba(72, 199, 116, 0.25);
  color: #48c774;
}

.notification-message--error {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ff6b6b;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.1);
}

.notification-card--unread {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

.notification-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.notification-message-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.notification-time {
  font-size: 0.8rem;
  color: var(--muted);
}

.mark-read-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.mark-read-btn:hover {
  opacity: 1;
}

.notifications-empty {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 215, 0, 0.2);
  border-radius: 16px;
}

.notifications-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.notifications-empty p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .notification-panel {
    width: calc(100vw - 2rem);
    right: -1rem;
  }

  .notifications-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
