/* Metronisys Core Theme Stylesheet
   v1.0.1 | Fixed Formatting & Image Scaling
*/

:root {
    /* Core Palette */
    --bg-dark: #0f1220;
    --bg-header: #000000;
    --card-bg: rgba(24, 27, 52, 0.5);
    --card-border: #2d3748;
    
    /* Brand Colors */
    --accent-blue: #5b7cfa;
    --accent-emerald: #10b981;
    --accent-purple: #a855f7;
    
    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-slate-300: #cbd5e1;
    
    /* Layout */
    --container-max: 1100px;
    --transition-speed: 0.3s;
  }
  
  /* Global Reset & Base Styles */
  body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  header, footer, article, .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Image Control - FIXES MASSIVE IMAGES */
  img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 2rem 0;
  }
  
  /* Typography Fixes */
  h1, h2, h3, h4 {
    font-weight: 700;
    margin-top: 0;
    color: #fff;
  }
  
  h1, .text-3xl { font-size: 2.5rem; letter-spacing: -0.02em; }
  h2, .text-2xl { font-size: 1.8rem; letter-spacing: -0.01em; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1rem; margin: 0; }
  
  p { margin-bottom: 1.5rem; }
  .text-lg { font-size: 1.125rem; }
  .text-slate-300 { color: var(--text-slate-300); }
  .text-slate-400 { color: var(--text-muted); }
  .font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.9em; }
  .uppercase { text-transform: uppercase; }
  .tracking-wider { letter-spacing: 0.05em; }
  .tracking-widest { letter-spacing: 0.1em; }
  .font-bold { font-weight: 700; }
  .text-center { text-align: center; }
  .text-white { color: #fff; }
  .text-sm { font-size: 0.875rem; }
  
  /* Spacing Utilities - RESTORES SECTION LAYOUT */
  .mb-4 { margin-bottom: 1rem; }
  .mb-6 { margin-bottom: 1.5rem; }
  .mb-12 { margin-bottom: 3rem; }
  .mt-4 { margin-top: 1rem; }
  .mt-6 { margin-top: 1.5rem; }
  .pb-2 { padding-bottom: 0.5rem; }
  .space-y-6 > * + * { margin-top: 1.5rem; }
  
  /* Grid System */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  /* Site Header */
  .site-header {
    background-color: var(--bg-header);
    max-width: 100%;
    padding: 20px 40px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
  }
  
  /* --- Link Styling --- */

/* Unread / Initial State */
a:link {
  color: #7dd3fc; /* Sky blue - high contrast against dark backgrounds */
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Visited / Read State */
a:visited {
  color: #94a3b8; /* Muted Slate - signals "seen" without the jarring purple */
}

/* Hover State */
a:hover {
  color: var(--accent-blue); /* Brighter brand blue on hover */
  text-decoration: underline;
}

/* Specific styling for the Reddit list area */
.reddit-conversations a:link {
  color: #38bdf8; /* Slightly deeper blue for long lists */
}

.reddit-conversations a:visited {
  color: rgba(56, 189, 248, 0.5); /* Faded version of the link color */
}

  
  /* Cards & Components */
  .bg-slate-800\/30 { background: rgba(30, 41, 59, 0.3); }
  .bg-slate-900\/50 { background: rgba(15, 23, 42, 0.5); }
  .p-6 { padding: 1.5rem; }
  .p-8 { padding: 2rem; }
  .rounded-xl { border-radius: 12px; }
  .rounded-2xl { border-radius: 16px; }
  .border { border: 1px solid var(--card-border); }
  .border-b { border-bottom: 1px solid var(--card-border); }
  .border-slate-700 { border-color: #334155; }
  .border-slate-600 { border-color: #475569; }
  
  /* Governance Section Specifics */
  .border-l-4 { border-left-width: 4px; border-left-style: solid; }
  .border-emerald-500 { border-left-color: var(--accent-emerald); }
  
  /* Layout Components */
  .flex { display: flex; }
  .flex-col { flex-direction: column; }
  .flex-shrink-0 { flex-shrink: 0; }
  .mt-auto { margin-top: auto; }
  .gap-4 { gap: 1rem; }
  .items-center { align-items: center; }
  .justify-center { justify-content: center; }
  .w-12 { width: 3rem; }
  .h-12 { height: 3rem; }
  .inline-block { display: inline-block; }

  /* Theme cards & accent borders */
  .theme-card { transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
  .theme-card:hover { border-color: rgba(255, 255, 255, 0.2); }
  .accent-blue { border-top: 3px solid var(--accent-blue); }
  .accent-emerald { border-top: 3px solid var(--accent-emerald); }
  .accent-purple { border-top: 3px solid var(--accent-purple); }

  /* Content cards (framework grid) */
  .card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color var(--transition-speed) ease;
  }
  .card:hover { border-color: #475569; }
  .card h3 { margin-top: 0; margin-bottom: 0.75rem; }
  .card p:last-child { margin-bottom: 0; }
  .card-cta { display: flex; align-items: center; justify-content: center; }

  /* Primary CTA buttons (theme cards) */
  .btn-blue, .btn-emerald, .btn-purple {
    display: block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
  }
  .btn-blue { background: var(--accent-blue); color: #fff; border: none; }
  .btn-blue:hover { background: #4c6ef5; color: #fff; }
  .btn-emerald { background: var(--accent-emerald); color: #fff; border: none; }
  .btn-emerald:hover { background: #059669; color: #fff; }
  .btn-purple { background: var(--accent-purple); color: #fff; border: none; }
  .btn-purple:hover { background: #9333ea; color: #fff; }
	
  /* Generic button / link button */
  .button {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    background: var(--accent-blue);
    border: none;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
  }
  .text-black {
    color: black !important;
  }
  .button:hover { background: #4c6ef5; color: #fff; }

  /* Share buttons */
  .share-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
  .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    text-decoration: none;
    color: #fff;
    transition: opacity var(--transition-speed) ease;
  }
  .share-btn:hover { opacity: 0.9; }
  .share-btn.twitter { background: #1da1f2; }
  .share-btn.facebook { background: #1877f2; }

  /* Footer */
  .footer-links { margin-bottom: 0.5rem; }
  .footer-links a { color: var(--text-muted); text-decoration: none; margin-right: 1.5rem; }
  .footer-links a:hover { color: #fff; }
  
  .bg-purple-900\/50 { background: rgba(88, 28, 135, 0.5); }
  .bg-blue-900\/50 { background: rgba(30, 58, 138, 0.5); }
  
  /* Color classes for text */
  .text-purple-400 { color: #c084fc; }
  .text-blue-400 { color: #60a5fa; }
  .text-emerald-400 { color: #34d399; }
  .text-emerald-300 { color: #6ee7b7; }
  .text-purple-300 { color: #d8b4fe; }
  .text-blue-300 { color: #93c5fd; }
  .text-xs { font-size: 0.75rem; }
  
  
  /* Vertical stacking and spacing */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Make the entire label a clickable button-like row */
.opt-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4); /* Muted slate background */
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover effect */
.opt-label:hover {
    background: rgba(56, 189, 248, 0.1); /* Subtle blue glow */
    border-color: var(--accent-blue);
}

/* Style the radio button itself */
.opt-label input[type="radio"] {
    appearance: none; /* Reset default style */
    background-color: transparent;
    margin: 0 1rem 0 0;
    font: inherit;
    color: var(--accent-blue);
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid var(--accent-blue);
    border-radius: 50%;
    display: grid;
    place-content: center;
    flex-shrink: 0;
}

/* The 'tick' or dot when checked */
.opt-label input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--accent-blue);
}

.opt-label input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Highlight the whole row when checked */
.opt-label:has(input:checked) {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-blue);
}

.q-title {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

  
  /* Table Styling */
  .overflow-x-auto { overflow-x: auto; margin-top: 1rem; }
  table { width: 100%; border-collapse: collapse; text-align: left; }
  th { padding: 12px 0; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
  td { padding: 16px 0; border-bottom: 1px solid #1e293b; font-size: 0.95rem; vertical-align: top; }
  
  /* Transitions */
  .transition { transition: all var(--transition-speed) ease; }
  
  /* Button System */
  .btn, [class*="px-5 py-2 border"] {
    display: inline-block;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
  }
  
  /* Link-Style Buttons (Tailwind mapping) */
  .border-slate-600:hover { background: rgba(255, 255, 255, 0.05); }
  .border-purple-500\/50 { border-color: rgba(168, 85, 247, 0.5); }
  .hover\:bg-purple-500\/10:hover { background: rgba(168, 85, 247, 0.1); }
  .border-blue-500\/50 { border-color: rgba(59, 130, 246, 0.5); }
  .hover\:bg-blue-500\/10:hover { background: rgba(59, 130, 246, 0.1); }
  .bg-emerald-600 { background-color: var(--accent-emerald); color: #fff; border: none; }
  .bg-emerald-600:hover { background-color: #059669; }
  .bg-slate-200 { background-color: #e2e8f0; color: #0f172a; border: none; }
  .bg-slate-200:hover { background-color: #fff; }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #1e293b;
    margin-top: 80px;
    opacity: 0.8;
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    h1, .text-3xl { font-size: 2rem; }
    h2, .text-2xl { font-size: 1.5rem; }
    .grid { grid-template-columns: 1fr; }
    .site-header { padding: 15px 20px; }
  }
  
  .nav-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* This allows items to move to the next line */
  gap: 15px;
}

/* Ensure buttons take up full width on very small screens if desired */
@media (max-width: 480px) {
  .nav-buttons {
    flex-direction: column; /* Forces vertical stacking */
    align-items: center;
  }
  
  .nav-buttons a, 
  .nav-buttons button {
    width: 100%; /* Optional: makes buttons full-width on mobile */
    max-width: 300px;
  }
}

  
/* ===============================
   Hamburger Menu System
================================ */

/* Hide checkbox */
.menu-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Hamburger icon */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Slide-out side menu */
.side-menu {
  position: fixed;
  top: 0;
  left: -360px;
  width: 280px;
  height: 100vh;
  background: #0a0c14;
  border-right: 1px solid var(--card-border);
  padding: 80px 20px 20px;
  transition: left 0.3s ease;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}

/* Menu header */
.menu-header {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  margin-bottom: 2rem;
  padding-left: 15px;
}

/* Menu list */
.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li a {
  display: block;
  padding: 12px 15px;
  color: var(--text-slate-300);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.side-menu li a:hover {
  background: rgba(91,124,250,0.1);
  color: #fff;
}

/* Divider */
.menu-divider {
  border: 0;
  border-top: 1px solid var(--card-border);
  margin: 15px 0;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;

  background: rgba(0,0,0,0.6);

  opacity:0;
  pointer-events:none;

  transition: opacity 0.3s ease;
  z-index:999;
}

.menu-checkbox:checked ~ .menu-overlay {
  opacity:1;
  pointer-events:auto;
}

.share-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Footer SHARE buttons\ */
.share-btn {
  /* This makes them all the same size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px; /* Fixed width for uniform boxes */
  height: 44px; /* Fixed height */
  
  gap: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff !important;
  transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.share-btn.github {
    background-color: #24292e; /* Classic GitHub Dark Grey */
    color: #ffffff;
}

.share-btn.github:hover {
    background-color: #444d56;
}

/* Specific Colors */
.twitter { background-color: #1DA1F2; }
.facebook { background-color: #1877F2; }
.youtube { background-color: #FF0000 !important; } /* Forces the Red color */

/* ===============================
   Toggle Behaviour
================================ */

/* Open menu */
.menu-checkbox:checked ~ .side-menu {
  left: 0;
}

/* Activate overlay */
.menu-checkbox:checked ~ .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger animation → X */
.menu-checkbox:checked + .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-checkbox:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-checkbox:checked + .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


