/* CSS Variables */
:root {
  --bg: #0b0f1a;
  --card: #12182a;
  --muted: #676f7b;
  --txt: #e6eefc;
  --acc: #4da3ff;
  --ok: #82d815;
  --warn: yellow;
  --bad: red;
  --border: #363d4e;
  --border-light: #243357;
  --gradient-bg: radial-gradient(
    1200px 600px at 20% -10%,
    #142043 0%,
    transparent 60%
  );
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif;
  color: var(--txt);
  background: #232a34;
  min-height: 100vh;
}

a {
  color: var(--txt);
  text-decoration: none;
}

a:hover {
  color: var(--txt);
  text-decoration: none;
}

/* Typography */
h1 {
  font-size: 32px;
  margin: 0;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  margin: 0;
  font-weight: 600;
}

h3 {
  font-size: 18px;
  margin: 0 0 6px 0;
  font-weight: 600;
}

p {
  margin: 0 0 1rem 0;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: #191d26;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  height: 50px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #c2c2c2;
}

.nav-icon {
  width: 22px;
  height: 24px;
  margin-right: 4px;
}

.hero-content .btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Navigation Pills */
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 18px;
  color: var(--txt);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #0f1730;
  color: var(--txt);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
  justify-content: center;
  max-width: fit-content;
}

.btn.small {
  background-color: var(--ok);
  color: #000;
  padding: 8px 12px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  max-width: 140px;
  text-align: center;
}

.btn.primary {
  background: transparent;
  color: var(--ok);
  border-color: var(--ok);
  border-radius: 5px;
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn.danger {
  background: var(--bad);
  color: white;
  border-color: var(--bad);
}

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

/* Cards */
.card {
  background: #191d26;
  border-radius: 16px;
  padding: 16px;
}

.card.verified {
  border: 1px solid var(--ok);
  background: #191d26;
  position: relative;
  max-width: 400px;
}

.card.verified::before {
  content: "OFFICIAL";
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--ok);
  color: #fff;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: bold;
  border-radius: 4px;
}

.mobile {
  display: none !important;
}

.desktop {
  display: block !important;
}

/* Grid System */
.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Flex Utilities */
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flex.column {
  flex-direction: column;
  align-items: stretch;
}

.flex.space-between {
  justify-content: space-between;
}

.flex.start {
  align-items: flex-start;
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-radius: 5px;
  justify-content: center;
}

.status.ok {
  border: 1px solid var(--ok);
  color: var(--ok);
}

.status.warn {
  border: 1px solid var(--warn);
  color: var(--warn);
}

.status.bad {
  border-radius: 15px;
  border: 1px solid var(--bad);
  background-color: var(--bad);
  color: #000;
}

/* Tags */
.tag {
  border: 1px solid var(--ok);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ok);
}

.tag.verified {
  background-color: var(--ok);
  color: #000;
  padding: 4px 8px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  max-width: 100px;
  text-align: center;
}

.filter-wrap {
  margin-bottom: 10px;
  gap: 12px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.filter-item .input {
  border: 1px solid var(--ok);
  padding: 6px 12px;
  background-color: transparent;
}

.filter-item .search {
  border: 1px solid var(--ok);
  padding: 12px;
  background-color: transparent;
}

.filter-item .search::placeholder {
  color: var(--txt);
}

/* Hero Section */
.hero {
  padding: 0;
  margin: 0;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 22px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  z-index: 2;
}

.hero-content h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: #82d815;
}

.hero-content p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.hero-content .btn {
  background-color: transparent;
  border: 1px solid #82d815;
  display: flex;
  align-items: center;
}

.hero-content .btn:focus,
.hero-content .btn:active,
.hero-content .btn:hover {
  background-color: transparent;
  outline: none;
}

/* Promotional Banner */
.promo-banner {
  margin: 40px 0;
  text-align: center;
}

.promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Section Headers */
.section {
  margin: 28px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: var(--ok);
}

.section h2 .btn-icon {
  width: 36px;
  height: 36px;
  margin-right: 12px;
}

/* Text Utilities */
.muted {
  color: var(--muted);
}

.danger {
  color: var(--bad);
}

.success {
  color: var(--ok);
}

.warn {
  color: var(--warn);
}

/* Form Elements */
.input,
textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--txt);
  background: #0c1226;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.input:hover,
.input:focus,
.input:active,
textarea:hover,
textarea:focus,
textarea:active {
  border: 1px solid var(--ok);
  outline: none;
}

/* Custom Select Arrow */
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M7 15l5 5 5-5'/%3e%3cpath d='M7 9l5-5 5 5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.brands {
  display: flex;
  gap: 12px;
}

.official-sites {
  display: flex;
}

.official-sites-icon {
  width: 80px;
  height: 80px;
  margin-right: 20px;
}

.official-sites-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keyboard Keys */
.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  background: #0c1226;
  border: 1px solid #1f2a4a;
  padding: 2px 6px;
  border-radius: 6px;
}

.kbd.verified {
  background: rgba(0, 214, 143, 0.1);
  color: var(--ok);
  border-color: var(--ok);
}

/* Lists */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
footer {
  margin: 36px 0;
  color: var(--txt);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 768px) {
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  nav .pill {
    font-size: 10px;
    padding: 2px;
  }

  .brand {
    font-size: 12px;
    gap: 6px;
  }
  .section {
    margin: 20px 0 12px;
  }

  .nav-links {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    margin-top: 10px;
  }

  .mobile {
    display: block !important;
  }

  .desktop {
    display: none !important;
  }

  .logo {
    height: 32px;
  }

  .nav-icon {
    width: 13px;
    height: 13px;
    margin-right: 2px;
  }

  .btn.small {
    font-size: 12px;
    padding: 6px 8px;
    max-width: 120px;
  }

  .hero-banner {
    height: 140px;
  }

  .hero-image {
    object-fit: inherit;
  }

  .hero-content h1 {
    font-size: 25px;
  }

  .hero-content p {
    font-size: 12px;
    text-align: center;
  }

  .section h2 {
    font-size: 20px;
  }

  .section h2 .btn-icon {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }

  .filter-wrap {
    flex-direction: column;
    gap: 8px;
  }

  .filter-item {
    width: 100%;
  }

  .filter-item .input {
    width: 100%;
  }

  .filter-item .search {
    width: 100%;
  }

  .brands {
    flex-direction: column;
  }

  .official-sites h3 {
    font-size: 16px;
  }

  .official-sites .muted {
    font-size: 12px;
  }

  .btn.primary {
    min-width: 95px;
  }

  .status {
    min-width: 95px;
  }

  /* Mobile layout for security warnings */
  .flex[style*="justify-content: space-between"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .flex[style*="justify-content: space-between"] > div:last-child {
    align-self: flex-end;
    margin-top: 8px;
  }

  footer {
    font-size: 10px;
    margin: 24px 0;
  }
}

/* Hide Official Brands hero banner on desktop */
@media (min-width: 768px) {
  .hero {
    display: none;
  }
}

/* Responsive Design */
@media (min-width: 769px) and (max-width: 1200px) {
  .container {
    padding: 16px;
  }

  .flex.column {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .flex.column > * {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 12px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 16px;
  }

  nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  nav .pill {
    font-size: 14px;
    padding: 2px 6px;
  }

  .mobile {
    display: block !important;
  }

  .desktop {
    display: none !important;
  }

  .section {
    margin: 20px 0 12px;
  }

  .nav-links {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    margin-top: 5px;
  }

  .logo {
    height: 40px;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
  }

  .btn.small {
    font-size: 12px;
    padding: 6px 8px;
    max-width: 120px;
  }

  .hero-banner {
    height: 180px;
  }

  .hero-image {
    object-fit: inherit;
  }
}

/* Security Alert Banner */
.security-banner {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.security-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  animation: move 2s linear infinite;
}

@keyframes move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(20px);
  }
}

.security-banner h2 {
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.security-banner p {
  font-size: 16px;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
