/* ============================================================
   MODAL — WORLD CIGAR LOCATOR
   CLEAN · BALANCED · FOCUS ON RATING + COMMENTS
   ============================================================ */

/* ================= OVERLAY ================= */

.modal.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 3rem;
}

/* ================= BACKDROP ================= */

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}


/* ================= CARD ================= */

.modal-content {
  position: relative;
  width: 720px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b0b0b;
  border-radius: 20px;
  border: 1px solid rgba(var(--global), 0.6);
}




/* ================= CLOSE ================= */

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;

  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ================= IMAGE ================= */

/* ================= IMAGE ================= */

.modal-img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 1px solid rgba(var(--global), 0.25);
}



/* ================= BODY ================= */

.modal-body {
  padding: 2rem 2.2rem 2.5rem;
  overflow-y: auto;
  flex: 1;
}

/* ================= TITLE ================= */

.modal-title {
  font-size: 1.8rem;
  color: rgb(var(--global));
  margin-bottom: 0.6rem;
}

/* ================= LOCATION ================= */

.modal-location {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

/* ================= BADGES ================= */

.modal-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

/* ================= INFO ================= */

.modal-info {
  margin-bottom: 1.8rem;
}

.modal-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.modal-info strong {
  color: #fff;
}

/* ================= RATING (INLINE · NO BOX) ================= */

.modal-rating {
  margin-top: 1.2rem;   /* tightare än tidigare */
}

.modal-rating h3 {
  display: none;        /* 🔥 remove "Your rating" */
}

.star-picker {
  font-size: 22px;      /* något mindre */
  letter-spacing: 5px;
  margin-bottom: 0.8rem;
}

.star-picker span {
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  color: #555;          /* neutral default */
}

.star-picker span:hover {
  transform: scale(1.15);
  color: var(--global);
}

.star-picker span.active {
  color: var(--global);
}

#modalSendRating {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--global), 0.6);
  background: transparent;
  color: rgb(var(--global));
  cursor: pointer;
  transition: 0.18s ease;
}

#modalSendRating:hover {
  background: rgba(var(--global), 0.08);
}


/* ================= COMMENTS ================= */

.modal-comments {
  margin-top: 1.8rem;   /* tightare än tidigare */
}

.modal-comments h3 {
  margin-bottom: 0.9rem;
  font-weight: 600;
}

#modalComments {
  margin-bottom: 1rem;
}


/* Textarea */
#modalCommentInput {
  width: 100%;
  height: 85px;               /* något mindre */
  padding: 0.8rem;

  border-radius: 10px;
  background: #121212;
  color: #fff;
  border: 1px solid rgba(115, 98, 75, 0.35);

  resize: vertical;
  transition: border 0.18s ease;
}

#modalCommentInput:focus {
  outline: none;
  border: 1px solid rgb(var(--global));
}


#modalSendComment {
  margin-top: 0.7rem;
  padding: 0.55rem 1.2rem;

  border-radius: 8px;
  border: 1px solid rgba(var(--global), 0.6);
  background: transparent;
  color: rgb(var(--global));
  cursor: pointer;
  transition: 0.18s ease;
}

#modalSendComment:hover {
  background: rgba(var(--global), 0.08);
}

.modal-comments-header {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}


/* Count pill — identical style */
.modal-count-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--global), 0.6);
  background: transparent;
  color: rgb(var(--global));
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================================
   MODAL COMMENTS — PROFESSIONAL LAYOUT
   ============================================================ */

.modal-comment {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-comment:last-child {
  border-bottom: none;
}

.modal-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.modal-comment-author {
  font-weight: 600;
  color: var(--global);
  font-size: 0.9rem;
}

.modal-comment-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.modal-comment-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ddd;
}

/* ============================================================
   MODAL COMMENT DELETE — DISCREET
   ============================================================ */

.modal-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-comment-delete {
  background: none;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;

  color: rgba(255,255,255,0.35);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.modal-comment-delete:hover {
  color: var(--global);
}

/* ============================================================
   COMMENT FEED — SCROLL AREA
   ============================================================ */

.modal-comments-feed {
  margin-top: 1.2rem;
  max-height: 32vh;
  overflow-y: auto;
  padding-right: 6px;
}

/* Subtle divider above feed */
.modal-comments-feed::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 1rem;
}

/* ============================================================
   REPORT SECTION
   ============================================================ */

.modal-report-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.modal-report-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ================= Chips ================= */

.modal-report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.report-chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0e0e0e;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.report-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Active state */

.report-chip.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ================= Textarea ================= */

.modal-report-textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0e0e0e;
  color: var(--text);
  padding: 0.8rem;
  font-size: 0.85rem;
  resize: vertical;
  margin-bottom: 1rem;
}

.modal-report-textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ============================================================
   REPORT SUBMIT BUTTON
   ============================================================ */

.modal-submit-report {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;

  background: rgba(var(--global), 0.15);
  color: rgb(var(--global));

  border-color: rgba(var(--global), 0.6);

  font-weight: 600;
  font-size: 14px;

  cursor: pointer;

  transition: background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
}
.modal-submit-report:hover:not(:disabled) {
  background: #171717;
  border-color: #3a3a3a;
}

.modal-submit-report:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* SUCCESS STATE */

.modal-submit-report.success {
  background: #2f5e3d;
  color: #e8f5ec;
  border-color: #3f7a52;
}

/* ================= Toggle Button ================= */

.modal-report-btn {
  margin-top: 1.5rem;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.modal-report-btn:hover {
  opacity: 0.7;
}
