@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --mag-font-display: 'Playfair Display', Georgia, serif;
  --mag-font-body: 'Source Sans 3', -apple-system, sans-serif;
  --mag-primary: var(--primary-color, #dc2626);
  --mag-dark: var(--body-color, #1a1a2e);
  --mag-gray: var(--muted-color, #64748b);
  --mag-light: var(--body-bg, #f8fafc);
  --mag-card: var(--card-bg, #ffffff);
  --mag-border: var(--card-border, #e2e8f0);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--mag-font-body);
  background: var(--mag-light);
  color: var(--mag-dark);
  margin: 0;
  line-height: 1.6;
}

.magazine-main {
  min-height: 100vh;
  padding-bottom: 40px;
}

/* Breaking News Ticker */
.breaking-ticker {
  background: var(--mag-primary);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
}

.breaking-ticker .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  background: rgba(0,0,0,0.2);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

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

.ticker-content {
  flex: 1;
  overflow: hidden;
}

.ticker-scroll {
  display: flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

.ticker-item:hover {
  text-decoration: underline;
}

/* Welcome Hero Banner */
.welcome-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.welcome-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(45, 45, 68, 0.85) 100%);
  pointer-events: none;
}

.welcome-hero .container {
  position: relative;
  z-index: 2;
}

.welcome-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-hero-title {
  font-family: var(--mag-font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.welcome-hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.welcome-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--mag-primary, #dc2626);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.welcome-hero-btn:hover {
  background: #b91c1c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(220, 38, 38, 0.5);
}

@media (max-width: 768px) {
  .welcome-hero {
    padding: 50px 0;
  }
  
  .welcome-hero-title {
    font-size: clamp(20px, 6vw, 32px);
  }
  
  .welcome-hero-subtitle {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  
  .welcome-hero-btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .welcome-hero-title {
    white-space: normal;
    font-size: 24px;
  }
}

/* Active Journalists Carousel */
.active-journalists-section {
  padding: 60px 0;
  background: var(--mag-light);
  border-top: 1px solid var(--mag-border);
  border-bottom: 1px solid var(--mag-border);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--mag-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--mag-dark);
  margin: 0 0 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--mag-gray);
  margin: 0;
}

.journalists-carousel-wrapper {
  position: relative;
  padding: 0 60px;
  overflow: visible;
}

.journalists-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.journalists-carousel::-webkit-scrollbar {
  display: none;
}

.journalist-card {
  flex: 0 0 280px;
  background: var(--mag-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.journalist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.journalist-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 24px;
}

.journalist-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid var(--mag-border);
  background: var(--mag-light);
  /* Remove overflow: hidden to allow badge to extend outside */
}

.journalist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.journalist-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mag-primary) 0%, #b91c1c 100%);
  color: #fff;
  font-size: 40px;
  border-radius: 50%;
}

.journalist-avatar .verified-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--mag-card);
  flex-shrink: 0;
  line-height: 1;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.journalist-avatar .verified-badge i {
  font-size: 14px;
  line-height: 1;
  display: block;
  margin: 0;
  padding: 0;
}

.journalist-info {
  text-align: center;
}

.journalist-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--mag-dark);
  margin: 0 0 8px;
  font-family: var(--mag-font-display);
}

.journalist-location {
  font-size: 14px;
  color: var(--mag-gray);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.journalist-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--mag-border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mag-gray);
  font-weight: 500;
}

.stat-item i {
  color: var(--mag-primary);
  font-size: 16px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--mag-card);
  border: 2px solid var(--mag-border);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: var(--mag-dark);
  font-size: 20px;
  border: none;
}

.carousel-btn:hover {
  background: var(--mag-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

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

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

@media (max-width: 768px) {
  .active-journalists-section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
  
  .journalist-card {
    flex: 0 0 240px;
  }
  
  .journalists-carousel-wrapper {
    padding: 0 50px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .carousel-btn-prev {
    left: 0;
  }
  
  .carousel-btn-next {
    right: 0;
  }
}

@media (max-width: 480px) {
  .journalists-carousel-wrapper {
    padding: 0 45px;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .carousel-btn-prev {
    left: 5px;
  }
  
  .carousel-btn-next {
    right: 5px;
  }
  
  .journalist-card {
    flex: 0 0 200px;
  }
}

/* Hero Section */
.hero-section {
  padding: 24px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  min-height: 500px;
}

.hero-main {
  display: flex;
}

.hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  text-decoration: none;
  color: #fff;
}

.hero-card-large {
  flex: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  flex: 1;
}

.hero-category {
  display: inline-block;
  background: var(--mag-primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.hero-title {
  font-family: var(--mag-font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero-card-large .hero-title {
  font-size: 36px;
}

.hero-card-small .hero-title {
  font-size: 16px;
}

.hero-excerpt {
  font-size: 15px;
  opacity: 0.9;
  margin: 0 0 12px;
  line-height: 1.5;
}

.hero-card-small .hero-excerpt {
  display: none;
}

.hero-meta {
  font-size: 13px;
  opacity: 0.8;
  display: flex;
  gap: 16px;
}

.hero-meta i {
  margin-right: 4px;
}

/* Magazine Layout */
.magazine-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 24px 0;
}

/* News Section */
.news-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mag-primary);
}

.section-title {
  font-family: var(--mag-font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mag-dark);
}

.section-title i {
  color: var(--mag-primary);
}

.section-link {
  color: var(--mag-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--mag-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--mag-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.news-card-image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.news-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mag-gray);
  font-size: 32px;
}

.news-card-body {
  padding: 16px;
}

.news-card-category {
  display: inline-block;
  color: var(--mag-primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 8px;
}

.news-card-category:hover {
  text-decoration: underline;
}

.news-card-title {
  font-family: var(--mag-font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

.news-card-title a {
  color: var(--mag-dark);
  text-decoration: none;
}

.news-card-title a:hover {
  color: var(--mag-primary);
}

.news-card-excerpt {
  font-size: 14px;
  color: var(--mag-gray);
  margin: 0 0 12px;
  line-height: 1.5;
}

.news-card-meta {
  font-size: 12px;
  color: var(--mag-gray);
  display: flex;
  gap: 12px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-featured {
  display: flex;
  flex-direction: column;
}

.category-featured-image {
  display: block;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.category-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.category-featured:hover .category-featured-image img {
  transform: scale(1.05);
}

.category-featured-body h3 {
  font-family: var(--mag-font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

.category-featured-body h3 a {
  color: var(--mag-dark);
  text-decoration: none;
}

.category-featured-body h3 a:hover {
  color: var(--mag-primary);
}

.category-featured-body p {
  font-size: 14px;
  color: var(--mag-gray);
  margin: 0 0 12px;
  line-height: 1.5;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-list-item {
  display: flex;
  gap: 12px;
}

.category-list-image {
  width: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}

.category-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-list-body h4 {
  font-family: var(--mag-font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

.category-list-body h4 a {
  color: var(--mag-dark);
  text-decoration: none;
}

.category-list-body h4 a:hover {
  color: var(--mag-primary);
}

/* Sidebar */
.magazine-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--mag-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--mag-border);
}

.widget-title {
  font-family: var(--mag-font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mag-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mag-dark);
}

.widget-title i {
  color: var(--mag-primary);
}

/* Popular List */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.popular-item:hover {
  background: var(--mag-light);
}

.popular-rank {
  font-family: var(--mag-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--mag-primary);
  opacity: 0.3;
  width: 40px;
  flex-shrink: 0;
}

.popular-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
  color: var(--mag-dark);
}

.popular-meta {
  font-size: 12px;
  color: var(--mag-gray);
  display: flex;
  gap: 12px;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--mag-light);
  border-radius: 999px;
  font-size: 13px;
  color: var(--mag-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.tag-pill:hover {
  background: var(--mag-primary);
  color: #fff;
}

.tag-count {
  font-size: 11px;
  background: rgba(0,0,0,0.1);
  padding: 2px 6px;
  border-radius: 999px;
}

.tag-pill:hover .tag-count {
  background: rgba(255,255,255,0.2);
}

/* Category List Sidebar */
.category-list-sidebar {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list-sidebar li {
  border-bottom: 1px solid var(--mag-border);
}

.category-list-sidebar li:last-child {
  border-bottom: none;
}

.category-list-sidebar a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--mag-dark);
  text-decoration: none;
  font-weight: 500;
}

.category-list-sidebar a:hover {
  color: var(--mag-primary);
}

.category-count {
  font-size: 12px;
  background: var(--mag-light);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--mag-gray);
}

/* Footer */
.site-footer {
  background: var(--mag-dark);
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 40px;
}

[data-theme="dark"] .site-footer {
  background: #0f0f1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--mag-font-display);
  font-size: 24px;
  margin: 0 0 12px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.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;
  font-size: 18px;
  transition: all 0.2s;
}

.social-icon:hover {
  background: var(--mag-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1200px) {
  .magazine-layout {
    grid-template-columns: 1fr 280px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero-main {
    min-height: 350px;
  }
  
  .hero-side {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-card-small .hero-title {
    font-size: 14px;
  }
  
  .magazine-layout {
    grid-template-columns: 1fr;
  }
  
  .magazine-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-side {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .magazine-sidebar {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .section-title {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .hero-side {
    grid-template-columns: 1fr;
  }
  
  .hero-main {
    min-height: 280px;
  }
  
  .hero-card-large .hero-title {
    font-size: 24px;
  }
  
  .breaking-ticker .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}


