/* ========================================
   News Block Winamp Styling
   Classic 2000s Winamp Aesthetic
   ======================================== */

/* ===== NEWS PANEL CONTAINER ===== */
.news-panel {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 2px solid #ffe600;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 4px 16px rgba(255, 230, 0, 0.2), 0 0 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
  font-family: 'Share Tech Mono', 'Consolas', monospace;
  color: #ffe600;
  padding: 0;
  user-select: none;
  /* Classic Winamp styling */
  border-top: 3px solid #ffe600;
  border-bottom: 3px solid #ffe600;
  border-left: 2px solid #ffe600;
  border-right: 2px solid #ffe600;
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 1000;
  width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-panel.hidden {
  transform: translateX(calc(100% + 24px));
}

/* ===== RETRO CORNER DECORATIONS ===== */
.news-panel::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 8px;
  height: 8px;
  background: #ffe600;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.news-panel::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ffe600;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 1;
}

/* ===== NEWS TITLE BAR ===== */
.news-panel h3 {
  background: linear-gradient(90deg, #333 0%, #222 50%, #111 100%);
  padding: 8px 12px 6px 12px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffe600;
  border-bottom: 2px solid #ffe600;
  border-radius: 0;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 230, 0, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== NEWS TOGGLE BUTTON ===== */
.news-toggle-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, #ffe600 0%, #ffcc00 50%, #ffaa00 100%);
  border: 1px solid #333;
  border-radius: 4px 0 0 4px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  z-index: 1001;
  outline: none;
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.news-toggle-btn:hover {
  background: linear-gradient(180deg, #ffcc00 0%, #ffe600 50%, #ffaa00 100%);
  transform: translateY(-50%) scale(1.05);
  animation: none;
}

.news-toggle-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.news-toggle-btn .icon {
  transition: transform 0.3s ease;
  font-weight: bold;
}

.news-panel.hidden .news-toggle-btn .icon {
  transform: rotate(180deg);
}

/* ===== NEWS CONTENT AREA ===== */
.news-panel .news-content {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 12px;
  border-top: 1px solid #333;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

/* ===== NEWS ITEMS ===== */
.news-panel .news-item {
  background: linear-gradient(90deg, #0a0a0a 0%, #181c18 50%, #0a0a0a 100%);
  border: 1px solid #333;
  border-top: 1px solid #555;
  border-bottom: 1px solid #111;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 0 0 8px 0;
  color: #aaff66;
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 0 6px rgba(170, 255, 102, 0.6);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  word-wrap: break-word;
}

/* ===== NEWS LIST CONTAINER ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.news-panel .news-item:hover {
  border-color: #ffe600;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 230, 0, 0.3);
  transform: translateX(2px);
}

/* ===== NEWS ITEM TITLE ===== */
.news-panel .news-item h4 {
  color: #88ff44;
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 4px 0;
  text-shadow: 0 0 6px #88ff44, 0 0 2px #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}

/* ===== NEWS ITEM DESCRIPTION ===== */
.news-panel .news-item p {
  color: #aaff66;
  font-size: 11px;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 0 4px rgba(170, 255, 102, 0.4);
}

/* ===== NEWS ITEM LINK ===== */
.news-panel .news-item a {
  color: #ffe600;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(255, 230, 0, 0.6);
  transition: all 0.2s ease;
}

.news-panel .news-item a:hover {
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255, 230, 0, 0.8);
}

/* ===== NEWS STATUS BAR ===== */
.news-panel .news-status {
  background: linear-gradient(90deg, #111 0%, #222 50%, #111 100%);
  border-top: 1px solid #333;
  padding: 4px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #ccc;
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.news-status .status-text {
  color: #ffe600;
  text-shadow: 0 0 4px rgba(255, 230, 0, 0.4);
}

.news-status .status-count {
  color: #aaff66;
  text-shadow: 0 0 4px rgba(170, 255, 102, 0.4);
}

/* ===== NEWS LOADING STATE ===== */
.news-panel .news-loading {
  color: #aaff66;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(170, 255, 102, 0.6);
  animation: news-pulse 2s ease-in-out infinite;
}

@keyframes news-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* ===== NEWS ERROR STATE ===== */
.news-panel .news-error {
  color: #ff6666;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(255, 102, 102, 0.6);
  border: 1px solid #ff6666;
  background: rgba(255, 102, 102, 0.1);
  margin: 8px;
  border-radius: 4px;
}

/* ===== NEWS SCROLLBAR STYLING ===== */
.news-panel .news-content::-webkit-scrollbar {
  width: 8px;
}

.news-panel .news-content::-webkit-scrollbar-track {
  background: #0a0a0a;
  border: 1px solid #333;
}

.news-panel .news-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffe600 0%, #ffcc00 50%, #ffaa00 100%);
  border: 1px solid #333;
  border-radius: 0;
}

.news-panel .news-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffcc00 0%, #ffe600 50%, #ffaa00 100%);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .news-panel {
    display: none !important;
  }
  
  .news-toggle-btn {
    display: none !important;
  }
}
