/* ============================================================
   AVENGERS: DOOMSDAY — EDITORIAL FAN COMMUNITY THEME
   Clean, tactile, human-crafted dark publication styling
   ============================================================ */

html:has(body.fanpage-body),
body.fanpage-body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
  background: #0b0d0c;
  color: #e4e8e5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  user-select: text;
}

body.fanpage-body::before,
body.fanpage-body::after {
  display: none;
}

/* ── STICKY TOP NAV ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0d100e;
  border-bottom: 1px solid #222724;
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-hamburger {
  display: none;
  background: #171c19;
  border: 1px solid #2a312d;
  color: #e4e8e5;
  font-size: 1.15rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #f4f6f4;
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.nav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.nav-sub {
  color: #52a868;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: #9ba69e;
  font-weight: 500;
  font-size: 0.86rem;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: #f4f6f4;
  background: #171b18;
}

.nav-link.active {
  color: #ffffff;
  background: #1d2420;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-post-trigger {
  background: #2d7440;
  border: 1px solid #3c8f52;
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 7px 13px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-post-trigger:hover {
  background: #36874c;
}

.btn-google-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f2f4f2;
  color: #181a18;
  border: 1px solid #dcdedc;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-google-signin:hover {
  background: #ffffff;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #161b18;
  border: 1px solid #2b332e;
  padding: 3px 9px 3px 4px;
  border-radius: 6px;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.user-name {
  font-weight: 600;
  font-size: 0.84rem;
  color: #e4e8e5;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  background: none;
  border: none;
  color: #828e86;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0 3px;
}

.btn-logout:hover {
  color: #e06c6c;
}

.nav-admin-btn {
  text-decoration: none;
  color: #9ba69e;
  border: 1px solid #272d29;
  background: #121614;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
}

.nav-admin-btn:hover {
  color: #ffffff;
  border-color: #3a443e;
}

/* ── TOP HERO COUNTDOWN BANNER ── */
.hero-clock-banner {
  position: relative;
  width: 100%;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #222724;
}

.hero-clock-banner .cinema-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.banner-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 9, 7, 0.28) 0%,
    rgba(6, 9, 7, 0.14) 55%,
    #0b0d0c 100%
  );
  pointer-events: none;
}

.hero-clock-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-clock-inner .date-headline {
  font-size: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(0.8rem, 2vh, 1.6rem);
}

.hero-clock-inner .time-box .val,
.hero-clock-inner .colon {
  font-size: clamp(2rem, 5.4vw, 5.5rem);
}

.hero-cta-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-post {
  background: #2d7440;
  border: 1px solid #3f9657;
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-hero-post:hover {
  background: #36874c;
}

.btn-hero-explore {
  background: rgba(16, 20, 17, 0.85);
  border: 1px solid #343d37;
  color: #e4e8e5;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-hero-explore:hover {
  border-color: #55635a;
  color: #ffffff;
}

/* ── COMPACT CLOCK STRIP (category.php & post.php) ── */
.mini-clock-strip {
  background: #101411;
  border-bottom: 1px solid #222724;
  padding: 10px 20px;
}

.mini-clock-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mini-clock-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: #eef2ef;
}

.mini-clock-nums {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: #58b470;
}

.mini-back-link {
  color: #9ba69e;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
}

.mini-back-link:hover {
  color: #ffffff;
}

/* ── MAIN CONTAINER ── */
.fan-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ── FAN-MADE DISCLAIMER BANNER ── */
.fan-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #121614;
  border: 1px solid #252c27;
  border-left: 3px solid #479c5e;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.disclaimer-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6cc282;
  background: #19241c;
  border: 1px solid #2a3d30;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.disclaimer-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b4bfb7;
}

.disclaimer-body strong {
  color: #eef2ef;
  font-weight: 600;
}

/* ── CATEGORY JUMP BAR ── */
.cat-jump-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid #1f2421;
}

.cat-jump-label {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c877f;
}

.cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #cdd5cf;
  background: #131715;
  border: 1px solid #262c28;
  padding: 5px 12px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.86rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cat-pill:hover {
  background: #1a201c;
  border-color: #3d4841;
  color: #ffffff;
}

.cat-count {
  color: #6cc282;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── CATEGORY SECTION ── */
.category-section {
  margin-bottom: 48px;
  scroll-margin-top: 72px;
}

.category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #232825;
}

.category-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3f5f3;
  line-height: 1.05;
}

.category-desc {
  color: #8b968e;
  font-size: 0.9rem;
  margin-top: 3px;
}

.category-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cat-add {
  background: #18211b;
  border: 1px solid #2d4234;
  color: #c5decb;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-cat-add:hover {
  background: #213026;
  color: #ffffff;
}

.btn-view-all {
  text-decoration: none;
  background: #141816;
  border: 1px solid #2a302c;
  color: #e4e8e5;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 5px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-view-all:hover {
  border-color: #49564e;
  color: #ffffff;
}

/* ── POSTS GRID & CARDS ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.post-card {
  background: #121513;
  border: 1px solid #232825;
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: border-color 0.15s;
}

.post-card:hover {
  border-color: #38423c;
}

.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.author-meta {
  font-size: 0.84rem;
  color: #8a958d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-avatar.lg { width: 40px; height: 40px; }
.author-avatar.sm { width: 26px; height: 26px; }
.author-avatar.xs { width: 20px; height: 20px; }

.author-name {
  font-weight: 600;
  color: #dce2de;
}

.post-time {
  color: #7c877f;
}

.cat-badge {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78c98d;
  background: #18231c;
  border: 1px solid #283b2e;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.post-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
}

.post-card-title a {
  color: #f3f5f3;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #78c98d;
}

.post-card-excerpt {
  color: #a6b0a9;
  font-size: 0.9rem;
  line-height: 1.55;
  flex-grow: 1;
}

.post-card-media-img {
  display: block;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #252b27;
  max-height: 220px;
}

.post-card-media-img img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

/* ── EMBEDS ── */
.embed-wrap {
  border-radius: 5px;
  overflow: hidden;
  background: #090b0a;
  border: 1px solid #252b27;
}

.embed-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-instagram iframe {
  width: 100%;
  height: 460px;
  border: 0;
  background: #fff;
}

.embed-instagram.compact iframe {
  height: 260px;
}

.embed-tiktok iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.embed-twitter {
  padding: 12px;
  background: #0e1210;
}

.embed-twitter blockquote.twitter-tweet {
  margin: 0 0 8px 0;
  padding: 10px 12px;
  border-left: 2px solid #479c5e;
  background: #141916;
  border-radius: 4px;
  font-size: 0.88rem;
}

.embed-twitter blockquote.twitter-tweet a {
  color: #e4e8e5;
  text-decoration: none;
  font-weight: 600;
}

.embed-native-video video {
  width: 100%;
  max-height: 420px;
  display: block;
  background: #000;
}

.embed-source-link {
  display: block;
  padding: 7px 12px;
  font-size: 0.8rem;
  color: #78c98d;
  text-decoration: none;
  background: #121614;
  border-top: 1px solid #232825;
}

.external-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: #141816;
  border: 1px solid #262c28;
  border-radius: 5px;
  text-decoration: none;
  color: #e4e8e5;
}

.external-link-card:hover {
  border-color: #3d4841;
}

.ext-icon {
  color: #78c98d;
  display: flex;
  align-items: center;
}

.ext-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ext-host {
  font-weight: 600;
  color: #78c98d;
  font-size: 0.85rem;
}

.ext-url {
  font-size: 0.78rem;
  color: #828e86;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── CARD ACTIONS FOOTER ── */
.post-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #1e2320;
}

.action-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-like,
.btn-comment-link,
.btn-report-trigger,
.btn-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #171b18;
  border: 1px solid #272d29;
  color: #b4bfb7;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-like:hover,
.btn-comment-link:hover,
.btn-reply-toggle:hover {
  border-color: #3d4841;
  color: #ffffff;
}

.btn-like.liked {
  background: #18291d;
  border-color: #3d8550;
  color: #78c98d;
}

.btn-like.lg {
  padding: 7px 14px;
  font-size: 0.9rem;
}

.btn-like.sm,
.btn-reply-toggle {
  padding: 3px 8px;
  font-size: 0.78rem;
}

.btn-report-trigger:hover {
  border-color: #a84444;
  color: #e87c7c;
}

.btn-view-more {
  text-decoration: none;
  color: #78c98d;
  font-weight: 600;
  font-size: 0.86rem;
}

.btn-view-more:hover {
  color: #ffffff;
}

/* ── CATEGORY & POST DETAIL PAGES ── */
.cat-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #232825;
}

.cat-breadcrumb {
  font-size: 0.84rem;
  color: #7c877f;
  margin-bottom: 10px;
}

.cat-breadcrumb a {
  color: #78c98d;
  text-decoration: none;
}

.cat-page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-page-desc {
  color: #8b968e;
  margin-top: 3px;
}

.cat-page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-tabs {
  display: inline-flex;
  background: #121513;
  border: 1px solid #252b27;
  border-radius: 5px;
  overflow: hidden;
}

.sort-tab {
  text-decoration: none;
  color: #9ba69e;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.84rem;
}

.sort-tab.active {
  background: #232a25;
  color: #ffffff;
}

.post-detail-container {
  max-width: 880px;
}

.post-full-card {
  background: #121513;
  border: 1px solid #232825;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-full-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #f4f6f4;
}

.post-full-body {
  font-size: 1rem;
  line-height: 1.68;
  color: #cdd5cf;
}

.post-full-photo img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 5px;
  background: #080a09;
  border: 1px solid #232825;
}

.post-full-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #202522;
}

.btn-report-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1d1414;
  border: 1px solid #4a2626;
  color: #e09292;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 13px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-report-full:hover {
  background: #2b1818;
  color: #ffffff;
}

/* ── COMMENTS & REPLIES ── */
.comments-section {
  margin-top: 30px;
}

.comments-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.comment-form {
  background: #121513;
  border: 1px solid #232825;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 22px;
}

.comment-form-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #a6b0a9;
}

.comment-signin-notice {
  color: #c9a66b;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.comment-form textarea,
.reply-form input {
  width: 100%;
  background: #0b0d0c;
  border: 1px solid #282f2b;
  border-radius: 5px;
  color: #f2f4f2;
  font-family: inherit;
  font-size: 0.94rem;
  padding: 10px 12px;
}

.comment-form textarea:focus,
.reply-form input:focus {
  outline: none;
  border-color: #479c5e;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  background: #121513;
  border: 1px solid #212623;
  border-radius: 6px;
  padding: 14px 16px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: #eef2ef;
}

.comment-time {
  font-size: 0.78rem;
  color: #7c877f;
}

.comment-text {
  color: #cdd5cf;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.replies-list {
  margin-top: 12px;
  margin-left: 20px;
  padding-left: 14px;
  border-left: 2px solid #28362d;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply-item {
  background: #0e110f;
  border: 1px solid #1d221f;
  border-radius: 5px;
  padding: 10px 12px;
}

/* ── MODALS & FORMS ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #121513;
  border: 1px solid #2c352f;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.modal-box.modal-wide {
  max-width: 660px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #1b201d;
  border: 1px solid #2b322e;
  color: #aeb8b1;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
  border-color: #46524b;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-sub {
  font-size: 0.86rem;
  color: #8b968e;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.form-group label {
  font-weight: 600;
  font-size: 0.84rem;
  color: #c2cbc4;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #0b0d0c;
  border: 1px solid #29302c;
  border-radius: 5px;
  color: #f4f6f4;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 9px 11px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #479c5e;
}

.field-tip,
.form-hint {
  font-size: 0.78rem;
  color: #7c877f;
}

.form-error {
  color: #e87c7c;
  font-weight: 600;
  font-size: 0.88rem;
}

.photo-preview-wrap {
  margin-top: 8px;
  display: inline-block;
}

.photo-preview-wrap img {
  max-height: 120px;
  border-radius: 5px;
  border: 1px solid #2c352f;
}

.clear-photo-btn {
  display: block;
  margin-top: 4px;
  background: none;
  border: none;
  color: #e87c7c;
  cursor: pointer;
  font-size: 0.8rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.btn-primary-green {
  background: #2d7440;
  border: 1px solid #3c8f52;
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-primary-green.sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-primary-green:hover {
  background: #36874c;
}

.btn-secondary {
  background: #1a1f1c;
  border: 1px solid #2c342f;
  color: #cdd5cf;
  font-family: inherit;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-danger {
  background: #9e2222;
  border: 1px solid #bf3434;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.empty-cat-box {
  background: #121513;
  border: 1px dashed #2b332e;
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  color: #8b968e;
}

.empty-cat-box p {
  margin-bottom: 14px;
}

.fan-footer {
  border-top: 1px solid #1e2320;
  background: #090b0a;
  padding: 20px;
}

.fan-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #748077;
  font-size: 0.86rem;
}

.fan-footer-inner a {
  color: #78c98d;
  text-decoration: none;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1080px) {
  .nav-inner {
    flex-wrap: wrap;
  }
  .nav-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
    border-top: 1px solid #222724;
    gap: 4px;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-link {
    padding: 8px 10px;
  }
}

@media (max-width: 720px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .hero-clock-banner {
    min-height: 44vh;
  }
  .hero-clock-inner {
    padding: 28px 14px;
  }
  .fan-container {
    padding: 20px 14px 48px;
  }
  .post-full-card {
    padding: 18px 14px;
  }
  .replies-list {
    margin-left: 10px;
    padding-left: 10px;
  }
  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .category-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .btn-post-text {
    display: none;
  }
  .nav-title {
    font-size: 1.1rem;
  }
  .user-name {
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn-post-trigger,
  .btn-google-signin,
  .nav-admin-btn {
    padding: 6px 9px;
    font-size: 0.78rem;
  }
  .hero-clock-inner .date-headline {
    font-size: clamp(1.5rem, 7.5vw, 2.4rem);
    white-space: normal;
  }
  .hero-clock-inner .time-box .val,
  .hero-clock-inner .colon {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .time-box {
    min-width: 2.3rem;
  }
  .time-box .unit-name {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }
  .fan-disclaimer {
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }
}
