/* ---------- Basic reset & page setup ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Dark blue background to match the Pigeons Post logo */
  background: #070b16;
  background-image:
    radial-gradient(900px 500px at 50% -10%, rgba(0, 153, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #0a1224 0%, #070b16 60%);
  background-attachment: fixed;
  color: #dce6f5;
  line-height: 1.5;
  min-height: 100vh;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ---------- Terms of Service popup ---------- */
.tos-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 6, 14, 0.85);
  backdrop-filter: blur(4px);
}

.tos-overlay.is-visible {
  display: flex;
}

/* Stop the page behind the popup from scrolling while it is open */
body.tos-open {
  overflow: hidden;
}

.tos-box {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #0f1b38, #0b1428);
  border: 1px solid rgba(0, 170, 255, 0.4);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 0 30px rgba(0, 140, 255, 0.5);
}

.tos-title {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  text-shadow: 0 0 14px rgba(0, 170, 255, 0.7);
}

.tos-text {
  color: #cfe0f7;
  font-size: 1.02rem;
  margin-bottom: 1.6rem;
}

.tos-accept {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0aa2ff, #0066ff);
  border: 1px solid rgba(120, 210, 255, 0.6);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(0, 170, 255, 0.5);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.tos-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 190, 255, 0.85);
}

/* ---------- Top bar with video logo (left corner) ---------- */
.topbar {
  background: #050810;
  border-bottom: 1px solid rgba(0, 153, 255, 0.25);
  padding: 0.5rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 0 14px rgba(0, 153, 255, 0.55);
}

/* ---------- Header ---------- */
.site-header {
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(0, 170, 255, 0.35), transparent 70%),
    linear-gradient(135deg, #0a2a66, #06122e);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
  border-bottom: 1px solid rgba(0, 170, 255, 0.4);
}

.site-header h1 {
  font-size: 2.3rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 18px rgba(0, 170, 255, 0.8);
}

.tagline {
  opacity: 0.85;
  font-size: 1.05rem;
  color: #aacbff;
}

/* ---------- Telegram contact button (header) ---------- */
.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, #29b6f6, #0077cc);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 210, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 170, 255, 0.5);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.telegram-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 190, 255, 0.85);
}

.telegram-btn-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* ---------- Search box ---------- */
.controls {
  margin: 1.5rem 0 1rem;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  background: #0d1730;
  color: #eaf2ff;
  border: 1px solid rgba(0, 153, 255, 0.3);
  border-radius: 8px;
  outline: none;
}

.search-input::placeholder {
  color: #6f86ad;
}

.search-input:focus {
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.25);
}

/* ---------- Category filter buttons ---------- */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-btn {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 153, 255, 0.35);
  background: #0d1730;
  color: #bcd3f5;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-btn:hover {
  border-color: #00aaff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.35);
}

.category-btn.active {
  background: linear-gradient(135deg, #0aa2ff, #0066ff);
  border-color: #00aaff;
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.6);
}

/* ---------- Store cards ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.store-card {
  background: linear-gradient(180deg, #0f1b38, #0b1428);
  border: 1px solid rgba(0, 153, 255, 0.22);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  border-color: #00aaff;
  box-shadow: 0 8px 22px rgba(0, 120, 255, 0.35);
}

/* Logo + name row at the top of each card (logo in the top-left) */
.store-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.store-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 0 8px rgba(0, 153, 255, 0.3);
}

/* Letter badge shown when a store has no website/logo */
.store-logo--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0aa2ff, #0066ff);
  padding: 0;
}

.store-heading-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.store-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.store-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 153, 255, 0.18);
  color: #6fc3ff;
  border: 1px solid rgba(0, 153, 255, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.store-details {
  list-style: none;
  margin-bottom: 1.1rem;
}

.store-details li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(120, 160, 220, 0.18);
  font-size: 0.95rem;
}

.store-details li:last-child {
  border-bottom: none;
}

.store-details .label {
  color: #8aa3c7;
}

.store-details .value {
  font-weight: 600;
  text-align: right;
  color: #eaf2ff;
}

.store-link {
  margin-top: auto;
  text-align: center;
  background: linear-gradient(135deg, #0aa2ff, #0066ff);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.store-link:hover {
  box-shadow: 0 0 16px rgba(0, 170, 255, 0.7);
  transform: translateY(-1px);
}

/* ---------- Empty message & footer ---------- */
.empty-message {
  text-align: center;
  color: #8aa3c7;
  padding: 2rem 0;
  font-size: 1.05rem;
}

.site-footer {
  text-align: center;
  color: #5e7399;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 153, 255, 0.15);
}

.footer-telegram {
  color: #6fc3ff;
  text-decoration: none;
  font-weight: 600;
}

.footer-telegram:hover {
  color: #ffffff;
  text-decoration: underline;
}
