/* ===== Closure Screens ===== */
.closure-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFFFF;
  position: relative;
}

.closure-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #E9ECF1;
}

.closure-header-info {
  display: flex;
  flex-direction: column;
}

.closure-header-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.closure-header-name {
  font-size: 16px;
  font-weight: 600;
  color: #0F1B31;
  font-family: inherit;
}

.closure-header-time {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: -0.28px;
  font-family: inherit;
}

.closure-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Post Card (Removed Screen) */
.closure-post-box {
  background: #F8F9FA;
  border: 1px solid #DBE0E8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.closure-post-content {
  font-size: 16px;
  font-weight: 400;
  color: #0F1B31;
  line-height: 21px;
  margin-bottom: 8px;
  font-family: inherit;
}

.closure-post-content.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.closure-see-more {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #007AFF;
  margin-bottom: 16px;
  font-family: inherit;
}

.closure-post-owner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.closure-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.closure-post-avatar-img {
  width: 36px;
  height: 40px;
  object-fit: contain;
}

.closure-post-owner-details {
  flex: 1;
}

.closure-post-owner-name {
  font-size: 16px;
  font-weight: 600;
  color: #0F1B31;
  font-family: inherit;
}

.closure-post-meta {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: -0.28px;
  font-family: inherit;
}

/* Main Title (Removed Screen) */
.closure-main-title {
  font-size: 16px;
  font-weight: 400;
  color: #0F1B31;
  text-align: center;
  line-height: 21px;
  letter-spacing: -0.32px;
  margin-bottom: 24px;
  padding: 0 8px;
  font-family: inherit;
}

/* Reason Box (Removed Screen) */
.closure-reason-box {
  background: #FFEEEB;
  border-radius: 8px;
  padding: 12px;
}

.closure-reason-text {
  font-size: 14px;
  font-weight: 400;
  color: #FF5135;
  line-height: 21px;
  font-family: inherit;
}

.closure-reason-bold {
  font-weight: 700;
  color: #FF5135;
}

.closure-reason-underline {
  font-weight: 700;
  color: #FF5135;
  text-decoration: underline;
  cursor: pointer;
}

.closure-learn-link {
  font-weight: 700;
  color: #006ECC;
  text-decoration: underline;
  cursor: pointer;
}

/* Where to Post Popup */
.wtp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  border-radius: inherit;
  overflow: hidden;
}

.wtp-sheet {
  background: #FFFFFF;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding: 16px 24px 24px;
  width: 100%;
  box-sizing: border-box;
  animation: wtpSlideUp 0.3s ease-out;
}

@keyframes wtpSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.wtp-drag-handle {
  width: 56px;
  height: 4px;
  background: #DBE0E8;
  border-radius: 100px;
  margin: 0 auto 12px;
}

.wtp-title {
  font-family: inherit;
  font-weight: 500;
  font-size: 20px;
  color: #0F1B31;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.4px;
}

.wtp-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wtp-category-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.wtp-category-icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex-shrink: 0;
}

.wtp-category-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wtp-category-title {
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  color: #0F1B31;
  letter-spacing: -0.32px;
}

.wtp-category-desc {
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  color: #666670;
  letter-spacing: -0.28px;
  line-height: 1.3;
}

.wtp-got-it-btn {
  width: 100%;
  height: 48px;
  background: #00B87A;
  border: none;
  border-radius: 100px;
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 32px;
  transition: background 0.2s;
}

.wtp-got-it-btn:hover {
  background: #00A36E;
}

/* Refund Box */
.closure-refund-box {
  background: #E8F5E9;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
}

.closure-refund-text {
  font-size: 14px;
  font-weight: 500;
  color: #2E7D32;
  text-align: center;
  font-family: inherit;
}

/* Buttons */
.closure-buttons {
  padding: 16px 24px 24px;
  background: #FFFFFF;
  border-top: 1px solid #E9ECF1;
}

.closure-btn-primary {
  width: 100%;
  background: #00B87A;
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.closure-btn-primary:hover {
  opacity: 0.9;
}

.closure-btn-outline {
  width: 100%;
  background: #FFFFFF;
  color: #00B87A;
  border: 1px solid #00B87A;
  border-radius: 100px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  font-family: inherit;
  transition: opacity 0.2s;
}

.closure-btn-outline:hover {
  background: #F0FBF6;
}

.closure-btn-outline-green {
  width: 100%;
  background: #FFFFFF;
  color: #00B87A;
  border: 1px solid #00B87A;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  font-family: inherit;
  transition: opacity 0.2s;
}

.closure-btn-outline-green:hover {
  background: #F0FBF6;
}

/* Post Banner (AI/Moderator/Report Screens) */
.closure-post-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #00B87A;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.closure-post-banner:hover {
  opacity: 0.9;
}

.closure-post-banner-text {
  flex: 1;
  font-size: 12px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 16px;
  font-family: inherit;
}

.closure-post-banner svg {
  color: #FFFFFF;
  flex-shrink: 0;
}

/* Advisor First Message Card */
.closure-advisor-card {
  background: #F8F9FA;
  border-radius: 16px;
  border: 1px solid #E9ECF1;
  padding: 12px;
  margin-bottom: 16px;
}

.closure-advisor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.closure-advisor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.closure-advisor-avatar-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.closure-advisor-name {
  font-size: 14px;
  font-weight: 600;
  color: #0F1B31;
  font-family: inherit;
}

.closure-advisor-time {
  font-size: 12px;
  font-weight: 400;
  color: #7C8696;
  font-family: inherit;
}

.closure-advisor-content-row {
  display: flex;
  align-items: flex-start;
  padding-left: 20px;
  gap: 16px;
}

.closure-advisor-line {
  width: 1px;
  background: #E2E6ED;
  align-self: stretch;
  flex-shrink: 0;
}

.closure-advisor-content {
  flex: 1;
  font-size: 16px;
  font-weight: 400;
  color: #0F1B31;
  line-height: 21px;
  font-family: inherit;
}

/* Explanation Box */
.closure-explanation-box {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.closure-explanation-text {
  font-size: 15px;
  font-weight: 500;
  color: #0F1B31;
  text-align: center;
  line-height: 22px;
  font-family: inherit;
}

/* Violation Summary */
.closure-violation-summary {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.closure-violation-title {
  font-size: 16px;
  font-weight: 600;
  color: #0F1B31;
  margin-bottom: 12px;
  font-family: inherit;
}

.closure-violation-expandable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.closure-violation-label {
  font-size: 14px;
  font-weight: 400;
  color: #7C8696;
}

.closure-violation-count-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.closure-violation-count {
  font-size: 14px;
  font-weight: 600;
  color: #FF9500;
  font-family: inherit;
}

.closure-violation-divider {
  height: 1px;
  background: #E9ECF1;
}

.closure-violation-messages {
  padding-left: 8px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.closure-violation-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.closure-violation-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #FF5135;
  margin-top: 6px;
  flex-shrink: 0;
}

.closure-violation-msg-content {
  flex: 1;
}

.closure-violation-msg-text {
  font-size: 13px;
  font-weight: 400;
  color: #7C8696;
  line-height: 18px;
  font-family: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.closure-violation-msg-reason {
  font-size: 12px;
  font-weight: 500;
  color: #FF5135;
  margin-top: 2px;
  font-family: inherit;
}

/* Moderator Closure Reasons */
.closure-reasons-list {
  padding-left: 8px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.closure-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.closure-reason-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #FF5135;
  margin-top: 7px;
  flex-shrink: 0;
}

.closure-reason-item-text {
  font-size: 14px;
  font-weight: 400;
  color: #FF5135;
  flex: 1;
  line-height: 20px;
  font-family: inherit;
}

/* User Report Closure */
.closure-reported-msg-item {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.closure-reported-msg-content {
  font-size: 14px;
  font-weight: 400;
  color: #7C8696;
  font-style: italic;
  line-height: 20px;
  font-family: inherit;
}

@media (max-width: 768px) {
  .msg-layout {
    flex-direction: column;
    height: calc(100vh - 80px);
  }

  .msg-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #E8ECF0;
    flex: 1;
    overflow-y: auto;
  }

  .msg-main {
    display: none;
  }

  .msg-layout.has-selected .msg-sidebar {
    display: none;
  }

  .msg-layout.has-selected .msg-main {
    display: flex;
    flex: 1;
    height: 100%;
  }

  .msg-mobile-back-btn {
    display: flex;
  }
}

