/* ===== Suggest Page Header Layout  ===== */
.top-header.suggest-header {
  padding: 1.5rem 2rem;
  display: block;       
  position: relative;   
}

/* Title */
.top-header.suggest-header h1,
.top-header.suggest-header h2 {
  margin: 0 0 0.5rem 0;
}

/* Center wrapper for tag label + input */
.tag-input-wrapper {
  width: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 0.5rem;
  margin: 0; 
}

/* Header right-side actions */
.nav-slant-btn {
  position: absolute;
  top: 1.5rem; 
  right: 2rem; 
  display: flex;
  align-items: center;
}


/* ==== Search Bar ==== */
.search-container {
  margin-top: 1.2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}
#searchStreams {
  width: 60%;
  max-width: 380px;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
#searchStreams:focus {
  outline: none;
  border-color: #00cc66;
}

/* ==== General Page Layout ==== */
body {
  background-color: #121212;
  color: #eee;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0 1rem;
}

#video-grid {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.video-info {
  padding-bottom: 0;
}

/* Stream Items */
.stream-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #444;
  padding: 0.5rem;
  border-radius: 8px;
  background: #1c1c1c;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 0.8rem;
  overflow: hidden;
}
.stream-item:hover {
  transform: translateY(-2px);
}

.stream-item h3 {
  font-size: 0.95rem;
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
}

.stream-item .video-meta {
  font-size: 0.85rem;
  color: #ccc;
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
}

/* THUMBNAIL — fixed + consistent  */
.stream-item img,
.thumb-link img,
.thumb-link {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

/* ==== Yes/No Buttons ==== */
.buttons {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0.2rem 0 0.2rem 0;
}

.btn-yes,
.btn-no {
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  background: none;
  color: #999;
  transition: transform 0.1s, color 0.2s;
}
.btn-yes:hover {
  color: #00cc66;
}
.btn-no:hover {
  color: #cc3333;
}
.btn-yes.selected {
  color: #00cc66;
  transform: scale(1.2);
}
.btn-no.selected {
  color: #cc3333;
  transform: scale(1.2);
}

/* ==== Selection Feedback ==== */
.stream-item.yes {
  background-color: rgba(0, 204, 102, 0.15);
  border-color: #00cc66;
}
.stream-item.no {
  background-color: rgba(204, 51, 51, 0.15);
  border-color: #cc3333;
}

/* ==== Submit Button ==== */
#submitTag {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 2rem auto;
  padding: 0.9rem 0;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  text-align: center;
}

/* Enabled = green, disabled = red */
#submitTag:enabled {
  background-color: #00cc66;
  color: #121212;
}
#submitTag:enabled:hover {
  background-color: #00e076;
  transform: translateY(-2px);
}

#submitTag:disabled {
  background-color: #cc3333;
  color: #fff;
  cursor: not-allowed;
}

/* Tag input normal */
#tagNameInput {
  width: 220px;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.3s;
}

#tagNameInput:invalid {
  border-color: #cc3333;
  box-shadow: 0 0 8px rgba(204,51,51,0.5);
  animation: pulseRed 1.5s infinite;
}

/* TAG BANNER (Top-Locked, Hidden by Default) */
#tagBanner {
  position: fixed;
  top: 1.5rem;             
  left: 50%;
  transform: translateX(-50%);
  background: rgba(68, 68, 68, 0.95);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-size: 0.95rem;
  display: none;          
}

/* Banner visible when JS removes .hidden */
#tagBanner:not(.hidden) {
  display: flex;
}

/* Change Tag button inside banner */
#changeTagBtn {
  background: #333;
  border: none;
  color: #ddd;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

#changeTagBtn:hover {
  background: #555;
  color: #fff;
}

/* Hide original Change Tag button if present elsewhere */
.top-header.suggest-header #changeTagBtn {
  display: none;
}

/* Submission info */

/* Modal overlay */
#submitModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#submitModal.hidden {
  display: none;
}

#submitModal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

/* Modal content box */
#submitModal .modal-content {
  position: relative;
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  color: #eee;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Textarea for comment */
#modalMessage {
  width: 100%;
  min-height: 5rem;  
  max-height: 10rem; 
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
  resize: vertical;
}

/* Input fields */
#modalDiscord, #modalCreditName {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
}

/* Credit toggle container */
.credit-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modal buttons */
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-buttons button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}

/* Green submit button */
.green-btn {
  background-color: #00cc66;
  color: #121212;
}
.green-btn:hover {
  background-color: #00e076;
  transform: translateY(-2px);
}

/* Red cancel button */
.red-btn {
  background-color: #cc3333;
  color: #fff;
}
.red-btn:hover {
  background-color: #ff4d4d;
  transform: translateY(-2px);
}

/* Responsive tweak for small screens */
@media (max-width: 480px) {
  #submitModal .modal-content {
    padding: 1.5rem;
  }
}


