/* ============================================================
   NEWS MODULE CSS - World of Basket
   ============================================================ */

/* Hero Article */
.news-hero { margin-bottom: 20px }
.news-hero-card { border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .3s }
.news-hero-card:hover { transform: scale(1.005) }
.hero-image {
  height: 400px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; position: relative;
}
.hero-overlay {
  width: 100%; padding: 40px 30px 30px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.hero-category {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: rgba(232,93,4,.9); color: #fff; font-size: .7rem;
  font-weight: 700; margin-bottom: 12px;
}
.hero-title { font-size: 1.8rem; color: #fff; margin-bottom: 8px; line-height: 1.2 }
.hero-summary { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 12px; max-width: 700px }
.hero-meta { display: flex; gap: 16px; color: rgba(255,255,255,.6); font-size: .75rem }
.news-hero-empty {
  text-align: center; padding: 80px 20px;
  background: linear-gradient(165deg, #12121f, #1a1a2e);
  border-radius: 16px; border: 1px solid #2a2a4a;
}
.hero-empty-icon { font-size: 4rem; margin-bottom: 16px }

/* Breaking Ticker */
.news-ticker {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: linear-gradient(135deg, #1a0000, #2a0000);
  border: 1px solid rgba(255,0,0,.2); border-radius: 8px;
  margin-bottom: 20px; overflow: hidden;
}
.ticker-label {
  flex-shrink: 0; font-size: .7rem; font-weight: 800;
  color: #ff4444; letter-spacing: 1px; animation: tickerPulse 2s infinite;
}
@keyframes tickerPulse { 0%,100% { opacity: 1 } 50% { opacity: .5 } }
.ticker-content {
  display: flex; gap: 12px; overflow-x: auto; white-space: nowrap;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ticker-content::-webkit-scrollbar { display: none }
.ticker-item { font-size: .75rem; color: #ccc }
.ticker-sep { color: #555; font-size: .6rem }

/* Category Filters */
.news-categories {
  display: flex; gap: 8px; padding: 8px 0 16px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.news-categories::-webkit-scrollbar { display: none }
.news-cat-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 20px; border: 1px solid #2a2a4a; background: rgba(26,26,46,.8);
  color: #aaa; font-size: .75rem; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap; font-family: inherit;
}
.news-cat-btn:hover { border-color: rgba(232,93,4,.3); color: #fff }
.news-cat-btn.active {
  background: rgba(232,93,4,.15); border-color: rgba(232,93,4,.5);
  color: #e85d04;
}
.cat-icon { font-size: .85rem }

/* Articles Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 24px;
}
.news-card {
  background: linear-gradient(165deg, #12121f, #1a1a2e);
  border-radius: 12px; border: 1px solid #2a2a4a;
  overflow: hidden; cursor: pointer; transition: all .3s;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(232,93,4,.3); box-shadow: 0 8px 32px rgba(0,0,0,.3) }
.news-card-image {
  height: 180px; background-size: cover; background-position: center;
  position: relative;
}
.news-card-cat {
  position: absolute; bottom: 10px; left: 10px;
  padding: 3px 10px; border-radius: 12px;
  background: rgba(0,0,0,.7); color: #fff; font-size: .65rem; font-weight: 600;
}
.news-card-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 8px; border-radius: 6px;
  background: #e85d04; color: #fff; font-size: .6rem; font-weight: 800;
}
.news-card-body { padding: 16px }
.news-card-title {
  font-size: .95rem; color: #fff; margin-bottom: 8px;
  line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-summary { font-size: .75rem; color: #888; margin-bottom: 12px; line-height: 1.4 }
.news-card-meta { display: flex; justify-content: space-between; font-size: .65rem; color: #666 }

/* Load More */
.news-load-more { display: flex; justify-content: center; padding: 20px }
.news-more-btn {
  padding: 12px 32px; border-radius: 8px; border: 1px solid #2a2a4a;
  background: rgba(26,26,46,.8); color: #ccc; font-size: .8rem;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.news-more-btn:hover { border-color: #e85d04; color: #fff }

/* Article Detail Overlay */
.news-article-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.9); z-index: 1100; display: none;
  overflow-y: auto; padding: 20px; backdrop-filter: blur(8px);
}
.news-article-overlay.active { display: block }
.news-article-modal {
  max-width: 800px; margin: 0 auto;
  background: linear-gradient(165deg, #12121f, #1a1a2e);
  border-radius: 16px; border: 1px solid #2a2a4a;
  overflow: hidden;
}
.article-close {
  position: fixed; top: 16px; right: 20px; z-index: 1200;
  background: rgba(0,0,0,.6); border: none; color: #fff;
  font-size: 1.5rem; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.article-hero-img {
  height: 350px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.article-hero-overlay { width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.6)) }
.article-cat {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: rgba(232,93,4,.9); color: #fff; font-size: .7rem; font-weight: 700;
}
.article-body { padding: 30px }
.article-title { font-size: 1.6rem; color: #fff; margin-bottom: 16px; line-height: 1.3 }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
  font-size: .75rem; color: #888;
}
.article-meta a { color: #e85d04; text-decoration: none }
.article-meta a:hover { text-decoration: underline }
.article-translated-badge {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: rgba(33,150,243,.15); border: 1px solid rgba(33,150,243,.3);
  color: #64b5f6; font-size: .7rem; margin-bottom: 20px;
}
.article-content { color: #ccc; line-height: 1.8; font-size: .9rem; margin-bottom: 24px }
.article-content p { margin-bottom: 16px }
.article-source-box {
  padding: 16px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid #2a2a4a;
  font-size: .8rem; color: #888; margin-bottom: 24px;
}
.article-source-box a { color: #e85d04; text-decoration: none }
.article-source-box a:hover { text-decoration: underline }
.article-actions { display: flex; gap: 12px; margin-bottom: 30px }
.article-like-btn, .article-share-btn {
  padding: 8px 16px; border-radius: 8px; border: 1px solid #2a2a4a;
  background: rgba(26,26,46,.8); color: #ccc; font-size: .8rem;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.article-like-btn:hover, .article-share-btn:hover { border-color: #e85d04; color: #fff }

/* Comments */
.article-comments { border-top: 1px solid #2a2a4a; padding-top: 24px }
.article-comments h3 { color: #fff; font-size: 1rem; margin-bottom: 16px }
.article-comment {
  padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid #1a1a3a;
  margin-bottom: 10px;
}
.comment-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .7rem; color: #888 }
.comment-header strong { color: #e85d04 }
.article-comment p { font-size: .8rem; color: #ccc }
.no-comments { color: #666; font-size: .8rem; font-style: italic }
.article-comment-form textarea {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #2a2a4a;
  background: rgba(26,26,46,.8); color: #fff; font-size: .8rem;
  font-family: inherit; resize: vertical; min-height: 80px; outline: none;
}
.article-comment-form textarea:focus { border-color: #e85d04 }
.article-comment-form button {
  margin-top: 8px; padding: 10px 24px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #e85d04, #ff8f00); color: #fff;
  font-size: .8rem; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* Skeleton */
.skeleton .skeleton-shimmer {
  background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* Points notification */
.points-notification {
  position: fixed; bottom: 80px; right: 20px; z-index: 9999;
  padding: 10px 18px; border-radius: 10px;
  background: linear-gradient(135deg, #1a3a1a, #0a2a0a);
  border: 1px solid rgba(76,175,80,.4); color: #4CAF50;
  font-size: .85rem; font-weight: 700;
  transform: translateX(120%); transition: transform .3s ease;
  display: flex; align-items: center; gap: 8px;
}
.points-notification.show { transform: translateX(0) }
.points-label { font-weight: 400; color: #888; font-size: .7rem }

/* Login reward toast */
.login-reward-toast {
  position: fixed; top: 80px; left: 50%; z-index: 9999;
  transform: translateX(-50%) translateY(-120%); transition: transform .5s ease;
}
.login-reward-toast.show { transform: translateX(-50%) translateY(0) }
.login-reward-content {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px; border-radius: 14px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255,215,0,.3);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.login-reward-icon { font-size: 2rem }
.login-reward-text { display: flex; flex-direction: column; gap: 2px }
.login-reward-text strong { color: #ffd700; font-size: .9rem }
.login-reward-text span { color: #4CAF50; font-size: .85rem }
.login-reward-text small { color: #ff9800; font-size: .7rem }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero-image { height: 250px }
  .hero-title { font-size: 1.2rem }
  .hero-summary { font-size: .8rem }
  .hero-meta { flex-wrap: wrap; gap: 8px }
  .news-grid { grid-template-columns: 1fr }
  .news-card-image { height: 160px }
  .article-hero-img { height: 220px }
  .article-body { padding: 20px }
  .article-title { font-size: 1.2rem }
  .article-meta { flex-direction: column; gap: 6px }
  .news-categories { gap: 6px }
  .news-cat-btn { padding: 6px 12px; font-size: .7rem }
}

@media (max-width: 480px) {
  .hero-image { height: 200px }
  .hero-title { font-size: 1rem }
  .news-grid { grid-template-columns: 1fr }
  .news-card-image { height: 140px }
  .news-card-title { font-size: .85rem }
}
