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

:root {
  --bg-primary: #0f172a;
  --bg-card: #3d4d63;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent: #22d3ee;
  --accent-secondary: #d4a847;
  --border-color: #475569;
  --grid-color: rgba(34, 211, 238, 0.03);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.header-logo svg {
  width: 32px;
  height: 32px;
}

.header-logo span {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Home page styles */
.home-page .container {
  justify-content: center;
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.logo {
  font-family: "Outfit", sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.logo .dot {
  background: linear-gradient(135deg, var(--accent) 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.status-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.status-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.subtext {
  font-size: 0.875rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

.home-page header {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.5rem 2rem;
  z-index: 1;
}

.home-page footer {
  position: relative;
  z-index: 1;
}

/* Projects section */
.projects {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Project card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-left-color: var(--accent);
}

.project-card.featured {
  border-left-color: var(--accent-secondary);
  background: linear-gradient(
    90deg,
    rgba(212, 168, 71, 0.05) 0%,
    transparent 100%
  );
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.project-card.featured .status-dot {
  background: var(--accent-secondary);
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tags span {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(5, 150, 105, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
}

.project-card.featured .tags span {
  color: var(--accent-secondary);
  background: rgba(212, 168, 71, 0.1);
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
}

.version {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.version:hover {
  opacity: 1;
}

#git-hash {
  color: var(--accent);
}

/* Now page */
.now-page {
  --accent: #059669;
  --bg-primary: #334155;
  --bg-content: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #cbd5e1;
}

.now-page .container {
  background: var(--bg-content);
}

.now-page header {
  background: var(--bg-primary);
}

.now-page .header-logo span {
  color: #fff;
}

.now-page .now-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.books-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.books-section {
  margin-bottom: 0;
}

.books-section h2 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.books-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.book-cover {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.book-cover-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.book-info {
  flex: 1;
  min-width: 0;
}

.book-info h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.book-author {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.books-empty,
.books-fallback {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.books-fallback a {
  color: var(--accent);
}

.profile-link {
  margin-top: 2rem;
  text-align: center;
}

.profile-link a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile-link a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .profile-link {
    text-align: left;
  }
}

/* Section headers and dividers */
.section-header {
  color: #059669;
  margin-bottom: 20px;
}

.section-divider {
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-color) 15%,
    var(--border-color) 85%,
    transparent
  );
  margin: 2rem auto;
  max-width: 80%;
  border-radius: 2.5px;
}

/* WoW Section */
.wow-section {
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  background: #e2e8f0;
}

a.wow-character {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a.wow-character:hover {
  opacity: 0.8;
}

.wow-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wow-name-block {
  display: flex;
  flex-direction: column;
  line-height: 25px;
}

.wow-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #8788ee;
  margin-bottom: 0;
}

.wow-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.wow-separator {
  width: 2px;
  height: 40px;
  background: var(--border-color);
}

.wow-stats-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wow-stats {
  font-size: 0.9rem;
  color: #a88332;
  font-weight: 500;
  margin: 0;
}

.wow-stat-spacer {
  display: inline-block;
  width: 20px;
}

.wow-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.wow-class {
  color: #8788ee;
}

.wow-avatar {
  width: 56px;
  height: 56px;
  border-radius: 4px;
}

.wow-collections {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
}

.wow-collection-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.wow-collection-item i {
  color: #a88332;
  font-size: 1.25rem;
}

.wow-collection-item .wow-collection-count {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.wow-collection-item .wow-collection-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wow-fallback {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav {
    gap: 1rem;
  }

  main {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .project-card {
    padding: 1rem;
  }
}
