@import url('https://fonts.googleapis.com/css2?family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "TikTok Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
}

body {
  background: black;
  min-height: 100vh;
  padding-top: 60px; /* Space for auth bar */
  overflow-x: hidden;
}

/* ==================== MAIN CONTAINER ==================== */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 60px);
  padding: 20px;
  position: relative;
}

/* ==================== LIGHTBULB CONTAINER ==================== */

.idea-container {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  z-index: 5;
}

/* Lightbulbs wrapper */
#ideas-as-lights {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

/* Individual lightbulb links */
#ideas-as-lights a {
  display: inline-block;
  transition: transform 0.3s, filter 0.3s;
  line-height: 0;
}

#ideas-as-lights a:hover {
  transform: scale(1.2);
}

/* Emoji hover effects */
#ideas-as-lights a div {
  transition: transform 0.3s, filter 0.3s;
}

#ideas-as-lights a:hover div {
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

/* Selected note emphasis - higher specificity to override hover */
#ideas-as-lights a.selected img,
#ideas-as-lights a.selected div {
  transform: scale(1.4) !important;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)) !important;
}

#ideas-as-lights a.selected {
  transform: scale(1.1);
}

/* Custom scrollbar for lightbulb container */
.idea-container::-webkit-scrollbar {
  width: 8px;
}

.idea-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.idea-container::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.5);
  border-radius: 10px;
}

.idea-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.8);
}

/* ==================== BANNER ==================== */

.banner {
  margin-bottom: 20px;
  max-width: 650px;
  width: 100%;
  padding: 0 20px;
}

body h4 {
  color: yellow;
  text-shadow: #fc0 1px 0 10px;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
}

/* ==================== FORM AREA ==================== */

.idea-input {
  width: 95%;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 0; /* Allow flexbox to shrink below content size */
}

.idea-input textarea {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

#idea {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  width: 100%;
  min-height: 120px;
  max-height: 500px;
  overflow-y: auto;
  flex-grow: 1;
}

textarea {
  resize: none;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid black;
  background: white;
  color: black;
  box-sizing: border-box;
  overflow-y: hidden; /* Hide scrollbar while auto-expanding */
  transition: height 0.1s ease;
}

h1 {
  font-weight: 700;
  color: white;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Tablets and small laptops (1024px and below) */
@media (max-width: 1024px) {
  .idea-container {
    position: static;
    transform: none;
    margin: 0 auto 30px;
    max-width: 100%;
    max-height: 150px;
    order: -1;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .container {
    flex-direction: column;
  }
  
  #ideas-as-lights {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  
  /* Horizontal scrollbar */
  .idea-container::-webkit-scrollbar {
    height: 8px;
    width: auto;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  body {
    padding-top: 100px; /* More space for wrapped auth bar */
  }
  
  .container {
    padding: 10px;
    min-height: calc(100vh - 100px);
  }
  
  .idea-container {
    max-height: 100px;
    margin-bottom: 20px;
    padding: 5px;
  }
  
  #ideas-as-lights a img,
  #ideas-as-lights a div {
    width: 25px !important;
    height: 25px !important;
    font-size: 25px !important;
    margin: 3px !important;
  }
  
  .banner {
    margin-bottom: 15px;
    padding: 0 10px;
  }
  
  body h4 {
    font-size: 14px;
  }
  
  .idea-input {
    width: 95%;
  }

  #idea {
    min-height: 100px;
    max-height: 350px;
  }

  textarea {
    font-size: 0.9rem;
  }
}

/* Mobile phones (500px and below) */
@media (max-width: 500px) {
  body {
    padding-top: 120px;
  }
  
  .container {
    padding: 5px;
  }
  
  .idea-container {
    max-height: 80px;
    padding: 5px;
  }
  
  #ideas-as-lights a img,
  #ideas-as-lights a div {
    width: 22px !important;
    height: 22px !important;
    font-size: 22px !important;
    margin: 2px !important;
  }
  
  .banner {
    margin-bottom: 10px;
  }
  
  body h4 {
    font-size: 12px;
  }
  
  .idea-input {
    width: 80%;
  }

  #idea {
    min-height: 90px;
    max-height: 300px;
  }

  textarea {
    font-size: 0.85rem;
    padding: 8px;
  }
  
  h1 {
    font-size: 20px;
  }
}

/* Extra small screens (400px and below) */
@media (max-width: 400px) {
  body {
    padding-top: 140px;
  }
  
  .idea-container {
    max-height: 60px;
  }
  
  #ideas-as-lights a img,
  #ideas-as-lights a div {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    margin: 2px !important;
  }
  
  body h4 {
    font-size: 11px;
  }

  #idea {
    min-height: 80px;
    max-height: 250px;
  }

  textarea {
    font-size: 0.8rem;
  }
}

/* Very wide screens (1400px and above) */
@media (min-width: 1400px) {
  .idea-container {
    right: 10%;
    max-width: 250px;
  }
}

/* ==================== UTILITY CLASSES ==================== */

.saved-ideas ul {
  list-style-type: disc;
  padding-left: 20px;
}

.saved-ideas {
  color: white;
  width: 100%;
  height: 100%;
}


.message {
  margin-top: 1rem;
  font-size: 0.95rem;
  
}

.message.error {
  color: #ff4d4d;
}

.message.success {
  color: #4caf50;
}
