/* PEAK Wiki - Layout CSS */
/* Navigation, hero sections, and page structure */

/* Navigation */
.navbar {
  background: var(--surface-1);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--spacing-sm);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-size: 0.9rem;
  flex-shrink: 1;
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--surface-2);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-width: 200px;
  max-width: 250px;
  flex-shrink: 0;
}

.nav-search input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm) var(--spacing-sm);
  color: var(--fg);
  font-size: 0.85rem;
  min-width: 150px;
  width: 100%;
}

.nav-search input::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nav-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.nav-search button {
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm) var(--spacing-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-search button:hover {
  background: var(--accent);
}

/* Hero Section */
.hero {
  background: var(--bg);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mountains" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0 100 L20 60 L40 80 L60 40 L80 70 L100 30 L100 100 Z" fill="%2323263a" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23mountains)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

/* Hero Video */
.hero-video {
  margin: var(--spacing-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.game-video {
  max-width: 100%;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--surface-1);
  border: 1px solid var(--line);
}

.video-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* Daily Seed Widget */
.daily-seed-widget {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  box-shadow: var(--shadow-md);
}

.daily-seed-widget h2 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.seed-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.seed-date {
  color: var(--text-secondary);
  font-size: 1rem;
}

.seed-number {
  background: var(--grad);
  color: var(--bg);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-family-mono);
}

.seed-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 48px;
  min-width: 140px;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--primary-bg);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-bg);
}

.cta-button.secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cta-button.secondary:hover {
  background: var(--secondary-bg);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
  padding: var(--spacing-2xl) 0;
  background: var(--surface-1);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  width: 100%;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.stat-card p {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

/* Featured Content */
.featured-content {
  padding: var(--spacing-2xl) 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-content h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  width: 100%;
}

.content-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: var(--surface-2);
}

.content-card h3 {
  color: var(--accent);
  margin-bottom: var(--spacing-md);
}

.content-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-link:hover {
  color: var(--accent);
}

/* Game Overview */
.game-overview {
  padding: var(--spacing-2xl) 0;
  background: var(--surface-1);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-overview h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.overview-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.overview-text p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
}

.stat strong {
  color: var(--primary);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.overview-cta {
  display: flex;
  justify-content: center;
  align-items: center;
}

.steam-button {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  border: 1px solid #66c0f4;
}

.steam-button:hover {
  background: linear-gradient(135deg, #2a475e, #1b2838);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Footer */
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Main Content */
main {
  min-height: calc(100vh - 64px - 200px); /* Account for nav and footer */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Game Gallery */
.game-gallery {
  padding: var(--spacing-3xl) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.game-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.game-gallery h2 {
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: 2.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-intro {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.gallery-item {
  background: var(--surface-1);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-md);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 0.1;
}

.game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
  position: relative;
  z-index: 2;
}

.gallery-item:hover .game-image {
  transform: scale(1.08);
}

.gallery-caption {
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--surface-1);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge and Item Meta Tags */
.badge-meta, .item-meta {
  display: flex;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
  flex-wrap: wrap;
}

.difficulty, .rarity, .category {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty.easy {
  background: #4ade80;
  color: #064e3b;
}

.difficulty.medium {
  background: #fbbf24;
  color: #78350f;
}

.difficulty.hard {
  background: #f97316;
  color: #7c2d12;
}

.difficulty.extreme {
  background: #ef4444;
  color: #7f1d1d;
}

.rarity.common {
  background: #6b7280;
  color: white;
}

.rarity.uncommon {
  background: #10b981;
  color: white;
}

.rarity.rare {
  background: #3b82f6;
  color: white;
}

.rarity.legendary {
  background: #8b5cf6;
  color: white;
}

.category {
  background: var(--secondary-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* News Items */
.news-item {
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg) 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

/* Daily Stats */
.daily-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.daily-hazards, .daily-items, .community-notes {
  margin-bottom: var(--spacing-lg);
}

.community-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.item-tags {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.item-tag {
  background: var(--accent-primary);
  color: var(--primary-bg);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Feature Items */
.feature-item {
  padding: var(--spacing-md);
  background: var(--secondary-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.feature-item h3 {
  color: var(--accent-secondary);
  margin-bottom: var(--spacing-sm);
}

/* Food Categories */
.food-category {
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.food-category h3 {
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
}

.food-category ul {
  list-style: none;
  padding: 0;
}

.food-category li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--border-color);
}

.food-category li:last-child {
  border-bottom: none;
}

/* Hazard Categories */
.hazard-category {
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.hazard-category h3 {
  color: #ef4444;
  margin-bottom: var(--spacing-md);
}

.hazard-category ul {
  list-style: none;
  padding: 0;
}

.hazard-category li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--border-color);
}

.hazard-category li:last-child {
  border-bottom: none;
}

/* Biome Cards */
.biome-card {
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.biome-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.biome-card h3 {
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
}

.biome-card p {
  margin-bottom: var(--spacing-sm);
}

/* Strategy Cards */
.strategy-card {
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.strategy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-secondary);
}

.strategy-card h3 {
  color: var(--accent-secondary);
  margin-bottom: var(--spacing-md);
}

.strategy-card ul {
  list-style: none;
  padding: 0;
}

.strategy-card li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--border-color);
}

.strategy-card li:last-child {
  border-bottom: none;
}

/* Tips Grid */
.tips-grid, .strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.tip, .strategy {
  padding: var(--spacing-lg);
  background: var(--secondary-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tip h3, .strategy h3 {
  color: var(--accent-primary);
  margin-bottom: var(--spacing-sm);
}

/* Guide Content */
.guide-content h3 {
  color: var(--accent-primary);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

.guide-content ul, .guide-content ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.guide-content li {
  margin-bottom: var(--spacing-xs);
}

/* Tips List */
.tips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-container {
    gap: var(--spacing-sm);
    max-width: 1200px;
  }
  
  .nav-links {
    gap: var(--spacing-sm);
  }
  
  .nav-links a {
    font-size: 0.85rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .nav-search {
    min-width: 180px;
  }
  
  .logo {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    height: 64px;
    padding: 0 var(--spacing-sm);
    gap: var(--spacing-xs);
    max-width: 100%;
  }
  
  .nav-links {
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--spacing-xs);
    overflow: hidden;
  }
  
  .nav-links a {
    font-size: 0.75rem;
    padding: var(--spacing-xs);
    min-width: 0;
  }
  
  .nav-search {
    min-width: 120px;
    max-width: 150px;
  }
  
  .nav-search input {
    min-width: 80px;
    font-size: 0.75rem;
    padding: var(--spacing-xs);
  }
  
  .nav-search button {
    font-size: 0.75rem;
    padding: var(--spacing-xs);
  }
  
  .logo {
    font-size: 0.9rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  .overview-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .tips-list {
    grid-template-columns: 1fr;
  }
  
  .daily-stats {
    grid-template-columns: 1fr;
  }
  
  .community-links {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-video {
    margin: var(--spacing-lg) 0;
  }
  
  .game-video {
    max-width: 100%;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xs);
  }
  
  .nav-search {
    width: 100%;
    justify-content: center;
    min-width: auto;
    max-width: none;
  }
  
  .nav-search input {
    min-width: 200px;
    max-width: 300px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .seed-info {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .hero-video {
    margin: var(--spacing-md) 0;
  }
  
  .game-video {
    border-radius: var(--radius-sm);
  }
} 