/* GLOBAL */
body {
  background: radial-gradient(circle at top, #001a33, #000010);
  color: #e0f7ff;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #001a33;
}
::-webkit-scrollbar-thumb {
  background: #0ea5e9;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1ec8ff;
}

/* TOP BAR TABLE */
.topbar {
  background: rgba(0, 20, 40, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #0ea5e9;
  padding: 10px 0;
}
.topbar td {
  padding: 10px 20px;
}
.topbar .left {
  text-align: left;
}
.topbar .right {
  text-align: right;
}

/* HOME LINK */
.home-link {
  color: #0ea5e9;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
  transition: 0.2s;
}
.home-link:hover {
  color: #ff003c;
  text-shadow: 0 0 10px #ff003c;
}

/* TOP IMAGE */
.top-img-link img {
  height: 50px;
  border-radius: 8px;
  border: 2px solid #0ea5e9;
  transition: 0.3s;
}
.top-img-link img:hover {
  border-color: #ff003c;
  box-shadow: 0 0 20px #ff003c;
}

/* MAIN TABLE */
.main-table {
  width: 800px;
  margin-top: 40px;
  background: rgba(0, 20, 40, 0.6);
  border: 1px solid #0ea5e9;
  border-radius: 20px;
  box-shadow: 0 0 40px #0ea5e955;
  backdrop-filter: blur(20px);
  padding: 20px;
}

/* TITLE */
.title-cell {
  text-align: center;
  padding: 20px;
}
.title {
  font-size: 32px;
  color: #0ea5e9;
  text-shadow: 0 0 20px #0ea5e9;
}

/* UPLOAD BUTTON */
.upload-cell {
  text-align: center;
  padding: 20px;
}
.upload-btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(90deg, #0ea5e9, #ff003c);
  border-radius: 50px;
  color: #001a33;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.upload-btn:hover {
  box-shadow: 0 0 20px #0ea5e9, 0 0 20px #ff003c;
}
.upload-btn input {
  display: none;
}

/* PREVIEW */
.preview-box {
  text-align: center;
  padding: 20px;
}
.preview-img {
  max-width: 100%;
  border-radius: 20px;
  border: 2px solid #0ea5e9;
  box-shadow: 0 0 30px #0ea5e9;
}

/* TAGS TABLE */
.tags-table {
  width: 100%;
  margin-top: 20px;
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags span {
  padding: 6px 14px;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid #0ea5e9;
  border-radius: 20px;
  font-size: 14px;
  transition: 0.2s;
}
.tags span:hover {
  background: rgba(255, 0, 60, 0.3);
  border-color: #ff003c;
  box-shadow: 0 0 10px #ff003c;
}
/* FULL-WIDTH BANNER ABOVE COPYRIGHT */
.fullwidth-banner {
  width: 100%;
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
}

.fullwidth-banner img {
  width: 100%;
  max-width: 1200px; /* keeps it elegant on large screens */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(30,144,255,0.6);
  transition: transform .25s ease, box-shadow .25s ease;
}

.fullwidth-banner img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(255,212,71,0.9);
}

/* MOBILE FIX */
@media (max-width: 600px) {
  .fullwidth-banner {
    margin: 30px 0 15px;
    padding: 0;
  }

  .fullwidth-banner img {
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(30,144,255,0.5);
  }
}
/* ================================
   BLUE‑IDEA SEARCH ENGINE (DELUXE)
   ================================ */

/* Prevent Chrome zoom */
#bi-search,
#bi-cats div,
#bi-results div {
  font-size: 16px !important;
}

/* Search bar */
#bi-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(30,144,255,0.4);
  background: rgba(3,12,40,0.95);
  color: #e5f0ff;
  outline: none;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
  margin: 20px auto;
  display: block;
  max-width: 700px;
}

#bi-search:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 18px rgba(30,144,255,0.8);
  background: #020b2a;
  transform: translateY(-1px);
}

/* Categories bar */
#bi-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px auto 20px;
  max-width: 700px;
}

.bi-cat {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(30,144,255,0.4);
  color: #e5f0ff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background .2s, box-shadow .2s, transform .15s, border-color .2s;
  user-select: none;
}

.bi-cat:hover {
  background: rgba(30,144,255,0.15);
  box-shadow: 0 0 18px rgba(30,144,255,0.7);
  transform: translateY(-2px);
}

.bi-cat.active {
  background: linear-gradient(135deg, #1e90ff, #00c9ff);
  color: #02101f;
  border-color: #ffd447;
  box-shadow: 0 0 22px rgba(255,212,71,0.8);
}

/* Results */
#bi-results {
  max-width: 900px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 10px;
}

#bi-results .bi-item {
  background: radial-gradient(circle at top, #041b3b 0, #020b2a 40%, #020617 100%);
  border: 1px solid rgba(30,144,255,0.35);
  padding: 14px 16px;
  border-radius: 14px;
  color: #e5f0ff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#bi-results .bi-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ffd447;
  box-shadow: 0 0 22px rgba(30,144,255,0.8);
}

/* MOBILE FIXES */
@media (max-width: 600px) {
  #bi-search {
    width: 90%;
    margin: 15px auto;
  }

  #bi-cats {
    gap: 8px;
  }

  .bi-cat {
    padding: 8px 14px;
    font-size: 16px !important;
  }

  #bi-results {
    grid-template-columns: 1fr;
  }
}
/* ================================
   BLUE‑IDEA SEARCH ENGINE (DELUXE)
   ================================ */

/* Prevent Chrome zoom */
#bi-search,
#bi-cats div,
#bi-results div,
#bi-results a {
  font-size: 16px !important;
}

/* Search bar */
#bi-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(30,144,255,0.4);
  background: rgba(3,12,40,0.95);
  color: #e5f0ff;
  outline: none;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
  margin: 20px auto;
  display: block;
  max-width: 700px;
}

#bi-search:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 18px rgba(30,144,255,0.8);
  background: #020b2a;
  transform: translateY(-1px);
}

/* Categories bar */
#bi-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px auto 20px;
  max-width: 700px;
}

.bi-cat {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(30,144,255,0.4);
  color: #e5f0ff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background .2s, box-shadow .2s, transform .15s, border-color .2s;
  user-select: none;
}

.bi-cat:hover {
  background: rgba(30,144,255,0.15);
  box-shadow: 0 0 18px rgba(30,144,255,0.7);
  transform: translateY(-2px);
}

.bi-cat.active {
  background: linear-gradient(135deg, #1e90ff, #00c9ff);
  color: #02101f;
  border-color: #ffd447;
  box-shadow: 0 0 22px rgba(255,212,71,0.8);
}

/* Results grid */
#bi-results {
  max-width: 900px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 10px;
}

/* Result item */
#bi-results .bi-item {
  background: radial-gradient(circle at top, #041b3b 0, #020b2a 40%, #020617 100%);
  border: 1px solid rgba(30,144,255,0.35);
  padding: 14px 16px;
  border-radius: 14px;
  color: #e5f0ff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#bi-results .bi-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ffd447;
  box-shadow: 0 0 22px rgba(30,144,255,0.8);
}

#bi-results .bi-item a {
  color: #e5f0ff;
  text-decoration: none;
}

/* MOBILE FIXES */
@media (max-width: 600px) {
  #bi-search {
    width: 90%;
    margin: 15px auto;
  }

  #bi-cats {
    gap: 8px;
  }

  .bi-cat {
    padding: 8px 14px;
    font-size: 16px !important;
  }

  #bi-results {
    grid-template-columns: 1fr;
  }
}


/* TEXTAREA */
.tags-textarea {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: rgba(0, 20, 40, 0.7);
  border: 1px solid #0ea5e9;
  border-radius: 12px;
  color: #e0f7ff;
  resize: vertical;
  font-size: 15px;
}
.tags-textarea:focus {
  outline: none;
  box-shadow: 0 0 20px #0ea5e9;
}

/* WATERMARK */
.watermark {
  text-align: center;
  margin-top: 40px;
  padding: 10px;
  color: #0ea5e9;
  opacity: 0.7;
  font-size: 14px;
}
