/* News Panel Styling - SPACEJAY-163 */

/* News feed content container */
#news-feed-content {
  transition: opacity 0.3s ease;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* News item container */
.news-item {
  position: relative;
  padding: 0;
  transition: opacity 0.3s ease;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Content wrapper for side-by-side layout */
.news-content-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

/* News image */
.news-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 20px; /* Fixed position from top */
}

/* Text content container */
.news-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* News icon - REMOVED (doesn't fit design language) */
.news-icon {
  display: none;
}

/* News header - title and subtitle on same line */
.news-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* News title */
.news-title {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #00D4FF;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

/* NEW badge */
.news-badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #FF4444, #FF6666);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 1px;
  animation: pulse-badge 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* News subtitle - same size as title, on same line */
.news-subtitle {
  font-size: 0.55rem;
  font-weight: 600;
  color: #FFB347;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* News description - with auto-scroll animation */
.news-description {
  font-size: 0.65rem;
  color: #ccc;
  line-height: 1.3;
  overflow: hidden;
  flex: 1;
  position: relative;
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Auto-scrolling text wrapper */
.news-description-scroll {
  animation: auto-scroll 30s linear infinite;
  animation-play-state: running;
}

@keyframes auto-scroll {
  0% { transform: translateY(0); }
  90% { transform: translateY(calc(-100% + 100px)); }
  100% { transform: translateY(calc(-100% + 100px)); }
}

/* Pause animation on hover */
.news-description:hover .news-description-scroll {
  animation-play-state: paused;
}

/* Priority-based styling */
.news-item[data-priority="high"] .news-subtitle {
  color: #FF4444;
  animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Navigation arrows and counter */
.news-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.news-nav-btn {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00D4FF;
  font-size: 0.45rem;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.news-nav-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.news-nav-btn:active {
  transform: scale(0.95);
}

.news-counter {
  font-size: 0.65rem;
  color: #8A8F96;
  letter-spacing: 1px;
  min-width: 50px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .news-title,
  .news-subtitle {
    font-size: 0.5rem;
  }
  
  .news-description {
    font-size: 0.6rem;
  }
}
