/* === Emotion Grid Layout === */
.emotion-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 800px;
  padding: 20px;
}

.emotion-tile {
  width: 30%;
  aspect-ratio: 1 / 1;
  background: #fff8e5;
  border: 2px solid #E0861F;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;

}

.emotion-tile:hover {
  transform: scale(1.05);
}

.emotion-tile img {
  max-width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.emotion-tile h3 {
  font-size: 20px;
    font-family: Londrina Spark;
  margin: 0;
}

/* === Popup Modal === */
.emotion-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.emotion-popup .popup-inner {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  max-width: 800px;
  width: 95%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

/* Top section: image + title side by side */
.popup-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
    font-family: Londrina Spark;
}

.popup-header img {
  max-width: 120px;
  height: auto;
  flex-shrink: 0;
}

.popup-header h2 {
  font-size: 32px;
  margin: 0;
}

/* Content under header */
.popup-content p {
  font-size: 16px;
  margin: 10px 0;
  line-height: 1.5;
}

/* Close button */
.emotion-popup .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* === Drawing Controls === */
.emotion-draw-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0 10px;
}

.emotion-tool-btn {
  padding: 10px 14px;
  font-size: 18px;
  border: 2px solid #ccc;
  background: #f0f0f0;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.2s ease;
}

.emotion-tool-btn.active {
  background: #E0861F;
  color: white;
  border-color: #E0861F;
}

.emotion-color-picker {
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  background: transparent;
}

/* Drawing Canvas */
.emotion-canvas-container {
  width: 100%;
  height: 300px;
  background: #fff;
  border: 3px dashed #E0861F;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}

/* === Responsive === */
@media (max-width: 768px) {
  .emotion-tile {
    width: 45%;
  }
  .popup-header {
    flex-direction: column;
    text-align: center;
  }
  .popup-header h2 {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .emotion-tile {
    width: 90%;
  }

  .emotion-popup .popup-inner {
    padding: 20px;
  }
}

.emotion-brush-sizes {
  display: flex;
  gap: 6px;
  margin-left: 10px;
}

.emotion-brush-btn {
  padding: 6px 10px;
  font-size: 18px;
  background: #eee;
  border: 2px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.emotion-brush-btn.active {
  background: #E0861F;
  color: white;
  border-color: #E0861F;
}

