/* ========================================
   IDEA ROOMS — IDEA-ROOMS.CSS
   Page-specific styles for idea-rooms.html
   ======================================== */

/* --- Body offset for fixed nav on interior page --- */
.idearooms-page {
  padding-top: 72px;
}

/* --- Nav active state --- */
.nav-active {
  color: var(--purple) !important;
  font-weight: 600 !important;
}

/* ========================================
   PAGE HEADER (reuse from partnerships)
   ======================================== */
.page-header {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-light) 40%, #f0edf8 70%, var(--bg-lighter) 100%);
  z-index: 0;
}

.page-header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(95, 23, 157, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(0, 112, 93, 0.05) 0%, transparent 40%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--purple);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb i {
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb span {
  color: var(--text-body);
}

/* Title */
.page-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Stats Bar */
.stats-bar {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  padding: 12px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
}

.stat-item i {
  color: var(--purple);
  font-size: 0.85rem;
  opacity: 0.7;
}

.stat-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.08);
}

.btn-post {
  font-size: 1rem;
}

/* ========================================
   CONTROLS BAR (tabs + search/sort)
   ======================================== */
.controls-bar {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  transition: box-shadow 0.3s ease;
}

.controls-bar.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.controls-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.view-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.view-tab:hover {
  color: var(--text-body);
}

.view-tab.active {
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-input-wrap input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px 10px 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  outline: none;
  transition: all var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.search-input-wrap input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.sort-dropdown select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 36px 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b7b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sort-dropdown select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.results-count {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ========================================
   CONTENT SECTION
   ======================================== */
.content-section {
  padding: 40px 0 80px;
  background: var(--bg-light);
  min-height: 60vh;
}

/* ========================================
   ROOMS GRID
   ======================================== */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.room-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--room-color, var(--purple));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.room-card:hover::before {
  opacity: 1;
}

.room-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.room-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.room-card:hover .room-icon {
  transform: scale(1.08);
}

.room-subscribe-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.room-subscribe-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--lavender-light);
}

.room-subscribe-btn.subscribed {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.room-subscribe-btn.subscribed:hover {
  background: var(--purple-dark);
}

.room-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  transition: color var(--transition);
}

.room-card:hover .room-name {
  color: var(--purple);
}

.room-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.room-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.room-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.room-meta-item i {
  font-size: 0.75rem;
  opacity: 0.65;
}

/* ========================================
   ROOM FILTER HEADER (when a room is selected)
   ======================================== */
.room-filter-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.room-filter-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.room-filter-info {
  flex: 1;
  min-width: 0;
}

.room-filter-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.room-filter-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-back-rooms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--purple);
  background: var(--lavender-light);
  border: 1px solid rgba(95, 23, 157, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-back-rooms:hover {
  background: var(--lavender);
  border-color: rgba(95, 23, 157, 0.2);
}

/* ========================================
   POSTS LIST
   ======================================== */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px 28px;
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.post-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.room-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(217, 119, 6, 0.08);
  color: #d97706;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.post-card:hover .post-card-title {
  color: var(--purple);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-card-author strong {
  color: var(--text-body);
  font-weight: 600;
}

.role-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--bg-light);
  color: var(--text-muted);
}

.post-card-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  gap: 12px;
  flex-wrap: wrap;
}

.post-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.post-stat i {
  font-size: 0.75rem;
  opacity: 0.65;
}

.post-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.post-subscribe-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--lavender-light);
}

.post-subscribe-btn.subscribed {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.post-subscribe-btn.subscribed:hover {
  background: var(--purple-dark);
}

/* ========================================
   BACK TO POSTS BUTTON
   ======================================== */
.btn-back-posts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.btn-back-posts:hover {
  color: var(--purple-dark);
  transform: translateX(-3px);
}

/* ========================================
   POST DETAIL VIEW
   ======================================== */
.post-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 36px 40px;
  margin-bottom: 24px;
}

.post-detail-header {
  margin-bottom: 24px;
}

.post-detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.post-detail-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.post-detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-name-line strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.author-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-detail-body {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.post-detail-body p {
  margin-bottom: 12px;
}

.post-detail-body p:last-child {
  margin-bottom: 0;
}

.post-detail-body ul, .post-detail-body ol {
  margin: 8px 0 12px 20px;
}

.post-detail-body li {
  margin-bottom: 6px;
}

.post-detail-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detail-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.detail-stat i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.post-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-subscribe-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(95, 23, 157, 0.2);
  background: var(--lavender-light);
  color: var(--purple);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-subscribe-detail:hover {
  background: var(--lavender);
  border-color: rgba(95, 23, 157, 0.3);
}

.btn-subscribe-detail.subscribed {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.btn-subscribe-detail.subscribed:hover {
  background: var(--purple-dark);
}

.btn-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--purple);
  background: var(--purple);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-reply-toggle:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(95, 23, 157, 0.25);
}

/* ========================================
   REPLIES SECTION
   ======================================== */
.replies-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.replies-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.replies-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 100px;
  background: var(--lavender);
  color: var(--purple);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
}

.reply-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px 26px;
  margin-bottom: 14px;
  transition: border-color 0.3s ease;
}

.reply-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.reply-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.reply-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reply-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
  flex-shrink: 0;
}

.reply-author-info strong {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.reply-author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reply-timestamp {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
  white-space: nowrap;
}

.reply-body {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 12px;
}

.reply-body p {
  margin-bottom: 8px;
}

.reply-body p:last-child {
  margin-bottom: 0;
}

.reply-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.upvote-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
}

.upvote-btn.upvoted {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

/* ========================================
   REPLY FORM
   ======================================== */
.reply-form-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px 32px;
  margin-top: 24px;
  animation: fadeInUp 0.3s ease;
}

.reply-form-container h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.reply-form .form-group {
  margin-bottom: 14px;
}

.reply-form .form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-body);
  display: block;
  margin-bottom: 5px;
}

.reply-form .form-group input,
.reply-form .form-group select,
.reply-form .form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  outline: none;
  transition: all var(--transition);
}

.reply-form .form-group input:focus,
.reply-form .form-group select:focus,
.reply-form .form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.reply-form .form-group input::placeholder,
.reply-form .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.reply-form .form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.reply-form .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b7b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.reply-form .form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.reply-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========================================
   CREATE POST MODAL
   ======================================== */
.create-modal-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
}

.create-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  background: var(--bg-light);
  color: var(--text-body);
  z-index: 10;
}

.create-modal-close:hover {
  background: var(--lavender);
  color: var(--purple);
}

.create-modal-body {
  padding: 40px 40px 32px;
}

.modal-header-section {
  margin-bottom: 28px;
}

.modal-header-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.modal-header-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Create Form */
.create-form .form-row {
  margin-bottom: 16px;
}

.create-form .form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.create-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.create-form .form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-body);
}

.create-form .form-group .required {
  color: #dc2626;
}

.create-form .form-group input,
.create-form .form-group select,
.create-form .form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  outline: none;
  transition: all var(--transition);
}

.create-form .form-group input:focus,
.create-form .form-group select:focus,
.create-form .form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.create-form .form-group input::placeholder,
.create-form .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.create-form .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b7b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.create-form .form-group textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

/* Room selector with color dots */
.room-option-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: rgba(0, 0, 0, 0.18);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* Preview */
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.preview-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.preview-content {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Form validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-error-msg {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 500;
  margin-top: 2px;
}

/* ========================================
   SUBSCRIBE POPUP
   ======================================== */
.subscribe-popup {
  position: fixed;
  z-index: 2500;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 24px;
  min-width: 320px;
  max-width: 400px;
  animation: fadeInUp 0.25s ease;
}

.subscribe-popup-inner {
  position: relative;
}

.subscribe-popup h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.subscribe-popup p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.subscribe-form-inline {
  display: flex;
  gap: 8px;
}

.subscribe-form-inline input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}

.subscribe-form-inline input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.subscribe-popup-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-light);
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.subscribe-popup-close:hover {
  background: var(--lavender);
  color: var(--purple);
}

/* ========================================
   UPVOTE MODAL
   ======================================== */
.upvote-modal-content {
  max-width: 420px;
  background: var(--white);
}

.upvote-modal-content .modal-close {
  background: var(--bg-light);
  color: var(--text-body);
}

.upvote-modal-content .modal-close:hover {
  background: var(--lavender);
  color: var(--purple);
}

.upvote-modal-body {
  padding: 40px 36px 32px;
  text-align: center;
}

.upvote-modal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upvote-modal-body h3 i {
  color: #dc2626;
}

.upvote-modal-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.upvote-form-row {
  display: flex;
  gap: 10px;
}

.upvote-form-row input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}

.upvote-form-row input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

/* ========================================
   SKELETON LOADING
   ======================================== */
.skeleton-card {
  cursor: default;
  pointer-events: none;
}

.skeleton-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--bg-light) 25%, #e8e8ef 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.5s ease infinite;
  margin-bottom: 10px;
}

.skeleton-line.w40 { width: 40%; height: 10px; }
.skeleton-line.w50 { width: 50%; height: 10px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; height: 12px; }
.skeleton-line.w100 { width: 100%; height: 12px; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: var(--lavender);
  border-radius: 50%;
  color: var(--purple);
  font-size: 1.5rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--teal);
  min-width: 300px;
  max-width: 420px;
  animation: toastIn 0.4s ease;
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
}

.toast.toast-success { border-left-color: var(--teal); }
.toast.toast-error { border-left-color: #dc2626; }

.toast i { font-size: 1.1rem; flex-shrink: 0; }
.toast.toast-success i { color: var(--teal); }
.toast.toast-error i { color: #dc2626; }

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 4px;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.toast-close:hover { opacity: 1; }

.toast.exiting { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ========================================
   LOADING SPINNER ON BUTTONS
   ======================================== */
.btn.loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  right: 14px;
}

.btn-secondary.loading::after {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--text-body);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .idearooms-page {
    padding-top: 72px;
  }

  .page-header {
    padding: 40px 0 36px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  /* Controls bar */
  .controls-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .controls-right {
    flex-direction: column;
    gap: 10px;
  }

  .search-input-wrap {
    max-width: 100%;
  }

  .results-count {
    margin-left: 0;
    text-align: center;
  }

  /* Rooms grid */
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  /* Room filter header */
  .room-filter-header {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px;
  }

  .btn-back-rooms {
    align-self: center;
  }

  /* Post detail */
  .post-detail-card {
    padding: 24px 20px;
  }

  .post-detail-title {
    font-size: 1.35rem;
  }

  .post-detail-actions {
    flex-direction: column;
  }

  .post-detail-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Reply form */
  .reply-form-container {
    padding: 20px;
  }

  .reply-form .form-row-inline {
    grid-template-columns: 1fr;
  }

  .reply-form .form-actions {
    flex-direction: column;
  }

  .reply-form .form-actions .btn {
    width: 100%;
  }

  /* Modals */
  .create-modal-body {
    padding: 28px 20px 24px;
  }

  .create-modal-content {
    max-height: 95vh;
    margin: 8px;
    border-radius: var(--radius-md);
  }

  .create-form .form-row.two-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* Subscribe popup */
  .subscribe-popup {
    left: 16px !important;
    right: 16px !important;
    min-width: 0;
    max-width: 100%;
  }

  .subscribe-form-inline {
    flex-direction: column;
  }

  /* Toast */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 32px 0 28px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .room-card {
    padding: 20px;
  }

  .post-card {
    padding: 18px;
  }

  .reply-card {
    padding: 16px;
  }

  .stat-item {
    font-size: 0.85rem;
  }

  .upvote-modal-body {
    padding: 32px 20px 24px;
  }

  .upvote-form-row {
    flex-direction: column;
  }
}
