:root {
  --primary-color: #0084ff;
  --hover-color: #28A0EB;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #666;
  --border-light: #e5e7eb;
  --bg-gray: #f8f9fa;
}

body {
  background: #fafbfc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ================= HEADER ================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo {
  font-weight: 800;
  font-size: 26px;
  background: linear-gradient(135deg, #0084ff 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-medium);
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(0, 132, 255, 0.08);
}

/* ================= HERO ================= */
.hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 416px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.1) 100%);
  padding: 28px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-overlay h2 {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.publish-date {
  font-size: 13px;
  opacity: 0.95;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.publish-date::before {
  content: "🕐";
  font-size: 14px;
}

/* ================= NEWS ================= */
.news-card {
  transition: transform 0.2s ease;
  height: 100%;
  position: relative;
}

.news-card:hover {
  transform: translateY(-2px);
}

.news-card-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-card img {
  border-radius: 10px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-card:hover img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: scale(1.02);
}

.news-title {
  font-weight: 700;
  font-size: 16px;
  margin-top: 12px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
  transition: color 0.2s ease;
}

.news-title:hover {
  color: var(--hover-color);
}

.news-card .publish-date {
  color: var(--text-light);
  margin-top: 8px;
  font-size: 12px;
}

.news-card .publish-date::before {
  content: "";
}

.play {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.3);
  transition: transform 0.2s ease;
}

.play:hover {
  transform: scale(1.1);
}

.video-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-item:hover img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 70%);
  padding: 18px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.video-overlay .news-title {
  color: #fff;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.video-overlay .news-title:hover {
  color: var(--hover-color);
}

/* ================= SECTION TITLE ================= */
.section-title {
  font-weight: 800;
  font-size: 24px;
  margin: 56px 0 24px;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
  border-radius: 2px;
}

/* ================= FOOTER ================= */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 100px;
  position: relative;
  overflow: hidden;
  padding: 60px 0 30px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 132, 255, 0.5), transparent);
}

footer::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 132, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-weight: 800;
  font-size: 32px;
  background: linear-gradient(135deg, #0084ff 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.4);
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 32px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--hover-color);
}

/* ================= CATEGORY BADGE ================= */
.category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.category-badge.sports {
  background: linear-gradient(135deg, #10b981, #059669);
}

.category-badge.tech {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.category-badge.entertainment {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.category-badge.opinion {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ================= BREAKING NEWS ================= */
.breaking-news {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.breaking-news::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.breaking-badge {
  background: #fff;
  color: #dc2626;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-right: 12px;
  animation: pulse 2s infinite;
}

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

.breaking-news a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.breaking-news a:hover {
  opacity: 0.9;
}

/* ================= LOAD MORE BUTTON ================= */
.load-more-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
  margin: 60px auto;
  display: block;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
}

.load-more-btn:active {
  transform: translateY(0);
}

/* ================= SCROLL TO TOP ================= */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.3);
  z-index: 999;
  font-size: 20px;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 132, 255, 0.4);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .hero-card {
    height: 320px;
  }

  .hero-overlay h2 {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
    margin: 40px 0 20px;
  }

  .news-card img {
    height: 200px;
  }

  .logo {
    font-size: 22px;
  }

  .breaking-news {
    font-size: 13px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  footer {
    padding: 40px 0 24px;
  }

  .footer-logo {
    font-size: 26px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ================= ARTICLE HERO ================= */
.article-hero {
  position: relative;
  height: 65vh;
  min-height: 500px;
  max-height: 700px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.1) 60%);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

.article-category {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.article-hero h1 {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0084ff;
  font-size: 14px;
}

/* ================= ARTICLE CONTENT ================= */
.article-content {
  font-size: 19px;
  line-height: 1.8;
  color: #1a1a1a;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content p:first-of-type {
  font-size: 22px;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
}

.article-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 48px 0 24px;
  color: #111;
}

.article-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 20px;
  color: #111;
}

.article-content blockquote {
  border-left: 4px solid #0084ff;
  padding-left: 24px;
  margin: 36px 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  font-style: italic;
}

.article-image {
  margin: 48px 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image-caption {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  text-align: center;
  font-style: italic;
}

/* ================= SHARE BUTTONS ================= */
.share-section {
  margin: 48px 0;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.share-label {
  font-weight: 700;
  color: #111;
  font-size: 16px;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #fff;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.email { background: #666; }

/* ================= TAGS ================= */
.article-tags {
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 16px;
  background: #f1f3f5;
  color: #495057;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #e9ecef;
  color: #212529;
}

/* ================= RELATED ARTICLES ================= */
.related-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 2px solid #e9ecef;
}

.related-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.related-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin-bottom: 8px;
}

.related-card:hover .related-card-title {
  color: #28A0EB;
}

.related-card-date {
  font-size: 13px;
  color: #666;
}

/* ================= SIDEBAR ================= */
.sidebar {
  position: sticky;
  top: 100px;
}

/* ================= AUDIO PLAYER ================= */
.audio-player {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.audio-player-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.audio-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.audio-player h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  opacity: 0.95;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.play-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #667eea;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  font-size: 18px;
  flex-shrink: 0;
}

.play-button:hover {
  transform: scale(1.05);
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.9;
  margin-top: 8px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: #fff;
  width: 35%;
  border-radius: 3px;
  transition: width 0.1s ease;
}

.speed-control {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.speed-btn {
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-btn:hover,
.speed-btn.active {
  background: rgba(255,255,255,0.3);
}

/* ================= SIDEBAR NEWS ================= */
.sidebar-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111;
}

.sidebar-news-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.sidebar-news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-news-item:hover {
  opacity: 0.7;
}

.sidebar-news-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.sidebar-news-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-news-item:hover .sidebar-news-title {
  color: #28A0EB;
}

.sidebar-news-date {
  font-size: 12px;
  color: #666;
}

/* ================= ARTICLE PAGE MOBILE ================= */
@media (max-width: 768px) {
  .article-hero {
    height: 50vh;
    min-height: 400px;
  }

  .article-hero-overlay {
    padding: 24px;
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .article-content {
    font-size: 17px;
  }

  .article-content p:first-of-type {
    font-size: 19px;
  }

  .share-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .sidebar {
    position: static;
    margin-top: 48px;
  }
}
