/* Chinchilla Wiki Styles - Dark mode, matching chinchilaofficial.com design */

:root {
  --primary-bg: #000;
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #ff0048;
  --accent-secondary: #8b00ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Navigation */
.wiki-navbar {
  background-color: var(--primary-bg);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.wiki-navbar .brand {
  font-size: clamp(1.5rem, 8vw, 2.5rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wiki-navbar nav {
  display: flex;
  gap: 1.5rem;
}

.wiki-navbar a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.wiki-navbar a:hover {
  color: var(--text-primary);
}

/* Main container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero/Page header */
.page-header {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: clamp(2rem, 12vw, 4rem);
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Grid layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  margin-top: 0;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 10px 0;
  line-height: 1.5;
}

.card .meta {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 15px;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.2s;
}

.card a:hover {
  color: var(--accent-secondary);
}

/* Article content */
.article {
  padding: 20px 0;
}

.article h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.article h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article ul, .article ol {
  margin: 1rem 0 1rem 2rem;
  color: var(--text-secondary);
}

.article li {
  margin-bottom: 0.5rem;
}

.article a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.article a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Images */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.image-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Info boxes */
.box {
  background: rgba(255, 0, 72, 0.1);
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.box.warning {
  background: rgba(139, 0, 255, 0.1);
  border-left-color: var(--accent-secondary);
}

.box strong {
  color: var(--accent);
}

.box.warning strong {
  color: var(--accent-secondary);
}

/* Related articles */
.related {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 16px;
  margin: 3rem 0;
}

.related h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li {
  margin-bottom: 12px;
}

.related a {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.related a:hover {
  color: var(--accent-secondary);
  padding-left: 8px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0 2rem;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination a {
  color: var(--accent);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.pagination a:hover {
  background: var(--accent);
  color: var(--primary-bg);
  border-color: var(--accent);
}

.pagination .current {
  color: var(--text-secondary);
  text-align: center;
  flex: 1;
  min-width: 150px;
}

/* Search bar */
.search-form {
  display: flex;
  gap: 10px;
  margin: 2rem 0;
  justify-content: center;
}

.search-form input {
  flex: 1;
  max-width: 500px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.search-form button {
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border: none;
  border-radius: 12px;
  color: var(--primary-bg);
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
}

.search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 72, 0.3);
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 80px;
  text-align: center;
}

.footer ul {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent-secondary);
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-secondary);
}

.breadcrumb span {
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  color: var(--primary-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 72, 0.3);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(255, 0, 72, 0.1);
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 30px 20px;
  }

  .pagination {
    flex-direction: column;
  }

  .pagination a, .pagination .current {
    width: 100%;
  }

  .article h2 {
    font-size: 1.5rem;
  }

  .article h3 {
    font-size: 1.1rem;
  }

  .wiki-navbar {
    flex-direction: column;
    gap: 15px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input {
    max-width: 100%;
  }

  .footer ul {
    flex-direction: column;
    gap: 12px;
  }
}

/* Loading state */
.loading {
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Lists */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.list li:last-child {
  border-bottom: none;
}

.list a {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list a:hover {
  color: var(--accent-secondary);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th {
  background: rgba(255, 0, 72, 0.1);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Code blocks */
code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

pre {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-3 { margin-top: 2rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-4 { margin-bottom: 3rem; }
