/* Header Component Styles */

/* === HEADER MAIN STYLES === */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  transition: justify-content 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: margin 0.3s ease;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.astro-logo {
  height: 80px;
  width: auto;
}

/* === NOTIFICATION STYLES === */

.notification-container {
  position: relative;
  display: inline-block;
}

.notification-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: relative;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover {
  background: rgba(168, 85, 247, 0.2);
}

.notification-icon {
  font-size: 1.5rem;
  display: block;
}

.notification-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1f1f2e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(31, 31, 46, 0.95);
  border: 2px solid #a855f7;
  border-radius: 12px;
  width: 380px;
  max-height: 500px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  margin-top: 0.5rem;
}

.notification-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  margin: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: #a855f7;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mark-all-read-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a855f7 rgba(0, 0, 0, 0.1);
}

.notification-list::-webkit-scrollbar {
  width: 4px;
}

.notification-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.notification-list::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 2px;
}

.notification-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}

.notification-item:hover {
  background: rgba(168, 85, 247, 0.05);
}

.notification-item.unread {
  background: rgba(168, 85, 247, 0.03);
  border-left: 3px solid #a855f7;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.notification-message {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.notification-time {
  color: #999;
  font-size: 0.75rem;
}

.notification-unread-dot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  background: #a855f7;
  border-radius: 50%;
  flex-shrink: 0;
}

.notification-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* === RESPONSIVE DESIGN === */

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  .astro-logo {
    height: 60px;
  }
  
  .header-left {
    gap: 0.75rem;
  }
  
  .notification-dropdown {
    width: 320px;
    right: -1rem;
  }
  
  .notification-icon {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem;
  }
  
  .astro-logo {
    height: 50px;
  }
  
  .header-left {
    gap: 0.5rem;
  }
  
  h1 {
    font-size: 1.2rem;
  }
  
  .notification-dropdown {
    width: 280px;
    right: -0.5rem;
  }
  
  .notification-icon {
    font-size: 1.2rem;
  }
  
  .notification-btn {
    padding: 0.4rem;
  }
  
  .notification-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
  
  .notification-item {
    padding: 0.75rem 1rem;
  }
  
  .notification-header {
    padding: 0.75rem 1rem;
  }
} 