/* Weegoes Editorial Hub Styles */
:root {
  --hub-bg: var(--bg-page);
  --hub-surface: var(--bg-surface);
  --hub-border: var(--border-light);
  --hub-text-primary: var(--text-primary);
  --hub-text-secondary: var(--text-secondary);
  --hub-accent: var(--accent);
}

body {
  background-color: var(--hub-bg);
  color: var(--hub-text-primary);
  min-height: 100vh;
}

/* Hub Layout */
.hub-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 24px 60px;
}

/* Editorial Hero Section */
.hub-hero {
  max-width: 860px;
  margin: 20px auto 48px;
  text-align: center;
}

.hero-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-accent);
  margin-bottom: 20px;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  background-color: var(--hub-accent);
  border-radius: 50%;
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--hub-text-primary);
  margin-bottom: 22px;
}

.editorial-italic {
  font-style: italic;
  color: var(--hub-accent);
}

.editorial-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--hub-text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 28px;
  font-weight: 400;
}

.editorial-metadata-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.metadata-divider {
  width: 3px;
  height: 3px;
  background: #C4BFB5;
  border-radius: 50%;
}

/* Filter & Search Bar */
.filter-search-container {
  max-width: 1180px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.search-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.hub-search-input {
  width: 100%;
  height: 44px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--radius-sm);
  padding: 0 46px 0 40px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--hub-text-primary);
  transition: all 0.15s ease;
  box-shadow: var(--shadow-subtle);
}

.hub-search-input::placeholder {
  color: var(--text-muted);
}

.hub-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}

.search-key-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  pointer-events: none;
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--hub-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cat-tab:hover {
  background: var(--bg-subtle);
  color: var(--hub-text-primary);
}

.cat-tab.active {
  background: var(--hub-surface);
  border-color: var(--hub-border);
  color: var(--hub-text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
}

.cat-tab-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 400;
}

.cat-tab.active .cat-tab-count {
  color: var(--hub-accent);
  font-weight: 600;
}

/* Cards Grid */
.cards-grid-section {
  max-width: 1180px;
  margin: 0 auto;
}

.wonders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.wonder-card {
  display: flex;
  flex-direction: column;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--hub-text-primary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.wonder-card:hover {
  transform: translateY(-2px);
  border-color: #D4CFC6;
  box-shadow: var(--shadow-card);
}

.card-poster {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 59.375%;
  background: #EDEAE3;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.poster-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.wonder-card:hover .poster-bg {
  transform: scale(1.02);
}

.card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.poster-category-tag {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hub-text-primary);
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.card-fav-btn {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.card-fav-btn:hover {
  color: var(--hub-accent);
  background: #FFFFFF;
}

.card-fav-btn.active {
  color: var(--hub-accent);
  border-color: var(--hub-accent);
}

.card-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  margin-bottom: 8px;
}

.wonder-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--hub-text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.wonder-desc {
  font-size: 13.5px;
  color: var(--hub-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
  font-weight: 400;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.card-stat-tag {
  color: var(--text-muted);
  font-weight: 500;
}

.card-action-link {
  color: var(--hub-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.wonder-card:hover .card-action-link {
  transform: translateX(2px);
}

/* Editorial Footer */
.hub-footer {
  max-width: 1180px;
  margin: 70px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-col > * + * {
  margin-top: 12px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--hub-text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-desc strong {
  color: var(--hub-text-primary);
  font-weight: 600;
}

.footer-credit {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hub-text-primary);
  margin-bottom: 12px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
}

.footer-link {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hub-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--hub-accent);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .hub-wrapper {
    padding-top: 68px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hub-hero {
    margin: 10px auto 32px;
  }

  .editorial-title {
    font-size: 38px;
    margin-bottom: 14px;
  }

  .editorial-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .wonders-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-tabs {
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-row > * + * {
    margin-top: 6px;
  }
}
