/* ═══════ HowToUnzip.com — Shared Styles ═══════ */

:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --navy-dark: #111b30;
  --gold: #c9a84c;
  --gold-light: #e8d08f;
  --gold-dim: #a08530;
  --cream: #faf8f4;
  --cream-dark: #f0ece4;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --text-muted: #8a8a8a;
  --green: #2d8a4e;
  --green-bg: #e8f5ee;
  --red: #c0392b;
  --red-bg: #fdecea;
  --blue: #2471a3;
  --blue-bg: #eaf2f8;
  --orange: #d68910;
  --orange-bg: #fef5e7;
  --border: #e0dcd4;
  --shadow: 0 2px 12px rgba(26,39,68,0.08);
  --shadow-lg: 0 8px 32px rgba(26,39,68,0.12);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2a4068 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo a {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
}

.logo a span { color: rgba(255,255,255,0.3); }

.header-nav { display: flex; gap: 0; align-items: center; }

.header-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  margin-left: 28px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--gold-light); }

/* ─── HERO ─── */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-sm { padding: 48px 32px 56px; }

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(201,168,76,0.2);
}

.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}

.hero-sm h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* ─── AD BANNERS ─── */
.ad-banner {
  background: var(--cream-dark);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  max-width: 728px;
  margin: 0 auto;
}

.ad-banner.leaderboard { height: 100px; display: flex; align-items: center; justify-content: center; }
.ad-banner.rectangle { max-width: 336px; height: 280px; display: flex; align-items: center; justify-content: center; }
.ad-banner.in-article { height: 120px; display: flex; align-items: center; justify-content: center; max-width: 100%; }

.ad-section {
  padding: 24px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── CONTENT GRID ─── */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.main-content { min-width: 0; }

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 24px; }

.sidebar-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}

.toc-list { list-style: none; }
.toc-list li { margin-bottom: 6px; }

.toc-list a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: var(--navy);
  background: var(--cream);
  border-left-color: var(--gold);
}

.affiliate-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: white;
  margin-bottom: 24px;
  border: 1px solid rgba(201,168,76,0.2);
}

.affiliate-box .af-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.affiliate-box h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.affiliate-box p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.6;
}

.affiliate-box .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  padding: 11px 20px;
}

/* ─── SECTIONS ─── */
.section {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section h2 .num {
  background: var(--gold);
  color: var(--navy-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section .subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
  padding-left: 44px;
}

.section h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 12px;
}

.section p { margin-bottom: 16px; color: var(--text); }

/* ─── OS TABS ─── */
.os-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.os-tab {
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.os-tab:hover { color: var(--navy); }
.os-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.os-panel { display: none; }
.os-panel.active { display: block; }

/* ─── STEPS ─── */
.step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--cream);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.step-num {
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.step-content .path {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 4px 0;
}

/* ─── CALLOUTS ─── */
.callout {
  padding: 18px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.callout-tip { background: var(--green-bg); border-left: 3px solid var(--green); }
.callout-warning { background: var(--orange-bg); border-left: 3px solid var(--orange); }
.callout-danger { background: var(--red-bg); border-left: 3px solid var(--red); }
.callout-info { background: var(--blue-bg); border-left: 3px solid var(--blue); }
.callout strong { display: block; margin-bottom: 4px; }

/* ─── TROUBLESHOOTING ─── */
.trouble-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.trouble-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--navy);
  transition: background 0.15s;
}

.trouble-q:hover { background: var(--cream); }
.trouble-q .arrow { transition: transform 0.25s; color: var(--text-muted); font-size: 1.1rem; }
.trouble-item.open .trouble-q .arrow { transform: rotate(180deg); }
.trouble-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.trouble-item.open .trouble-a { max-height: 600px; }

.trouble-a-inner {
  padding: 0 20px 20px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.trouble-a-inner p { margin-bottom: 10px; }
.trouble-a-inner p:last-child { margin-bottom: 0; }

/* ─── TABLES ─── */
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }

.ref-table th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ref-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-light); }
.ref-table tr:nth-child(even) td { background: var(--cream); }
.ref-table .tool-name { font-weight: 600; color: var(--navy); }

.badge-free {
  background: var(--green-bg); color: var(--green);
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}

.badge-paid {
  background: var(--orange-bg); color: var(--orange);
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}

/* ─── RELATED GUIDES GRID ─── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.guide-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.guide-card .card-icon { font-size: 2rem; margin-bottom: 12px; }

.guide-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 48px 32px;
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: var(--gold-dim); text-decoration: none; }
footer a:hover { color: var(--gold-light); }
.footer-inner { max-width: 800px; margin: 0 auto; }

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
  line-height: 1.6;
}

/* ─── ANIMATIONS ─── */
.section {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }
.section:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge, .hero h1, .hero p, .hero-buttons {
  opacity: 0; transform: translateY(12px); animation: fadeUp 0.6s ease forwards;
}
.hero h1 { animation-delay: 0.1s; }
.hero p { animation-delay: 0.2s; }
.hero-buttons { animation-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .content-wrapper { grid-template-columns: 1fr; padding: 24px 16px; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .section { padding: 28px 24px; }
  .hero { padding: 48px 24px 56px; }
  .header-nav { display: none; }
}

@media (max-width: 560px) {
  .sidebar { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.65rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .step { flex-direction: column; gap: 10px; }
  .section { padding: 24px 18px; }
  .os-tab { padding: 10px 14px; font-size: 0.84rem; }
  .guides-grid { grid-template-columns: 1fr; }
}
