/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: #1DB954; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Header === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #181818;
  border-bottom: 1px solid #282828;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1DB954;
  letter-spacing: -0.5px;
}
.logo:hover { text-decoration: none; }

.header-nav { display: flex; gap: 1.25rem; }
.header-nav a { color: #B3B3B3; font-size: 0.875rem; font-weight: 500; }
.header-nav a:hover { color: #fff; text-decoration: none; }

/* === 3-Column Layout === */
.layout-3col {
  display: grid;
  grid-template-columns: 180px 1fr 320px;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.ad-slot--sidebar { min-height: 600px; width: 160px; background: #181818; border-radius: 8px; border: 1px dashed #404040; }
.ad-slot--sidebar-sm { min-height: 250px; width: 300px; background: #181818; border-radius: 8px; border: 1px dashed #404040; }
.ad-slot--inline { display: none; min-height: 250px; background: #181818; border-radius: 8px; border: 1px dashed #404040; margin: 1.5rem 0; }
.ad-slot--bottom { min-height: 90px; max-width: 1000px; margin: 1.5rem auto; background: #181818; border-radius: 8px; border: 1px dashed #404040; }

/* === Main Content === */
.main-content { min-width: 0; }

h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.intro-text {
  color: #B3B3B3;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

/* === Card === */
.card {
  background: #181818;
  border: 1px solid #282828;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-desc {
  color: #B3B3B3;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* === Password Display === */
.password-display {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.password-display input {
  flex: 1;
  background: #212121;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #1DB954;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.password-display input:focus {
  border-color: #1DB954;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: #1DB954; color: #121212; }
.btn--primary:hover { background: #1ed760; }

.btn--secondary { background: #282828; color: #e0e0e0; border: 1px solid #404040; }
.btn--secondary:hover { background: #333; }

.btn--copy { background: #282828; color: #B3B3B3; white-space: nowrap; min-width: 70px; }
.btn--copy:hover { background: #333; color: #fff; }
.btn--copy.copied { background: #1DB954; color: #121212; }

.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* === Controls === */
.controls { margin-bottom: 1rem; }

.control-row { margin-bottom: 0.75rem; }

.control-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #B3B3B3;
  margin-bottom: 0.35rem;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #404040;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1DB954;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1DB954;
  cursor: pointer;
  border: none;
}

.control-row--checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #B3B3B3;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1DB954;
  cursor: pointer;
}

/* === Strength Meter === */
.strength-meter {
  width: 100%;
  height: 8px;
  background: #282828;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.strength-details {
  list-style: none;
  padding: 0;
}
.strength-details li {
  font-size: 0.8rem;
  color: #B3B3B3;
  padding: 0.2rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.strength-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.strength-details li.pass::before { background: #1DB954; }
.strength-details li.fail::before { background: #e74c3c; }

/* === Multi Password List === */
.multi-password-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.multi-password-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.multi-password-item input {
  flex: 1;
  background: #212121;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: #1DB954;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
}

.multi-password-item .btn--copy {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  min-width: 55px;
}

/* === Content Below === */
.content-below {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.card--wide { width: 100%; }

/* === Tips Grid === */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.tip-item {
  background: #212121;
  border-radius: 8px;
  padding: 1rem;
}

.tip-item p {
  color: #B3B3B3;
  font-size: 0.85rem;
}

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  background: #212121;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before {
  content: '+';
  display: inline-block;
  width: 1.5rem;
  color: #1DB954;
  font-weight: 700;
}
details[open] .faq-question::before { content: '-'; }

.faq-answer {
  padding: 0 1rem 1rem 2.5rem;
  color: #B3B3B3;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* === Cross Links === */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.tool-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #212121;
  border-radius: 8px;
  padding: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid #282828;
}
.tool-link:hover { background: #282828; text-decoration: none; border-color: #1DB954; }

.tool-icon { font-size: 1.5rem; }
.tool-name { font-weight: 600; color: #fff; font-size: 1rem; }
.tool-desc { color: #B3B3B3; font-size: 0.8rem; }

/* === Footer === */
.footer {
  background: #181818;
  border-top: 1px solid #282828;
  padding: 2rem 1.5rem 1rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logo { font-weight: 800; color: #1DB954; font-size: 1.1rem; }
.footer-about-text { color: #535353; font-size: 0.8rem; margin-top: 0.5rem; }

.footer-heading { color: #B3B3B3; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.footer-links-group { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links-group a { color: #535353; font-size: 0.85rem; }
.footer-links-group a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  text-align: center;
  border-top: 1px solid #282828;
  padding-top: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.footer-bottom p { color: #535353; font-size: 0.75rem; }

/* === Responsive === */
@media (max-width: 1024px) {
  .layout-3col {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }
  .sidebar--left { display: none; }
  .sidebar--right { display: none; }
  .ad-slot--inline { display: block; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }

  .header { padding: 0.75rem 1rem; }

  .control-row--checks { grid-template-columns: 1fr; }

  .tips-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }

  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}
