/* Orgi Mod - Sleek Modern Dark Theme (English & SVG Only) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #121815;
  --bg-card: #19221d;
  --bg-card-hover: #202b25;
  --bg-sidebar: #151d19;
  --bg-input: #1f2a24;

  --border-color: #2b3930;
  --border-hover: #10b981;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-primary: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.15);

  --loader-fabric: #d7c097;
  --loader-forge: #5a73a3;
  --loader-neoforge: #ea6935;
  --loader-quilt: #8352b2;
  --loader-paper: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  direction: ltr;
  text-align: left;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(18, 24, 21, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #047857 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-item {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
}

.btn-primary {
  background: var(--accent-primary);
  color: #062b1e;
  font-weight: 800;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* Category Tabs Bar */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
}

.cat-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  border-color: var(--accent-primary);
  color: #fff;
}

.cat-tab.active {
  background: var(--accent-primary);
  color: #062b1e;
  border-color: var(--accent-primary);
}

/* Big Typography Hero Section */
.hero-section {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-weight: 500;
}

.hero-search-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

.hero-search-box {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.hero-search-box:focus {
  border-color: var(--accent-primary);
}

/* Main Container Layout */
.main-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

/* Sidebar Filters */
.sidebar {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 95px;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 220px;
  overflow-y: auto;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.filter-item input[type="radio"] {
  accent-color: var(--accent-primary);
}

/* Loader Tag Badges */
.loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge-fabric { background: rgba(215, 192, 151, 0.12); color: var(--loader-fabric); border-color: rgba(215, 192, 151, 0.3); }
.badge-forge { background: rgba(90, 115, 163, 0.15); color: var(--loader-forge); border-color: rgba(90, 115, 163, 0.3); }
.badge-neoforge { background: rgba(234, 105, 53, 0.15); color: var(--loader-neoforge); border-color: rgba(234, 105, 53, 0.3); }
.badge-quilt { background: rgba(131, 82, 178, 0.15); color: var(--loader-quilt); border-color: rgba(131, 82, 178, 0.3); }
.badge-paper { background: rgba(239, 68, 68, 0.15); color: var(--loader-paper); border-color: rgba(239, 68, 68, 0.3); }

/* Project Cards Grid */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.project-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.project-author {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.project-author span {
  color: var(--text-muted);
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.project-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-item svg {
  width: 15px;
  height: 15px;
  fill: var(--text-dim);
}

/* Parsed Markdown Styles */
.markdown-body {
  color: #d1d5db;
  line-height: 1.7;
  font-size: 0.98rem;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: #fff;
  font-weight: 800;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body ul, .markdown-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-body code {
  background: var(--bg-input);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: #34d399;
}

.markdown-body pre {
  background: var(--bg-input);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

/* Modal Auth Window */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  text-align: center;
}
