/* style.css - Main Refined Version for SoniKrypt with Dark Gradient Cards and Sleek Search Bar */

body {
  margin: 0;
  padding: 30px;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #0d0000, #1a0000, #100000);
  color: #ffecec;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

h1, h2, h3 {
  color: #fff5f5;
  text-align: center;
  margin: 0.3em 0;
}

.top-bar h1 {
  pointer-events: auto;
  user-select: none;
  font-size: 2.5em;
  animation: slideFromTop 1s ease-out both;
  text-shadow: 0 0 5px #ff555566, 0 0 10px #e419196f, 0 0 15px #ff00007e;
}

.top-bar h1 a {
  color: inherit;
  text-decoration: none;
}

@keyframes slideFromTop {
  0% { opacity: 0; transform: translateY(-40px); }
  100% { opacity: 1; transform: translateY(0); }
}

a {
  color: #ff4d4d;
  text-decoration: none;
  transition: 0.3s ease;
}

a:hover {
  color: #ffc1c1;
  text-shadow: 0 0 6px #ff4d4d;
}

.section-title {
  font-size: 2.2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #fff0f0;
  padding-bottom: 5px;
  text-align: center;
}

.popular-tools-heading {
  margin-top: 30px;
}

.search-box-container {
  width: 100%;
  max-width: 900px;
  margin-top: 15px;         /* ↓ was 50px */
  margin-bottom: 15px;      /* ↓ was 60px */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-box {
  background-color: #0c0000;
  border-radius: 15px;
  padding: 15px 25px;
  border: 4px solid #ff0000;
  box-shadow: inset 0 0 15px rgba(255, 0, 0, 0.2), 0 0 15px rgba(255, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
  position: relative; /* FIX: required for positioning dropdown */
}

.search-box .row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-box input[type="text"] {
  flex-grow: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  background-color: #050000;
  color: #ffecec;
  font-size: 1.2em;
  outline: none;
  box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input[type="text"]::placeholder {
  color: #ffc1c1a0;
}

.search-box input[type="text"]:focus {
  background-color: #0a0000;
  box-shadow: inset 0 0 12px rgba(255, 0, 0, 0.4);
}

.search-box button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 185, 185, 1);
  color: rgba(255, 185, 185, 1);
  font-size: 1.4em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
}

.search-box button:hover {
  background-color: rgba(255, 0, 0, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.search-box .clear-button {
  background-color: rgba(255, 185, 185, 1);
  color: rgba(255, 185, 185, 1);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
}

.search-box .clear-button:hover {
  background-color: #6a0000;
  box-shadow: 0 6px 20px rgba(106, 0, 0, 0.8);
}

.dropdown {
  position: absolute;  /* FIXED: anchors to input box */
  top: 100%;           /* puts it directly below */
  left: 0;
  width: 100%;
  list-style: none;
  padding: 0;
  margin-top: 10px;
  background-color: #150000;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
  max-height: 200px;
  overflow-y: auto;
  border: none;
  box-sizing: border-box;
  z-index: 10;
}

.dropdown li {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: #ffecec;
  font-size: 1.1em;
}

.dropdown li:hover {
  background-color: #ff0000ff;
}
.dropdown li.selected {
  background-color: #ff0000ff;
  color: #ff0000ff;
  font-weight: bold;
  text-shadow: 0 0 5px red;
}


.not-found-message {
  text-align: center;
  margin-top: 15px;
  font-size: 1.2em;
  color: #ff3333;
  font-weight: bold;
  display: none;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  background-color: #1a0000;
  border-radius: 8px;
  border: 1px solid #ff0000;
}

.category-section {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 50px;
  animation: fadeIn 2s ease both;
}

.category-title {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 25px;
  font-size: 2em;
  color: #fff5f5;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding-left: 0;
}

.tool-card {
  background: linear-gradient(145deg, #1a0000, #000000);
  border: 4px solid #4a0000;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.8);
  text-align: left;
  font-size: 1.1em;
  line-height: 1.5;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
  text-decoration: none;
  color: #ffecec;
  cursor: pointer;
}

.tool-card:hover {
  background: #7500005e;
  border-color: #ff0000ff;
  box-shadow: 0 0 15px rgba(255, 0, 0, 1), inset 0 0 15px rgba(255, 0, 0, 0);
  transform: translateY(-8px);
}

.tool-card .card-title {
  font-weight: bold;
  color: #ffefef;
  font-size: 1.3em;
  margin-bottom: 8px;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.tool-card .card-description {
  color: #ffecec;
  font-size: 1em;
  text-shadow: none;
  box-shadow: none !important;
}


.tool-card.highlighted-card {
  border-color: #ffeb3bee;
  box-shadow: 0 0 15px #ffeb3bb6, inset 0 0 8px #ffc107;
  background: linear-gradient(145deg, #332d00, #1a1500);
  animation: pulseYellow 1s infinite alternate;
}

@keyframes pulseYellow {
  0% { transform: scale(1); box-shadow: 0 0 15px #ffeb3b, inset 0 0 8px #ffc107; }
  100% { transform: scale(1.02); box-shadow: 0 0 25px #ffeb3b, inset 0 0 12px #ffc107; }
}

.bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
  width: 100%;
  margin-top: 80px;
  margin-bottom: 40px;
}

.button-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 25px;
  border: 2px solid #ff4d4d;
  border-radius: 12px;
  background-color: transparent;
  color: #fff5f5;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px #ff4d4d, inset 0 0 8px #ff9999;
  font-size: 1.1em;
  min-width: 220px;
}

.button-glow:hover {
  background: #ff4d4d;
  color: #1a0000;
  box-shadow: 0 0 18px #ff4d4d, inset 0 0 18px #ff4d4d;
}

.button-glow img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

@media (max-width: 768px) {
  body {
    padding: 20px;
    align-items: flex-start;
  }

  .top-bar h1 {
    font-size: 2em;
  }

  .section-title {
  font-size: 2.2em;
  margin-top: 20px;         /* ↓ was 40px */
  margin-bottom: 10px;      /* ↓ was 20px */
  color: #fff0f0;
  padding-bottom: 5px;
  text-align: center;
}

  .search-box {
    padding: 15px 20px;
  }

  .search-box input[type="text"] {
    font-size: 1em;
    padding: 12px 15px;
  }

  .search-box button {
    font-size: 1.3em;
    padding: 10px 15px;
  }

  .tool-card {
    font-size: 0.9em;
    padding: 15px;
  }

  .tool-card .card-title {
    font-size: 1.1em;
  }

  .top-bar, .bottom-bar {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  .button-glow {
    width: 100%;
    justify-content: center;
    min-width: unset;
    padding: 10px 20px;
    font-size: 1em;
  }

  .category-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .card-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .search-box .row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-box button {
    width: 48%;
  }
}
.autocomplete-active {
  background-color: #ff0000ff;
  color: white;
}

.highlight {
  font-weight: bold;
  color: lime;
}
body {
  cursor: url('assets/cursor.cur') 0 0, auto;
}
/* Normal state */
.top-bar a {
  cursor: url('assets/hand.cur'), pointer !important;
}

/* Active (on click/hold) */
.top-bar a:active {
  cursor: url('assets/click.cur'), pointer !important;
}



button,
.clear-button,
.search-button {
  cursor: url('assets/hand.cur'), pointer !important;
}

button:active,
.clear-button:active,
.search-button:active {
  cursor: url('assets/click.cur'), pointer !important;
}

/* Style for dynamically generated <li> items inside #suggestion-box */
#suggestion-box li {
  cursor: url('assets/hand.cur'), pointer;
}

#suggestion-box li:active {
  cursor: url('assets/click.cur'), pointer;
}
/* Normal state: hand cursor */
.bottom-bar a.button-glow {
  cursor: url('assets/hand.cur'), pointer;
}

/* Active state: click cursor */
.bottom-bar a.button-glow:active {
  cursor: url('assets/click.cur'), pointer;
}
#dynamic-content-area a {
  cursor: url('assets/hand.cur'), pointer;
}
#dynamic-content-area a:active {
  cursor: url('assets/click.cur'), pointer;
}

@media (max-width: 768px) {
  body {
    padding: 15px;
    align-items: center;
  }

  h1, h2, h3 {
    font-size: 1.5em;
    text-align: center;
  }

  p, li {
    font-size: 1em;
    text-align: left;
  }

  .top-bar, .bottom-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
  }

  .button-glow {
    width: 90%;
    max-width: 320px;
    font-size: 1em;
    padding: 12px;
    margin: 0 auto;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
  }

  .button-glow img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  span {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
/* Glowing title animation */
.glow-title a {
  color: #ffffff;
  font-size: 3.0rem;
  text-decoration: none;
  text-shadow: 0 0 5px #ff4d4d80, 0 0 10prgba(255, 77, 77, 0.33)4d, 0 0 20px #ff1a1a96, 0 0 30prgba(230, 0, 0, 0.21)00;
  animation: pulseGlow 7s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 10px #ff4d4d62, 0 0 20px #ff4d4d59;
  }
  50% {
    text-shadow: 0 0 20px #ff1a1a94, 0 0 30px #e6000092, 0 0 40px #e60000b1;
  }
}

/* Subtitle shine effect */
.subtitle {
  font-weight: bold;
  background: linear-gradient(90deg, #fff, #ff9999, #fff);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
  text-align: center;
}

@keyframes shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Glowing divider line under title */
.divider {
  height: 4px;
  width: 180px;
  margin: 0px auto 30px auto;
  background: linear-gradient(to right, #ff4d4d, #ffcccc, #ff4d4d);
  animation: glowLine 3s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes glowLine {
  0%, 100% {
    box-shadow: 0 0 10px #ff5e5e5d;
  }
  50% {
    box-shadow: 0 0 20px #ff1a1a;
  }
}
.section-title,
.subtitle {
  font-size: 1.5rem;
}

.glow-title a {
  font-size: rem;
}
@media (max-width: 480px) {
  .glow-title a {
    font-size: 2.2rem;
  }

  .section-title,
  .subtitle {
    font-size: 1.2rem;
  }
}
/* HAMBURGER ICON */
.hamburger {
  position: fixed;
  top: 60px;
  left: 30px;
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}
.hamburger div {
  width: 100%;
  height: 4px;
  background-color: #fff;
  transition: all 0.3s ease;
}
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* SIDE MENU */
.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  height: 100vh;
  width: 250px;
  background-color: #111;
  color: #fff;
  padding-top: 100px;
  transition: left 0.4s ease;
  z-index: 1000;
}
.side-menu a {
  display: block;
  padding: 15px 25px;
  color: #fff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  border-bottom: 1px solid #333;
  transition: background 0.3s ease;
}
.side-menu a:hover {
  background-color: #222;
}
.side-menu.open {
  left: 0;
}
/* HAMBURGER ICON */
.hamburger {
  cursor: url('assets/hand.cur'), pointer;
}
.hamburger:active {
  cursor: url('assets/click.cur'), pointer;
}

/* EACH LINE OF HAMBURGER */
.hamburger div {
  cursor: url('assets/hand.cur'), pointer;
}

/* SIDE MENU LINKS */
.side-menu a {
  cursor: url('assets/hand.cur'), pointer;
}
.side-menu a:active {
  cursor: url('assets/click.cur'), pointer;
}
.glow-title a {
  cursor: url('assets/hand.cur'), pointer;
}
.glow-title a:active {
  cursor: url('assets/click.cur'), pointer;
}
.side-menu a .coming-soon {
  display: block;
  font-size: 0.9em;
  color: #ffb3b3;
  margin-top: 4px;
  font-style: italic;
}
@media (max-width: 768px) {
  .hamburger {
    top: 40px;
    left: 15px;
    width: 28px;
    height: 22px;
    position: fixed;
    z-index: 9999; /* Ensure it's on top */
    transition: opacity 0.3s ease;
    
  }

  .hamburger div {
    height: 3px;
  }

  .side-menu {
    width: 220px;
    padding-top: 80px;
  }
}
.side-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 220px;
  height: 100%;
  background: #111;
  transition: left 0.3s ease;
  z-index: 9998;
}

.side-menu.open {
  left: 0;
}

.hamburger {
    position: fixed;
    top: 60px;
    left: 30px;
    width: 35px; /* Slightly larger */
    height: 30px; /* Slightly larger */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: url('assets/hand.cur'), pointer;
    z-index: 1001;
}

.hamburger:active {
    cursor: url('assets/click.cur'), pointer;
}

.hamburger div {
    width: 100%;
    height: 5px; /* Thicker lines */
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px; /* Slightly rounded lines */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Subtle glow for lines */
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translateY(12px); /* Adjusted for thicker lines */
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px); /* Adjusted for thicker lines */
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px; /* Adjusted to hide better */
    width: 270px; /* Wider menu */
    height: 100vh;
    background: linear-gradient(180deg, #180000, #0a0000); /* Darker, more intense gradient */
    color: #fff;
    padding-top: 120px; /* More space from top */
    transition: left 0.4s ease;
    z-index: 1000;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.8); /* Shadow on open edge */
}

.side-menu a {
    display: block;
    padding: 18px 30px; /* More padding */
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 1px solid #3d0000; /* Stronger border */
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 1.1em; /* Slightly larger font */
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
    cursor: url('assets/hand.cur'), pointer;
}

.side-menu a:hover {
    background-color: #350000; /* Darker red on hover */
    color: #ffcccc; /* Lighter text on hover */
    padding-left: 35px; /* Indent on hover */
}

.side-menu a:active {
    cursor: url('assets/click.cur'), pointer;
}

.side-menu.open {
    left: 0;
}

.side-menu a .coming-soon {
    display: block;
    font-size: 0.8em; /* Slightly smaller for 'coming soon' */
    color: #ff8080; /* Brighter red */
    margin-top: 5px;
    font-style: italic;
    opacity: 0.8;
}

