/* =========================================================
   TOP 부천 - community.css
   커뮤니티 페이지 (이벤트 공지, 이용 후기)
   ========================================================= */

/* ---------- Tabs (공지/후기 전환) ---------- */
.community-tabs { padding: var(--space-lg) 0 var(--space-md); }

.community-tabs .tab-list {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
}

.community-tabs [data-tab] {
  flex: 1;
  padding: 0.75rem var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
}

.community-tabs [data-tab].is-active {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  box-shadow: var(--shadow-inset-gold);
}

/* ---------- Featured Event ---------- */
.featured-event {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.04)),
    var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.featured-event::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
  pointer-events: none;
}

.featured-event .event-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  font-weight: 700;
  box-shadow: var(--shadow-inset-gold);
}

.featured-event h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.featured-event .event-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.featured-event .event-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.featured-event .event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Notice List ---------- */
.notice-list {
  display: grid;
  gap: var(--space-sm);
}

.notice-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.notice-item:hover {
  border-color: var(--border-gold);
  transform: translateX(4px);
}

.notice-item .notice-tag {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.notice-tag.event {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.notice-tag.notice {
  background: rgba(229, 57, 53, 0.1);
  color: var(--status-busy);
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.notice-tag.info {
  background: rgba(100, 180, 255, 0.1);
  color: #64b4ff;
  border: 1px solid rgba(100, 180, 255, 0.35);
}

.notice-item .notice-body { flex: 1; min-width: 0; }

.notice-item h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-item .notice-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-sm);
}

/* ---------- Reviews ---------- */
.review-list {
  display: grid;
  gap: var(--space-md);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--dur-base) var(--ease);
}

.review-card:hover { border-color: var(--border-gold); }

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px dashed var(--border-subtle);
}

.review-header .author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.review-header .avatar {
  width: 36px;
  height: 36px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.review-header .name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.review-header .name .anonymous {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.review-header .rating {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.review-card .review-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.review-card .review-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-card .review-meta .room-tag {
  padding: 2px 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  border-radius: var(--radius-full);
}

/* ---------- Write Button (Floating) ---------- */
.write-review {
  padding: var(--space-xl) 0 var(--space-md);
  text-align: center;
}

.write-review .btn-gold {
  max-width: 300px;
  margin: 0 auto;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.pagination a {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--dur-fast) var(--ease);
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination a.is-active {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-color: transparent;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .notice-list { grid-template-columns: 1fr 1fr; }
  .review-list { grid-template-columns: 1fr 1fr; }
  .featured-event { padding: var(--space-2xl); }
  .featured-event h3 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .review-list { grid-template-columns: repeat(2, 1fr); }
}
