/* --- Existing Tool Styles --- */
.tool-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.tool-section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tool-section .tool-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
  max-width: 700px;
}

.tool-box {
  background: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.controls label {
  font-size: 14px;
  margin-right: 5px;
}

.controls select, .controls button {
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.controls button.btn {
  background: #0a22fa;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.controls button.btn:hover {
  background: #0d33ff;
}

.palette-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.color-box {
  position: relative;
  width: 30%;
  height: 7vh;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-family: monospace;
  font-size: 16px;
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.color-toast {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0a22fa;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.color-toast.show {
  opacity: 1;
}

.seo-section {
  margin-top: 50px;
  max-width: 800px;
  text-align: left;
}

.seo-section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.seo-section ul {
  list-style: disc;
  padding-left: 20px;
  color: #555;
}

/* --- Trending Colors Section --- */
.trending-colors-section {
  margin-top: 50px;
  text-align: center;
}

.trending-colors-section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.trending-controls {
  margin-bottom: 20px;
}

.trending-colors-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.trending-color-box {
  width: 120px;
  height: 80px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-color-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.trending-color-toast {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #0a22fa;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.trending-color-toast.show {
  opacity: 1;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .tool-section { padding: 30px 15px; }
  .tool-section h1 { font-size: 1.5rem; }
  .tool-section .tool-intro { font-size: 0.9rem; max-width: 100%; margin-bottom: 20px; }
  .tool-box { padding: 20px 15px; gap: 20px; }
  .controls { flex-direction: column; gap: 12px; }
  .controls label { font-size: 13px; margin-right: 0; text-align: left; }
  .controls select, .controls button { width: 100%; font-size: 13px; padding: 8px 12px; }
  .palette-container { gap: 10px; }
  .color-box { width: 48%; height: 80px; font-size: 14px; padding: 8px; }
  .seo-section { max-width: 100%; }
  .seo-section h2 { font-size: 1.3rem; }
  .trending-color-box { width: 100px; height: 60px; font-size: 10px; box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); }
  .trending-colors-container {
    display: flex
;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-around;
}
}

@media (max-width: 480px) {
  .color-box { width: 100%; height: 60px; font-size: 12px; }
  .tool-section h1 { font-size: 1.3rem; }
  .tool-section .tool-intro { font-size: 0.85rem; }
  .controls select, .controls button { font-size: 12px; padding: 7px 10px; }
  .trending-color-box { width: 100px; height: 60px; font-size: 10px; box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); }
  
  .trending-colors-container {
    display: flex ;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-around;
}
}
