/* Community Page Stylesheet - Dark Fantasy Social Theme */

.community-section-wrapper {
  overflow-y: hidden !important;
}

.community-create-col {
  padding-top: 53px;
}

.community-feed-col {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 280px);
}

.community-layout-wrapper {
  width: 96%;
  max-width: 1650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 10px;
}

/* Two Column Grid */
.community-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 30px;
}

/* LEFT COLUMN: Feed & Posting */
.community-post-box {
  background: rgba(10, 22, 14, 0.72);
  border: 1.5px solid rgba(221, 217, 176, 0.22);
  border-radius: 6px;
  padding: 20px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.85);
  margin-bottom: 20px;
}

.post-box-header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.post-box-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.post-box-input {
  flex-grow: 1;
  height: 80px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(221, 217, 176, 0.15);
  border-radius: 4px;
  padding: 12px;
  color: #f3f1e4;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  transition: all 0.3s ease;
}

.post-box-input:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
  outline: none;
  box-shadow: 0 0 8px rgba(221, 217, 176, 0.15);
}

.post-box-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  border-top: 1px solid rgba(221, 217, 176, 0.1);
  padding-top: 15px;
}

.post-media-types {
  display: flex;
  gap: 12px;
}

.media-btn {
  background: none;
  border: none;
  color: rgba(221, 217, 176, 0.7);
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.media-btn:hover {
  color: var(--gold);
}

.media-icon {
  font-size: 14px;
}

.btn-post-submit {
  background: linear-gradient(135deg, #a48c44 0%, #7d6728 100%);
  border: 1px solid var(--gold);
  color: #000000;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 11.5px;
  padding: 8px 24px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-post-submit:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 10px rgba(221, 217, 176, 0.4);
  transform: translateY(-1px);
}

/* Feed Filter Tabs */
.feed-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(221, 217, 176, 0.15);
  padding-bottom: 8px;
  margin-bottom: 25px;
}

.feed-tabs {
  display: flex;
  gap: 15px;
}

.feed-tab-btn {
  background: none;
  border: none;
  font-family: "Cinzel", serif;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: rgba(221, 217, 176, 0.5);
  padding: 6px 12px 10px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.feed-tab-btn:hover {
  color: var(--gold);
}

.feed-tab-btn.active {
  color: var(--gold);
}

.feed-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.feed-sort-select {
  background: rgba(10, 22, 14, 0.9);
  border: 1px solid rgba(221, 217, 176, 0.3);
  color: var(--gold);
  padding: 5px 15px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

/* Feed Posts List */
.feed-posts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.feed-post-card {
  background: rgba(10, 22, 14, 0.72);
  border: 1.5px solid rgba(221, 217, 176, 0.22);
  border-radius: 6px;
  padding: 24px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease;
}

.feed-post-card:hover {
  border-color: rgba(221, 217, 176, 0.4);
}

.post-card-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.post-card-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(221, 217, 176, 0.3);
  background: rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

.post-author-name {
  font-family: "Cinzel", serif;
  font-size: 13.5px;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-badge-crown {
  font-size: 13px;
}

.online-status-dot {
  width: 7px;
  height: 7px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff66;
  display: inline-block;
}

.post-time-stamp {
  font-size: 11px;
  color: rgba(221, 217, 176, 0.5);
}

.post-body-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(243, 241, 228, 0.85);
  margin: 0;
}

.post-tags {
  color: #3b82f6;
  font-weight: 600;
}

/* Post card media display */
.post-card-media-wrap {
  border-radius: 4px;
  border: 1.5px solid rgba(221, 217, 176, 0.15);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.post-media-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Post 2 Flex Chitin Armor layout */
.flex-media {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.post-media-img-square {
  width: 42%;
  max-height: 155px;
  object-fit: cover;
  border-right: 1.5px solid rgba(221, 217, 176, 0.15);
  display: block;
}

.chitin-tooltip-box {
  flex-grow: 1;
  padding: 15px;
  background: rgba(5, 12, 8, 0.9);
  color: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tooltip-title {
  font-family: "Cinzel", serif;
  font-size: 13px;
  color: #c084fc; /* purple rarity */
  font-weight: 700;
  margin: 0 0 8px;
  filter: drop-shadow(0 0 5px rgba(192, 132, 252, 0.5));
}

.tooltip-stats {
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(243, 241, 228, 0.75);
}

.stat-bonus {
  color: #00ff66;
}

.tooltip-unique {
  color: #c084fc;
  font-weight: 600;
  margin-top: 5px;
}

/* Post 4 Rewards layout */
.rewards-grid-media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.rewards-title-box {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
  text-align: center;
  border-bottom: 1.5px solid rgba(221, 217, 176, 0.15);
  padding: 10px 0;
  margin: 0;
  background: rgba(221, 217, 176, 0.03);
}

.rewards-pills-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.reward-box-day {
  background: rgba(10, 22, 14, 0.8);
  border: 1px solid rgba(221, 217, 176, 0.15);
  border-radius: 3px;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 55px;
}

.reward-box-day .day-lbl {
  font-size: 9px;
  color: rgba(221, 217, 176, 0.5);
  text-transform: uppercase;
}

.reward-box-day .reward-loot-icon {
  font-size: 15px;
}

.active-reward-day {
  border-color: var(--gold) !important;
  background: rgba(221, 217, 176, 0.1);
  box-shadow: 0 0 10px rgba(221, 217, 176, 0.3);
}

.active-reward-day .day-lbl {
  color: var(--gold);
  font-weight: 600;
}

.glow-crystal {
  filter: drop-shadow(0 0 6px #c084fc);
  display: inline-block;
  animation: rewardPulse 2s infinite ease-in-out;
}

@keyframes rewardPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px #c084fc); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px #c084fc); }
}

/* Post Actions block */
.post-card-footer {
  border-top: 1px solid rgba(221, 217, 176, 0.1);
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reactions-count-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(221, 217, 176, 0.6);
}

.reactions-icons-count {
  letter-spacing: 1px;
}

.post-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px dashed rgba(221, 217, 176, 0.08);
  padding-top: 8px;
}

.post-action-btn {
  background: none;
  border: none;
  color: rgba(221, 217, 176, 0.7);
  font-family: "Cinzel", serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.post-action-btn:hover {
  background: rgba(221, 217, 176, 0.06);
  color: var(--gold);
}

/* Load More posts */
.btn-load-more-posts {
  width: 100%;
  background: rgba(10, 22, 14, 0.7);
  border: 1.5px dashed rgba(221, 217, 176, 0.25);
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.btn-load-more-posts:hover {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(221, 217, 176, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* RIGHT COLUMN: Sidebar */
.sidebar-info-card {
  background: rgba(10, 22, 14, 0.72);
  border: 1.5px solid rgba(221, 217, 176, 0.22);
  border-radius: 6px;
  padding: 20px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-card-header {
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--gold);
  border-bottom: 1.5px solid rgba(221, 217, 176, 0.15);
  padding-bottom: 10px;
  margin: 0;
}

.stats-rows, .sidebar-list-container, .sidebar-contributors-list, .sidebar-rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-sidebar-row, .sidebar-list-row, .contributor-row, .rule-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.stat-sidebar-label, .rule-sidebar-txt {
  color: rgba(243, 241, 228, 0.8);
}

.stat-sidebar-val, .hashtag-count, .contrib-pts {
  color: rgba(221, 217, 176, 0.7);
}

.val-green {
  color: #00ff66 !important;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.4);
}

.hashtag-name {
  color: var(--gold);
  font-weight: 600;
}

.sidebar-card-link-action {
  font-family: "Cinzel", serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.3s ease;
  text-align: center;
  display: block;
}

.sidebar-card-link-action:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Contributors row */
.contributor-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contrib-rank {
  font-size: 13px;
  color: rgba(221, 217, 176, 0.5);
  width: 14px;
}

.contrib-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(221, 217, 176, 0.2);
  object-fit: cover;
}

.contrib-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.contrib-name {
  color: #ffffff;
  font-weight: 600;
}

.contrib-pts {
  font-size: 10px;
}

.contrib-medal {
  font-size: 14px;
}

/* Rules row */
.rule-sidebar-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.rule-num {
  background: rgba(221, 217, 176, 0.1);
  border: 1px solid rgba(221, 217, 176, 0.2);
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.rule-sidebar-txt {
  margin: 0;
  line-height: 1.4;
  text-align: left;
}

/* Mobile & Widescreen Grid Overrides */
@media (max-width: 1024px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .post-card-layout {
    grid-template-columns: 1fr;
  }
  .flex-media {
    flex-direction: column;
  }
  .post-media-img-square {
    width: 100%;
    border-right: none;
    border-bottom: 1.5px solid rgba(221, 217, 176, 0.15);
  }
}

.feed-filter-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(221, 217, 176, 0.2);
}

.community-rules-box {
  background: rgba(10, 22, 14, 0.72);
  border: 1.5px solid rgba(221, 217, 176, 0.22);
  border-radius: 6px;
  padding: 20px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.85);
  margin-top: 20px;
  position: relative;
}

.community-rules-box::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(221, 217, 176, 0.05);
  pointer-events: none;
  border-radius: 4px;
}

.rules-box-title {
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0 0 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(221, 217, 176, 0.15);
  padding-bottom: 8px;
}

.rules-box-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rule-item-num {
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(221, 217, 176, 0.1);
  border: 1px solid rgba(221, 217, 176, 0.25);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-item-txt {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(243, 241, 228, 0.8);
  margin: 0;
  text-align: left;
}

.rules-box-link {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gold);
  text-decoration: none;
  margin-top: 15px;
  text-align: center;
  transition: color 0.3s ease;
  font-weight: 600;
}

.rules-box-link:hover {
  color: #fff;
  text-shadow: 0 0 6px var(--gold-glow);
}
