:root {
  --color-bg: #121212;
  --color-bg-light: #1e1e1e;
  --color-fg: #e0e0e0;
  --color-headers: #ffffff;
  --color-muted: #a0a0a0;
  --color-accent: #28b9cc;
  --color-labels-bg: #2a2a2a;
  --color-labels-fg: #cfcfcf;
  --color-pass: #66bb6a;
  --color-fail: #ef5350;
  --color-border: #444;
  --color-tooltip-bg: #333;
  --color-card-bg: rgba(30, 30, 30, 0.9);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.5);
  --border-radius: 10px;
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Roboto', Arial, sans-serif;
}

:root[data-theme="light"] {
  --color-bg: #f9f9f9;
  --color-bg-light: #ffffff;
  --color-fg: #212121;
  --color-labels-bg: #e0e0e0;
  --color-labels-fg: #424242;
  --color-headers: #000000;
  --color-muted: #616161;
  --color-border: #bdbdbd;
  --color-card-bg: rgba(255, 255, 255, 0.9);
  --color-tooltip-bg: #424242;
  --color-accent: #28b9cc;
}

#theme-toggle {
  background: none;
  border: 2px solid var(--color-border);
  color: var(--color-fg);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background-color: var(--color-bg-light);
}


*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-main);
  line-height: 1.75;
  font-size: 16px;
  transition: background var(--transition-smooth);
}

h1, h2, h3 {
  margin-bottom: 1rem;
  color: var(--color-headers);
  line-height: 1.2;
  cursor: default;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.4rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.3rem;
  color: var(--color-muted);
  margin-top: 1.5rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.card{
  cursor: default;
}

.card, .exploit {
  background: var(--color-card-bg);
  backdrop-filter: blur(6px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.exploit:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.exploit {
  border-left: 6px solid var(--color-pass);
}

.exploit.not-updated {
  border-left-color: var(--color-fail);
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
}

.title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-headers);
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.copyable {
  cursor: pointer;
  background: var(--color-bg);
  color: var(--color-fg);
  padding: 0.5rem 0.8rem;
  border-radius: var(--border-radius);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  display: inline-block;
  transition: background var(--transition-fast), color var(--transition-fast);
  box-shadow: inset 0 0 0 2px var(--color-border);
}

.copyable:hover {
  color: var(--color-fg);
  box-shadow: inset 0 0 0 2px var(--color-bg-light);
}

.version-label, .price-label {
  background: var(--color-labels-bg);
  color: var(--color-labels-fg);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 500;
}

.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.version-date {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}


.status-tag {
  background-color: var(--color-pass);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.status-tag.red {
  background-color: var(--color-fail);
}

.details {
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  display: none;
}

.details div {
  margin-bottom: 0.5rem;
}

.tooltip-icon {
  position: relative;
  color: #f1c40f;
  font-size: 1.1rem;
  cursor: pointer;
}

.tooltip-icon::after {
  content: attr(title);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-tooltip-bg);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

.tooltip-icon:hover::after {
  opacity: 1;
  transform: translate(-50%, -10%);
}

.status-indicator {
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

.status-indicator.pass { color: var(--color-pass); }
.status-indicator.fail { color: var(--color-fail); }

.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  margin: 0.25rem 0.4rem 0 0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: background-color var(--transition-fast);
}

.tag.green { background-color: var(--color-pass); }
.tag.red { background-color: var(--color-fail); }
.tag.yellow { background-color: #f1c40f; color: #000; }
.tag.blue { background-color: #3498db; }
.tag.purple { background-color: #9b59b6; }

.copyable-tooltip {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-tooltip-bg);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

.copyable-tooltip.show {
  opacity: 1;
  transform: translate(-50%, -10%);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.header-row h1 {
  margin-bottom: 0; 
}

@media (max-width: 768px) {
  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta {
    margin-top: 0.5rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .tooltip-icon::after {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }

  .card, .exploit {
    padding: 1rem;
  }

  .tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

.text-red {
  color: #ef5350;
}

.text-green {
  color: #66bb6a;
}
