/* TheVerge Template - Bold, Modern News Layout */

:root {
  --verge-bg: #ffffff;
  --verge-bg-alt: #f5f5f5;
  --verge-text: #1a1a1a;
  --verge-text-secondary: #666666;
  --verge-accent: #fa4b2a;
  --verge-accent-hover: #e63e1f;
  --verge-border: #e5e5e5;
  --verge-radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.verge-body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--verge-bg);
  color: var(--verge-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.verge-header {
  position: sticky;
  top: 0;
  background: var(--verge-bg);
  border-bottom: 2px solid var(--verge-text);
  z-index: 100;
  padding: 0 16px;
}

.verge-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.verge-logo {
  text-decoration: none;
  color: var(--verge-text);
}

.verge-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.verge-logo-img {
  height: 36px;
  width: auto;
}

.verge-nav {
  display: none;
  gap: 24px;
}

.verge-nav-link {
  text-decoration: none;
  color: var(--verge-text);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.verge-nav-link:hover {
  color: var(--verge-accent);
}

.verge-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--verge-text);
}

/* Mobile Menu */
.verge-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--verge-bg);
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.verge-mobile-menu.active {
  right: 0;
}

.verge-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 2px solid var(--verge-text);
}

.verge-mobile-title {
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
}

.verge-mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--verge-text);
}

.verge-mobile-nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.verge-mobile-link {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: var(--verge-text);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--verge-border);
  transition: color 0.2s;
}

.verge-mobile-link:hover {
  color: var(--verge-accent);
}

.verge-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.verge-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.verge-main {
  flex: 1;
  padding: 24px 16px;
}

.verge-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Section */
.verge-hero {
  margin-bottom: 32px;
}

.verge-hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: var(--verge-radius);
  overflow: hidden;
  background: var(--verge-text);
}

.verge-hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.verge-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.verge-hero-link:hover .verge-hero-image img {
  opacity: 0.6;
  transform: scale(1.02);
}

.verge-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: white;
}

.verge-badge {
  display: inline-block;
  background: var(--verge-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.verge-badge-small {
  font-size: 0.65rem;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.verge-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.verge-hero-meta {
  font-size: 0.875rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verge-author {
  font-weight: 600;
}

.verge-dot {
  color: var(--verge-text-secondary);
}

.verge-time {
  color: var(--verge-text-secondary);
}

/* Secondary Section */
.verge-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* Cards */
.verge-card {
  background: var(--verge-bg);
}

.verge-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.verge-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--verge-radius);
  background: var(--verge-bg-alt);
}

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

.verge-card-link:hover .verge-card-image img {
  transform: scale(1.03);
}

.verge-card-content {
  padding: 16px 0;
}

.verge-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.verge-card-medium .verge-card-title {
  font-size: 1.25rem;
}

.verge-card-meta {
  font-size: 0.8rem;
  color: var(--verge-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verge-card-meta .verge-author {
  color: var(--verge-text);
}

/* Section Title */
.verge-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--verge-text);
}

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

.verge-grid-full {
  margin-top: 24px;
}

.verge-latest {
  margin-bottom: 48px;
}

/* List View */
.verge-more {
  margin-bottom: 48px;
}

.verge-grid-three {
  grid-template-columns: repeat(1, 1fr);
}

.verge-list {
  display: flex;
  flex-direction: column;
}

.verge-list-item {
  border-bottom: 1px solid var(--verge-border);
}

.verge-list-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.verge-list-link:hover {
  background: var(--verge-bg-alt);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.verge-list-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--verge-accent);
  min-width: 36px;
}

.verge-list-content {
  flex: 1;
  min-width: 0;
}

.verge-list-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.verge-list-meta {
  font-size: 0.8rem;
  color: var(--verge-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verge-list-meta .verge-author {
  color: var(--verge-text);
}

.verge-list-image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

/* Category Page */
.verge-category-header {
  margin-bottom: 32px;
}

.verge-category-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Empty State */
.verge-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--verge-bg-alt);
  border-radius: var(--verge-radius);
}

.verge-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.verge-empty p {
  color: var(--verge-text-secondary);
  margin-bottom: 24px;
}

.verge-back-btn {
  display: inline-block;
  background: var(--verge-accent);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.verge-back-btn:hover {
  background: var(--verge-accent-hover);
}

/* Article Page */
.verge-article-container {
  max-width: 800px;
}

.verge-article-header {
  margin-bottom: 32px;
}

.verge-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--verge-accent);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.verge-breadcrumb:hover {
  color: var(--verge-accent-hover);
}

.verge-article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.verge-article-meta {
  font-size: 0.9rem;
  color: var(--verge-text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.verge-article-author {
  color: var(--verge-text);
  font-weight: 600;
}

.verge-article-figure {
  margin-bottom: 32px;
  border-radius: var(--verge-radius);
  overflow: hidden;
}

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

.verge-article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.verge-article-body h2,
.verge-article-body h3,
.verge-article-body h4 {
  font-weight: 700;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 16px;
}

.verge-article-body h2 {
  font-size: 1.5rem;
}

.verge-article-body h3 {
  font-size: 1.25rem;
}

.verge-article-body h4 {
  font-size: 1.125rem;
}

.verge-article-body p {
  margin-bottom: 20px;
}

.verge-ad-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--verge-border);
}

/* Related Posts */
.verge-related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 3px solid var(--verge-text);
}

/* Footer */
.verge-footer {
  background: var(--verge-text);
  color: white;
  padding: 48px 16px;
  margin-top: auto;
}

.verge-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.verge-footer-brand {
  margin-bottom: 24px;
}

.verge-footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.verge-footer-desc {
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  font-size: 0.9rem;
}

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

.verge-footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.verge-footer-links a:hover {
  color: white;
}

.verge-footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (min-width: 640px) {
  .verge-hero-title {
    font-size: 2.25rem;
  }

  .verge-hero-content {
    padding: 40px 32px;
  }

  .verge-secondary {
    grid-template-columns: repeat(2, 1fr);
  }

  .verge-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .verge-grid-three {
    grid-template-columns: repeat(3, 1fr);
  }

  .verge-article-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .verge-header-inner {
    height: 70px;
  }

  .verge-nav {
    display: flex;
  }

  .verge-menu-btn {
    display: none;
  }

  .verge-main {
    padding: 32px 24px;
  }

  .verge-hero-title {
    font-size: 2.75rem;
    max-width: 700px;
  }

  .verge-list-title {
    font-size: 1.125rem;
  }

  .verge-list-image {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 1024px) {
  .verge-hero-title {
    font-size: 3rem;
  }

  .verge-hero-content {
    padding: 48px 40px;
  }

  .verge-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .verge-article-title {
    font-size: 3rem;
  }

  .verge-article-body {
    font-size: 1.125rem;
  }
}

@media (min-width: 1280px) {
  .verge-hero-image {
    aspect-ratio: 21 / 9;
  }
}
