/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #222;
  background-color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: #e30613;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  gap: 1rem;
}

.menu-btn {
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.menu-btn:hover {
  background-color: rgba(255,255,255,0.1);
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-desktop {
  display: none;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.nav-desktop a:hover {
  background-color: rgba(255,255,255,0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  position: relative;
}

.icon-btn:hover {
  background-color: rgba(255,255,255,0.1);
}

.notification-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: #fbbf24;
  border-radius: 50%;
}

.login-btn {
  display: none;
  align-items: center;
  gap: 0.25rem;
  color: white;
  padding: 0.375rem 0.75rem;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.login-btn:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: white;
  z-index: 2000;
  transition: left 0.3s ease;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  background-color: #e30613;
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-logo {
  height: 24px;
  width: auto;
}

.close-btn {
  color: white;
  padding: 0.25rem;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu-nav a {
  padding: 1rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.2s;
}

.mobile-menu-nav a:hover {
  background-color: #f5f5f5;
}

/* Warning Banner */
.warning-banner {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  animation: slideDown 0.4s ease-out;
  overflow: hidden;
  max-width: 100%;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.warning-banner.hidden {
  display: none;
}

.warning-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  position: relative;
  color: white;
  max-width: 100%;
}

.warning-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
  line-height: 1;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.warning-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  padding-right: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.warning-text strong {
  font-weight: 700;
}

.warning-sites {
  display: block;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.warning-sites strong {
  font-weight: 600;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  display: inline-block;
  margin: 0.125rem 0.125rem;
}

.warning-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
  transition: all 0.2s;
  font-weight: 300;
}

.warning-close:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

/* Main Content */
.main-content {
  padding: 1.5rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
  color: #e30613;
}

.breadcrumb svg {
  width: 12px;
  height: 12px;
  stroke: #666;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Article */
.article {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5rem;
  max-width: 100%;
  overflow: hidden;
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 12px;
  color: #666;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.article-meta span {
  font-weight: 600;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.5rem 0.75rem;
  background-color: #f5f5f5;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.tag:hover {
  background-color: #e5e5e5;
}

.social-share {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-twitter {
  background-color: #1DA1F2;
  color: white;
}

.share-facebook {
  background-color: #3b5998;
  color: white;
}

.share-email,
.share-more {
  background-color: #d1d5db;
  color: #374151;
}

.image-gallery {
  margin-bottom: 1.5rem;
}

.main-image {
  position: relative;
  background-color: #000;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.unmute-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.thumbnail {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.thumbnail:hover {
  opacity: 0.75;
}

.gallery-link {
  text-align: center;
  margin-top: 0.5rem;
}

.gallery-link a {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  transition: color 0.2s;
}

.gallery-link a:hover {
  color: #e30613;
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.agency {
  padding: 0.25rem 0.5rem;
  background-color: #e5e5e5;
  border-radius: 4px;
}

.article-info span {
  color: #666;
}

.article-content {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.content-image {
  margin: 1.5rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: auto;
}

.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.article-footer h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Sidebar */
.sidebar {
  display: none;
}

.sidebar-widget {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-header {
  background-color: #e30613;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightning {
  font-size: 1.25rem;
}

.widget-header h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-content {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.2s;
}

.news-item:hover {
  background-color: #f9fafb;
}

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

.news-item img {
  width: 120px;
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.news-item h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.news-item:hover h3 {
  color: #e30613;
}

.news-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #e30613;
}

/* Footer */
.footer {
  background-color: #222;
  color: white;
  margin-top: 3rem;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-column h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  font-size: 12px;
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  background-color: #374151;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.social-icon:hover {
  background-color: #e30613;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 639px) {
  .warning-content {
    padding: 0.75rem 0.875rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .warning-icon {
    font-size: 1.125rem;
    align-self: flex-start;
  }

  .warning-text {
    font-size: 11px;
    padding-right: 2rem;
    width: 100%;
  }

  .warning-sites {
    margin-top: 0.375rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .warning-sites strong {
    font-size: 9px;
    padding: 0.15rem 0.3rem;
    margin: 0;
  }

  .warning-close {
    font-size: 1.25rem;
    right: 0.375rem;
    top: 0.5rem;
    transform: none;
  }

  .warning-close:hover {
    transform: scale(1.1);
  }
}

@media (min-width: 640px) {
  .login-btn {
    display: flex;
  }

  .article-title {
    font-size: 2rem;
  }

  .article {
    padding: 2rem;
  }

  .warning-text {
    font-size: 14px;
  }

  .warning-icon {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .content-grid {
    grid-template-columns: 1fr 350px;
  }

  .sidebar {
    display: block;
    position: sticky;
    top: 66px;
    align-self: start;
  }
}
