/* Girls and Nylons Wiki - Dark Theme */
:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #1f2940;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --accent: #e94560;
  --accent-hover: #ff6b6b;
  --link: #4ecdc4;
  --link-hover: #7ee8e0;
  --border: #2d3a4f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Header */
header {
  background: var(--bg-secondary);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
}

.logo span {
  color: var(--text-primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

article {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

article p:first-of-type {
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Sidebar */
aside {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-section {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-section li:last-child {
  border-bottom: none;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.cta-box h3 {
  color: white;
  margin: 0 0 0.5rem;
}

.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.cta-btn {
  display: inline-block;
  background: white;
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  transition: transform 0.2s;
}

.cta-btn:hover {
  transform: scale(1.05);
  text-decoration: none;
  color: var(--accent);
}

/* Image Styling */
.article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

figure {
  margin: 1.5rem 0;
}

figure img {
  max-width: 100%;
  border-radius: 8px;
}

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Lists */
ul, ol {
  margin: 1rem 0 1rem 2rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

td {
  color: var(--text-secondary);
}

/* Glossary Grid */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.glossary-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.glossary-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.glossary-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.glossary-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.category-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.category-card p {
  font-size: 0.9rem;
  margin: 0;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
}

/* A-Z Index */
.az-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.az-index a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 4px;
  color: var(--text-primary);
  font-weight: bold;
}

.az-index a:hover {
  background: var(--accent);
  text-decoration: none;
}

/* Info Box */
.info-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.info-box h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* See Also */
.see-also {
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.see-also h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.see-also ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  border: none;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Search (decorative) */
.search-box {
  max-width: 500px;
  margin: 2rem auto 0;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Article Images */
.article-img {
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  margin: 0 0 1rem 1.5rem;
  float: right;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.article-img.left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

@media (max-width: 600px) {
  .article-img {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
  }
}

