/* Import Zemew base styles */
@import url('../../css/style.css');

/* Dual PC specific styles using Zemew theme */
:root {
  --zms-100: #98BAE3;
  --zms-300: #5981B1;
  --zms-500: #365475;
  --zms-700: #15273C;
  --zms-900: #020408;
  --bg: radial-gradient(1200px 600px at 10% -10%, rgba(152,186,227,.12), transparent 60%),
        radial-gradient(1000px 600px at 90% 0%, rgba(54,84,117,.22), transparent 55%),
        linear-gradient(180deg, #0e1623 0%, #0b0f14 100%);
  --text: #E8EEF9;
  --muted: #bcd1ee;
  --accent: #8ab4ff;
  --chip: #19273a;
  --round: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --deep-blue: #365475;
  --midnight-core: #05080f;
  --header-offset: 96px;
  --toc-height: 44px;
}

/* Override body background for Zemew theme */
html, body {
  background: linear-gradient(135deg, #5981B1, #365475) !important;
  background-attachment: fixed !important;
}

body {
  background: transparent !important;
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.page-wrap {
  background: transparent !important;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Fix navbar overflow - override main Zemew CSS */
.site-header .inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  justify-content: space-between;
  position: relative;
}

/* Navigation Links - Desktop - Fix overflow */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  overflow: hidden;
}

.nav-link {
  padding: 6px 10px;
  color: var(--text);
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(152, 186, 227, 0.1);
  color: var(--accent);
  text-decoration: none !important;
}

.nav-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: none !important;
}

/* Remove all link decorations globally */
a, a:hover, a:focus, a:visited, a:active {
  text-decoration: none !important;
  color: inherit;
}

/* Hero section with Zemew styling */
.hero-wrap {
  background: radial-gradient(900px 600px at 12% -10%, rgba(152,186,227, 0.22), transparent 70%),
              radial-gradient(900px 600px at 100% 0%, rgba(54,84,117, 0.22), transparent 70%),
              rgba(14,22,35, 0.95);
  padding: 56px 20px 28px;
  position: relative;
}

.hero {
  width: 100%;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 54px);
  margin: 10px 0 4px;
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  font-weight: 600;
}

.hero p {
  color: var(--muted);
  margin: 0 0 18px;
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.hero-image {
  margin-top: 14px;
  border-radius: var(--round);
  overflow: hidden;
  border: 1px solid rgba(152,186,227, 0.1);
  box-shadow: var(--shadow);
  background: var(--zms-700);
  max-width: 600px;
  margin: 14px auto 0;
}

.hero-image img {
  width: 100%;
  height: clamp(180px, 28vw, 340px);
  object-fit: cover;
  display: block;
}

/* Sections with Zemew styling */
section[id] {
  scroll-margin-top: calc(var(--header-offset) + var(--toc-height));
}

main section {
  padding: 30px 0;
}

.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 28px 20px;
}

h2 {
  font-size: clamp(22px, 2.6vw, 34px);
  margin: 0 0 8px;
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 18px 0 6px;
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

p.lead {
  color: var(--muted);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

/* Cards with Zemew styling */
.card {
  background: var(--zms-700);
  border: 1px solid rgba(152,186,227, 0.18);
  border-radius: var(--round);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text) !important;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.card h3 {
  margin-top: 0;
  color: var(--text) !important;
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.card p {
  color: var(--muted) !important;
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.card h2 {
  color: var(--text) !important;
}

.card h4 {
  color: var(--text) !important;
}

.card li {
  color: var(--muted) !important;
}

.card ol {
  color: var(--muted) !important;
}

.card strong {
  color: var(--text) !important;
}

.card i {
  color: var(--muted) !important;
}

.card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

/* Callout boxes */
.callout {
  background: rgba(138,180,255, 0.1);
  border: 1px solid rgba(138,180,255, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.callout strong {
  color: var(--accent);
}

/* Dual PC specific styles */
.dualpc-head {
  margin: 0 0 10px;
  position: relative;
  padding-bottom: 6px;
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.dualpc-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--zms-300));
  opacity: 0.95;
}

.dualpc-sub {
  margin: 0 0 8px;
  position: relative;
  padding-bottom: 6px;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.dualpc-sub::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--zms-300), #8ee);
  opacity: 0.9;
}

.dualpc-sub.drawbacks::after {
  background: linear-gradient(90deg, var(--accent), #ffb3a8);
}

.dualpc-grid-2 {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 800px) {
  .dualpc-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Layout helpers */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Lists */
ul {
  color: var(--muted);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

ul li {
  margin-bottom: 8px;
}

/* Code blocks */
code {
  background: var(--chip);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #0f1928;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .14s ease, opacity .2s ease, border-color .14s ease;
  transform: translateY(0) scale(1);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.btn:hover {
  transform: translateY(-2px) scale(1);
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  
  .hamburger {
    display: flex !important;
  }
  
  .site-header .inner {
    padding: 12px 14px;
  }
  
  .hero-wrap {
    padding: 40px 20px 20px;
  }
  
  .wrap {
    padding: 20px;
  }
}