/* ==========================================================
   ðŸŒ Cl1Q Unified Global Stylesheet (Optimized)
   Purpose: Standardized layout, cleaner structure, consistent UX
   ========================================================== */

html {
  scroll-behavior: smooth;
}

:root {
  --color-bg: #f9f9f9;
  --color-text: #333;
  --color-accent: #0066cc;
  --color-accent-hover: #004499;
  --color-white: #fff;
  --color-light-border: #eee;
  --color-light-bg: #fafafa;
  --color-card-shadow: rgba(0, 0, 0, 0.05);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --font-size-sm: 0.85em;
  --font-size-base: 1em;
  --font-size-lg: 1.1em;
  --font-size-xl: 1.3em;
}

.dark-mode {
  --color-bg: #111;
  --color-text: #eee;
  --color-white: #1c1c1c;
  --color-light-border: #333;
  --color-light-bg: #222;
  --color-card-shadow: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
}

/* ==========================================================
   ✅ Navbar Styles
   ========================================================== */

#navbar {
  padding: 16px 30px;
  background-color: var(--color-white); /* previously: #111 */
  border-bottom: 1px solid var(--color-light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  color: var(--color-text);
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item {
  color: var(--color-text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.nav-item:hover {
  background-color: var(--color-light-bg);
}

.nav-item.active {
  background-color: var(--color-light-border);
  font-weight: bold;
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--color-text);
  margin-right: 10px;
}

.logo-text span.fire {
  color: #f33;
}

.logo-text span.q {
  color: #3af;
}

/* 🔽 Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  font-weight: bold;
  padding: 6px 10px;
  background-color: #eee;
  border-radius: var(--radius-md);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  background-color: var(--color-white);
  border: 1px solid var(--color-light-border);
  border-radius: var(--radius-md);
  min-width: 160px;
  z-index: 1000;
  padding: 10px 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: var(--color-light-bg);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* 📱 Responsive Navbar */
#mobile-toggle {
  display: none;
  background-color: var(--color-light-bg);
  border: none;
  color: var(--color-text);
  padding: 8px 12px;
  font-size: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar-left,
  .navbar-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-white);
    margin-top: 10px;
    padding: 10px 0;
  }

  .navbar-left.show,
  .navbar-right.show {
    display: flex;
  }

  #mobile-toggle {
    display: block;
  }
}

/* ✅ Settings Container Padding */
.settings-container {
  padding-top: 80px; /* Adjust to match navbar height */
}


/* ✅ Page Padding Fix Below Navbar */
#settings-area, .main-content, .customize-settings {
  padding-top: 80px; /* Adjust based on your navbar height (e.g., 60px + breathing room) */
}


/* 📸 Header Layout - Enhanced */
#profile-header {
  display: flex;
  justify-content: space-between; /* changed from flex-start */
  align-items: center;            /* changed from flex-start */
  gap: 20px;
  padding: 16px 30px;
  background-color: #f9f9f9;      /* changed from var(--color-white) */
  border-bottom: 2px solid var(--color-light-border);
  border-radius: 8px;             /* new */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* new */
  margin-bottom: 20px;           /* new */
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-info img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

/* ðŸŽ›ï¸ Profile Button Groups */
.profile-buttons-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
}

.callout-button,
.button {
  padding: 8px 16px;
  font-size: 1em;
  border-radius: var(--radius-lg);
  font-weight: bold;
  cursor: pointer;
}

.callout-button {
  background-color: var(--color-accent);
  color: white;
}

.callout-button:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.follow-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ðŸ– Unified Layout */
#profile-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  margin: 20px 30px;
  align-items: flex-start;
}

.left-column, .center-column, .right-column {
  background: var(--color-light-bg);
  padding: 15px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-light-border);
}

@media (max-width: 768px) {
  #profile-content {
    grid-template-columns: 1fr;
  }

  .left-column, .center-column, .right-column {
    width: 100%;
  }
}

/* ðŸ“ƒ Lists */
.post-list, .tag-list, .sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li,
.tag-list li {
  padding: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-light-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.post-list li:hover,
.tag-list li:hover {
  background-color: #f0f0f0;
}

/* ðŸ“ Post Cards */
.post-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px var(--color-card-shadow);
}

.post-media img, .post-video {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-lg);
}

/* ðŸ· Tag and Passion badges inside post cards */
.post-tags a,
.post-passions a {
  margin-right: 6px;
  background: #f2f2f2;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: var(--font-size-sm);
  color: #555;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.post-tags a:hover,
.post-passions a:hover {
  background-color: #e0e0e0;
  color: #0073e6;
  text-decoration: underline;
}

/* ðŸ’¬ Comments */
.comment-thread {
  font-size: var(--font-size-sm);
}

.comment-bubble {
  background: var(--color-light-bg);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-light-border);
}

/* ðŸ”½ Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

/* ðŸ” Search & Navigation */
.profile-tools {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 30px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ccc;
  margin-bottom: 0;
  width: 100%; /* ðŸ‘ˆ full width */
}

.profile-tools .search-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-tools .nav-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  margin-left: 20px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .profile-tools {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 15px;
  }

  .profile-tools .search-wrapper,
  .profile-tools .nav-wrapper {
    justify-content: center;
    width: 100%;
  }

  .profile-tools .nav-wrapper {
    margin-left: 0;
  }
}

.section-navigation {
  margin-top: 0;
  margin-left: 5cm;
  position: relative;
  left: 0;
}

#passion-search-bar-wrapper {
  text-align: center;
  padding-bottom: 50px;
}

/* â”€ Filter Toggle = not deactivated because posts = my feed button looks nice on its own */
.filter-toggle {
  margin: 20px auto;
  text-align: center;
}

.filter-toggle a {
  display: inline-block;
  margin: 0 10px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: #f0f0f0;
  color: #333;
  font-weight: bold;
}

.filter-toggle a.active {
  background: var(--color-accent);
  color: white;
}

/* âœ… Editors & Modals */
#motto-editor, #photo-editor, #popup-post {
  margin: 20px 30px;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-width: 600px;
  margin: 40px auto;
  animation: fadeInScale 0.3s ease forwards;
}

.modal[style*="display: none"] {
  display: none !important;
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* ðŸ‘¤ Username Link Fix */
.username-link {
  display: inline-block;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.username-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.highlighted-post {
  border: 3px solid var(--color-accent);
  background-color: #eaf4ff;
  border-radius: var(--radius-xl);
  scroll-margin-top: 100px;
  animation: highlightFade 2s ease-in-out;
  box-shadow: 0 0 12px rgba(0, 102, 204, 0.3);
}

@keyframes highlightFade {
  0% {
    background-color: #d0ebff;
    box-shadow: 0 0 18px rgba(0, 102, 204, 0.5);
  }
  100% {
    background-color: #eaf4ff;
    box-shadow: 0 0 12px rgba(0, 102, 204, 0.2);
  }
}

@keyframes highlightFade {
  0%   { background-color: #ffffcc; }
  50%  { background-color: #ffffff; }
  100% { background-color: transparent; }
}

.comment-thread.reply {
    margin-left: 20px;
    border-left: 2px solid #ddd;
    padding-left: 10px;
    margin-top: 8px;
}

.inline-reply-box {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.inline-reply-input {
    flex: 1;
    padding: 5px;
}

.inline-reply-submit {
    padding: 5px 10px;
}

.replies-container {
    margin-left: 20px;
    margin-top: 8px;
}
.toggle-replies-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 4px;
    padding: 0;
}
.toggle-replies-btn:hover {
    text-decoration: underline;
}

.toggle-replies-btn {
    background-color: transparent;
    color: #007bff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 4px 0 6px 4px;
    padding: 2px 6px;
    transition: color 0.2s ease;
}

.toggle-replies-btn:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Fallback Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px; /* Or 20px+ if you want more spacing */
  justify-content: flex-start;
}

.share-buttons button,
.share-buttons a {
  padding: 6px 12px;
  font-size: 0.95em;
  border: 1px solid #ccc; /* â† previously missing, adds subtle boundary */
  border-radius: var(--radius-md);
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.share-buttons button:hover,
.share-buttons a:hover {
  background-color: #e0e0e0;
}

.comment-thread-wrapper {
  display: none;
}

.comment-section {
  margin-top: 10px;
}

.toggle-comments-btn {
  background: none;
  border: none;
  color: #0073e6;
  cursor: pointer;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 20px;
}

/* Optional: fine-tune widths */
.col-20 {
/*  width: 20%; */
}
.col-50 {
  width: 50%;
}
.col-30 {
  width: 30%;
}

/* Make sure columns don't stack on desktop */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
  }
  .col-20, .col-50, .col-30 {
    width: 100%;
  }
}

.top-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;

    /* âž• Add these for position adjustment */
    margin-left: 8cm;
    margin-top: 2cm;
}

.top-header-flex > * {
    flex: 1 1 auto;
}

.tag-profile-box {
  background-color: #f9f9f9;
  padding: 16px 24px;
  margin: 20px 0 50px 80px;  /* â¬…ï¸ Moves box 40px from the left */
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-left: 6px solid #0073e6; /* âœ… visual emphasis */
  max-width: 800px; /* Optional: keeps it from stretching too wide */
}

.tag-profile-box h2 {
  font-size: 1.6em;
  margin: 0;
  color: #333;
}

.tag-profile-box .tag-motto {
  font-size: 1em;
  margin-top: 8px;
  font-style: italic;
  color: #555;
}

.tag-ecosystem-box {
  background: #fafafa;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 20px auto;
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.5;
}

.passion-profile-box {
  background-color: #f9f9f9;
  padding: 16px;
  margin: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.passion-profile-box h2 {
  font-size: 1.6em;
  margin-bottom: 8px;
}

.passion-motto {
  font-size: 1em;
  color: #444;
}

.passion-list {
    padding-left: 0;
    list-style-type: none;
}
.passion-list li {
    margin-bottom: 6px;
}
.passion-list a {
    text-decoration: none;
    color: #0073e6;
}
.passion-list a:hover {
    text-decoration: underline;
}

/* === Blog Styles (Cl1Q) === */
.blog-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: Arial, sans-serif;
}

.blog-header {
  text-align: center;
  margin-bottom: 30px;
}

.blog-header h1 {
  margin-bottom: 10px;
  font-size: 28px;
  color: #222;
}

.blog-header p {
  color: #555;
  font-size: 16px;
}

.blog-post {
  margin-bottom: 40px;
}

.blog-post h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #333;
}

.blog-post .meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.blog-post p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

.blog-post a {
  text-decoration: none;
  color: #0066cc;
}

.blog-post a:hover {
  text-decoration: underline;
}


/* ðŸ“¬ Messaging System */
.messaging-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.messaging-header {
  text-align: center;
  margin-bottom: 30px;
}
.messaging-header h1 {
  font-size: 28px;
}
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.conversation-item {
  background: #f4f4f4;
  padding: 12px 16px;
  border-radius: 8px;
  position: relative;
}
.conversation-item.unread {
  background: #e6f7ff;
  font-weight: bold;
}
.conversation-item a {
  text-decoration: none;
  color: #333;
}
.conversation-item .view-profile {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #888;
}
.badge {
  background: #ff3b3b;
  color: #fff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 10px;
}
.no-messages {
  text-align: center;
  margin-top: 20px;
  color: #777;
}

.chat-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.chat-header {
  text-align: center;
  margin-bottom: 20px;
}
.chat-thread {
  border: 1px solid #ccc;
  background: #f9f9f9;
  padding: 16px;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}
.chat-bubble {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 75%;
}
.chat-bubble.me {
  background: #dcf8c6;
  margin-left: auto;
  text-align: left;
}
.chat-bubble.them {
  background: #e8f0fe;
  margin-right: auto;
  text-align: left;
}
.bubble-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}
.chat-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.chat-form button {
  margin-top: 10px;
}

.message-button {
  display: inline-block;
  padding: 8px 14px;
  margin-top: 10px;
  background-color: #3498db;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.message-button:hover {
  background-color: #2980b9;
}

.navbar-icon-message {
  position: relative;
  font-size: 18px;
}

.message-badge {
  background: red;
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 10px;
  position: absolute;
  top: -8px;
  right: -8px;
}

/* ðŸ“± Responsive Styles for Chat Page (Polished) */
@media (max-width: 768px) {
  .chat-page {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .chat-header h2 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .chat-thread {
    max-height: 55vh;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 1rem;
  }

  .chat-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .chat-bubble.me {
    background-color: #dcf8c6;
    margin-left: auto;
    text-align: right;
  }

  .chat-bubble.them {
    background-color: #f1f0f0;
    margin-right: auto;
    text-align: left;
  }

  .bubble-meta {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    color: #555;
  }

  .chat-form textarea {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
  }

  .chat-form button {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.6rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
  }
}


/*  User Deletion Logs */

.admin-box table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.admin-box table thead {
  background-color: #eaeaea;
  font-weight: bold;
}

.cl1q-banner {
  max-width: 600px;
  margin: 2.5rem auto;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
}

/* statuses */
.cl1q-banner-ok  { background:#e8f7ec; border:1px solid #b7e2c2; color:#0a5c2a; }
.cl1q-banner-err { background:#fdeeee; border:1px solid #f3b3b3; color:#7a1010; }

/* optional info style to match your cleanup card */
.cl1q-banner-info { background:#eef5ff; border:1px solid #c9dcff; color:#0b3d91; }

/* Dismiss "×" */
.cl1q-banner-x {
  appearance:none; border:0; background:transparent; font-size:18px; line-height:1;
  cursor:pointer; padding:0 4px; color:inherit;
}

/* Fade-out animation used by JS */
.cl1q-banner--fade {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease;
}

/* âœ… Success Variant */
.cl1q-banner-success {
  background-color: #e6ffea;
  border: 1px solid #6bdc8d;
  color: #1e5631;
}

/* âš ï¸ Warning Variant */
.cl1q-banner-warn {
  background-color: #fff9e6;
  border: 1px solid #f0c14b;
  color: #7a5900;
}

/* â„¹ï¸ Info Variant (e.g., already activated) */
.cl1q-banner-info {
  background-color: #e0f0ff;
  border: 1px solid #7bb5f0;
  color: #204060;
}

/* ðŸ§­ Link Styling Inside Banner */
.cl1q-banner a {
  color: #bb6a00;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}
.cl1q-banner a:hover {
  color: #a14f00;
}

/* Toast-Style Alert UX with Fade Animation */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.toast.show {
    opacity: 1;
}
.toast.error {
    background-color: #f44336;
}

.banned-warning {
  background-color: #fff3f3;
  color: #a10000;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 1rem auto;
  max-width: 500px;
}

.col-20,
.col-60 {
  padding: 10px;
}

/* === Merged Profile Dashboard Rules === */

/* âœ… Unified Profile Dashboard Layout */
#profile-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  margin: 20px 30px;
  align-items: flex-start;
}
.col-20,
.col-60 {
  padding: 10px;
}
@media (max-width: 768px) {
  #profile-content {
    grid-template-columns: 1fr;
  }
}

/* Admin Interface with Ban/Unban Toggle */

.ban-btn {
  background-color: #ff4d4d;
  color: white;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
}
.unban-btn {
  background-color: #4CAF50;
  color: white;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
}

.admin-user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.admin-user-table th, .admin-user-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

.error-banner {
  background-color: #ffdddd;
  border-left: 6px solid #f44336;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  font-weight: bold;
}

.admin-ban-button {
    background: #d9534f;
    color: white;
    padding: 5px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Wrapper for the Top Rankings section */
.admin-top-rankings {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 12px;
}

/* Individual rankings section */
.admin-ranking-box {
    margin-bottom: 2rem;
}

/* Heading styles */
.admin-ranking-box h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3rem;
}

/* Table styles reused (or enhanced slightly) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    background-color: #fff;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.admin-table th {
    background-color: #f0f0f0;
    font-weight: 600;
}

.sidebar-section {
  margin-top: 1.5rem;
}

/* Report Button */

.report-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    color: #d00;
}

.subtle-flag-button {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    margin-top: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.subtle-flag-button:hover {
    color: #e00;
    opacity: 1;
    text-decoration: underline;
}

/* 🔧 Admin Navigation & Return Link Styles */

.post-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-family: sans-serif;
}

.post-header h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.post-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
}

.post-content-box {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-top: 16px;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #3366cc;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* 🔧 post modal related - may not be necessary */
body.modal-open {
  overflow: hidden; /* Prevents background scroll */
}

/* 🔧 tag list left column in passion portal */

ul.tag-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

ul.tag-list li.dual-tag {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    display: block;
}

ul.tag-list li {
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.4;
}

ul.tag-list a.primary-tag {
    font-weight: 600;
    color: #0073e6;
    text-decoration: none;
}

ul.tag-list a.primary-tag:hover {
    text-decoration: underline;
}

ul.tag-list .secondary-link {
    font-size: 13px;
    margin-left: 6px;
    color: #888;
}

ul.tag-list .secondary-link a {
    color: #888;
    text-decoration: none;
}

ul.tag-list .secondary-link a:hover {
    text-decoration: underline;
    color: #444;
}

ul.tag-list .tag-score {
    font-size: 12px;
    color: #999;
    margin-left: 6px;
}

@media (max-width: 600px) {
  ul.tag-list .tag-score {
    display: none;
  }
}

.favorites-banner {
  background: #ffeaea;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 2px solid #ff9999;
  position: sticky;
  top: 0;
  z-index: 10;
}

.empty-favorites-msg {
  text-align: center;
  padding: 40px;
  color: #666;
}
.cta-link {
  display: inline-block;
  margin-top: 10px;
  background: #ff6666;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.no-posts-message {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border: 2px dashed #ccc;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 12px;
  font-size: 16px;
}
.no-posts-message .cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #ff7675;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}
.no-posts-message .cta-button:hover {
  background-color: #d63031;
}

.nav-item.active {
  font-weight: bold;
  color: #e74c3c;
  border-bottom: 2px solid #e74c3c;
}

/* ✅ Notification + Message Badges */
.notification-badge,
.message-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  color: white;
  z-index: 10;
}
.notification-badge {
  background-color: red;
}
.message-badge {
  background-color: blue;
}

/* ✅ Shared Dropdown Menu (for 👤 user & others) */
.dropdown {
  position: relative;
  z-index: 10; /* Ensures proper stacking above logout and nav */
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #222; /* Dark background for contrast */
  border: 1px solid #444;
  border-radius: 6px;
  min-width: 180px;
  padding: 10px 0;
  z-index: 9999; /* Bring to front above logout and all nav items */
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #333;
}

.dropdown-menu a:visited {
  color: white;
}

/* ✅ Optional fallback for hover interactions */
.user-menu:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ✅ Fix for logout overlapping dropdown (if needed) */
a[href*="logout"] {
  position: relative;
  z-index: 1;
}

/* ✅ Notification Dropdown (🔔) */
.notification-dropdown-menu {
  position: absolute;
  top: 40px; /* moved further below the bell for visual clarity */
  right: 0;
  width: 280px;
  max-height: 350px;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  border-radius: 8px;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  scrollbar-color: #bbb #f0f0f0; /* Firefox */
  scrollbar-width: thin;
}

.notification-dropdown-menu.show,
.notification-dropdown-menu:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar styles (WebKit) */
.notification-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}
.notification-dropdown-menu::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}
.notification-dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 4px;
  border: 2px solid #f0f0f0;
}
.notification-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* ✅ Dropdown header styling */
.notification-dropdown-menu .dropdown-header {
  font-weight: bold;
  font-size: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  background-color: #fafafa;
  text-align: left;
}

/* ✅ Notification Content Styling */
.notification-message {
  font-size: 14px;
  color: #333;
}
.notification-timestamp {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.notification-icon {
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}
.notification-item.unread .notification-icon {
  color: #2ecc71; /* green */
}
.notification-item.read .notification-icon {
  color: #ccc;
}
.notification-item.unread .notification-message {
  font-weight: bold;
  color: #333;
}
.notification-item.read .notification-message {
  font-weight: normal;
  color: #888;
  opacity: 0.7;
  pointer-events: none;
}
.notification-item.unread:hover {
  background-color: #eefaf1;
}
.notification-item.read:hover {
  background-color: #f5f5f5;
}

/* Search Bar Effects */
#search-bar.glow {
  box-shadow: 0 0 8px #2ecc71;
  border: 1px solid #2ecc71;
}

.autocomplete-box div:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

.admin-warning {
  font-size: 0.9em;
  color: #b30000;
  margin-bottom: 12px;
}

.btn-sm.danger {
  background-color: #f8d7da;
  color: #721c24;
}

.btn-sm.warning {
  background-color: #fff3cd;
  color: #856404;
}

.btn-sm.danger,
.btn-sm.warning {
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  font-size: 0.85em;
  cursor: pointer;
}

.btn-sm.danger:hover {
  background-color: #f5c6cb;
}

.btn-sm.warning:hover {
  background-color: #ffe8a1;
}

.btn-sm.danger:disabled,
.btn-sm.warning:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-sm i {
  margin-right: 5px;
  vertical-align: middle;
}

/* Ensure the logout button doesn’t block clicks */
.logout-btn {
  position: relative;
  z-index: 1; /* behind dropdown */
  background-color: transparent;
  color: inherit;
  padding: 4px 8px;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999;
  background-color: white;
  border: 1px solid #ccc;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


.soft-delete-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 10px;
  color: #856404;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: bold;
}


/* ✅ Upon successfully updating User Settings in Profile Header */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
  margin: 15px 0;
  font-weight: bold;
}


/* ✅ User Settings Container */

.settings-container {
  max-width: 640px;
  margin: 30px auto;
  padding: 100px 30px 30px; /* top padding ensures navbar doesn't overlap */
  background-color: var(--color-white, #fff); /* ✅ added fallback */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.settings-container h1,
.settings-container h2 {
  color: var(--color-text, #333); /* ✅ optional fallback */
  margin-bottom: 16px;
}

.settings-container label {
  font-weight: bold;
  display: block;
  margin: 12px 0 6px;
  color: #444;
}

.settings-container input[type="email"],
.settings-container input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.settings-container .btn-primary {
  margin-top: 20px;
  padding: 10px 18px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.settings-container .btn-primary:hover {
  background-color: #005fa3;
}

#customize {
  scroll-margin-top: 120px;
}


✅ Settings Link 

.settings-link {
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #e6f7ff;
  color: #0077cc;
  font-weight: bold;
  display: inline-block;
  margin-top: 8px;
  transition: background-color 0.2s ease;
}

.settings-link:hover {
  background-color: #d0ecff;
}


✅ New Settings Button 
.settings-button {
  padding: 6px 14px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: inline-block;
  margin-right: 10px;
  transition: background-color 0.2s ease;
}

.settings-button:hover {
  background-color: #e0e0e0;
} 

.settings-link {
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  background-color: #eaf7ff;
  color: #005fa3;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.settings-link:hover {
  background-color: #d4ecff;
}


/* Post (Hot Action) */
.callout-button {
  background-color: #ffefef; 
  border: 2px solid #ff7777;
  color: #b30000;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.callout-button:hover {
  background-color: #ffe0e0;
}

/* Feed Buttons = Never implemented */
.feed-button {
  background-color: #eef5ff;
  color: #0055aa;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cce0ff;
  margin-right: 8px;
  transition: background-color 0.2s ease;
}

.feed-button:hover {
  background-color: #ddeeff;
}


/* ✅ Mini-Profile Box Styles */
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.profile-card img.photo-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card h2 {
  margin: 0;
  font-size: 18px;
}

.profile-card p {
  margin: 4px 0;
  color: #666;
}

/* ✅ Compact Mode */
.profile-card.compact {
  padding: 8px 12px;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.profile-card.compact img.photo-icon {
  width: 40px;
  height: 40px;
}

.profile-card.compact h2 {
  font-size: 15px;
  margin: 0;
}

.profile-card.compact p {
  font-size: 13px;
  margin: 2px 0;
  color: #777;
}


/* ✅ Mini-Passion Box Styles */
.passion-card,
.tag-card {
  padding: 8px 12px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ✅ Compact Mode */
.passion-card.compact img.photo-icon,
.tag-card.compact img.photo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.passion-card.compact h2,
.tag-card.compact h2 {
  font-size: 15px;
  margin: 0;
}

.passion-card.compact a,
.tag-card.compact a {
  color: #333;
  text-decoration: none;
}

.passion-card.compact a:hover,
.tag-card.compact a:hover {
  text-decoration: underline;
}

/* ✅ Making sure none of the editors ever leak into view unless explicitly shown */
.editor-section {
  display: none;
  margin-top: 10px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}

/* passion blog wrapper */
.blog-form-wrapper {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}


/* 🌍 Global Blog Post Styling */
.blog-post-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 24px;
  line-height: 1.7;
  font-size: 1.05rem;
  font-family: Georgia, serif;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.blog-header {
  text-align: center;
  margin-bottom: 32px;
}

.blog-header img.photo-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.blog-header h1 {
  font-size: 2rem;
  margin: 0;
}

.blog-header small {
  color: #666;
}

.blog-content p {
  margin-bottom: 1.2em;
}


/* BLog Pagination */

.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.pagination a:hover {
  background: #e0e0e0;
}

.pagination a[style*="font-weight:bold"] {
  background: #333;
  color: #fff;
}


/* Consolidated BLog Styling */

/* 📚 Blog Styling – Consolidated and Polished */

.blog-view-container {
  max-width: 850px;
  margin: 40px auto;
  padding: 30px;
  background: #fafafa;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 🔠 Blog Titles */
.blog-header h1,
.blog-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* 🕓 Meta Info */
.blog-meta,
.blog-post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

/* 📄 Blog Post Card Layout */
.blog-post-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease;
}

.blog-post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 🧾 Blog Post Header and Title */
.blog-post-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.blog-post-header a {
  color: #222;
  text-decoration: none;
}

/* ✍️ Blog Post Content */
.blog-post-excerpt {
  margin-top: 14px;
  color: #444;
  font-size: 1rem;
}

.blog-content p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

/* 🔗 Read More / Back */
.blog-read-more,
.blog-back-button {
  display: inline-block;
  margin-top: 20px;
  color: #2c80ff;
  font-weight: bold;
  text-decoration: none;
}


.admin-box h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.admin-box {
  background: #fff;
  padding: 16px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


.blog-tags {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0;
}

/* blog toast */

.toast {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  padding: 12px 16px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.toast-success {
  background: #e9f9ef;
  color: #156f3a;
  border-bottom: 1px solid #bfe8cc;
}
.toast-link {
  color: inherit;
  text-decoration: underline;
}


/* Blog content media (single source of truth) */
.blog-post-card img,
.blog-post-excerpt img,
.blog-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: 10px;
  /* modern alias for max-width; harmless fallback */
  max-inline-size: 100%;
}

/* Optional: if you sometimes embed logos/icons that shouldn't be rounded */
img.no-radius { border-radius: 0; }

/* Responsive embeds (YouTube, etc.) */
.blog-post-card iframe,
.blog-post-excerpt iframe,
.blog-content iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  margin: 16px 0;
  border: 0;
}

/* Videos too, just in case */
.blog-post-card video,
.blog-post-excerpt video,
.blog-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: 10px;
}


/* Comments (clean + consistent) */

.blog-comments { margin-top: 28px; }

.comment {
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}

.comment-meta {
  font-size: .9rem;
  color: #777;
  margin-bottom: 6px;
}

.comment-body {
  line-height: 1.6;
  color: #333;
}

/* (Optional) subtle hover for comments */
.comment:hover { border-color: #e5e5e5; }

/* Like button micro-anim (used below) */
.like-btn {
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
  will-change: transform;
}

.like-btn:active { transform: scale(0.96); }

.like-btn.liked {
  background: #ffeef0;
  border-color: #f5c2c7;
  animation: like-pop 180ms ease-out;
}

@keyframes like-pop {
  0%   { transform: scale(0.92); }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1.00); }
}


/* ==========================================================
   🎨 Font Weight Utilities for Inter
   ========================================================== */

.fw-400 {
  font-weight: 400; /* Regular */
}

.fw-500 {
  font-weight: 500; /* Medium */
}

.fw-600 {
  font-weight: 600; /* Semibold */
}

.fw-700 {
  font-weight: 700; /* Bold */
}

/* ==========================================================
   🔤 Typography Utilities
   ========================================================== */

/* Text transforms */
.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

/* Letter spacing helpers */
.ls-tight {
  letter-spacing: -0.02em; /* tighten text slightly */
}

.ls-normal {
  letter-spacing: normal;
}

.ls-wide {
  letter-spacing: 0.05em; /* subtle extra spacing */
}

.ls-wider {
  letter-spacing: 0.1em; /* for headings, impact */
}

/* Text alignment */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* === Site-wide Post Overlay (wins by being last) === */
.post-popup-overlay{
  position: fixed;          /* critical */
  inset: 0;
  display: none;            /* default hidden */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 10000;           /* above dropdowns/menus */
}

/* Ensure the popup looks like a modal, not in-flow content */
.post-popup-overlay .modal-content,
.post-popup-overlay #post-popup{
  position: relative;
  background: #fff;
  max-width: 680px;
  width: min(680px, 92vw);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  margin: 0;                /* override any earlier margin on #popup-post */
}

/* Close button inside the popup */
.post-popup-overlay .close-post-popup{
  position: absolute;
  top: 8px; right: 10px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Lock background scroll when modal is open */
body.modal-open { overflow: hidden; }

/* -- Force solid background for the popup (beats older rules) -- */
.post-popup-overlay .modal-content,
.post-popup-overlay #post-popup{
  background-color: #fff !important; /* ensure not transparent */
  opacity: 1 !important;             /* prevent inherited opacity */
}

/* Safety: make sure generic .modal-content is NOT transparent anywhere */
.modal-content{ background-color: var(--color-white, #fff); }

/* Make dropdown items readable on dark menus */
.navbar .dropdown-menu { background:#111; }
.navbar .dropdown-menu a,
.navbar .dropdown-menu a:link,
.navbar .dropdown-menu a:visited { color:#fff; }
.navbar .dropdown-menu a:hover,
.navbar .dropdown-menu a:focus { background:#222; color:#fff; }

/* Dark dropdown that keeps text readable */
.navbar .dropdown-menu {
  background: #111 !important;
  color: #fff !important;
}

/* Cover common patterns: <a>, .dropdown-item, .nav-link inside the menu */
.navbar .dropdown-menu a,
.navbar .dropdown-menu .dropdown-item,
.navbar .dropdown-menu a.nav-link {
  color: #fff !important;
}

/* Hover/focus state */
.navbar .dropdown-menu a:hover,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu a:focus,
.navbar .dropdown-menu .dropdown-item:focus {
  background: #222 !important;
  color: #fff !important;
}

/* If your menu uses buttons or spans */
.navbar .dropdown-menu button,
.navbar .dropdown-menu span {
  color: #fff !important;
}

/* Ensure the dropdown AND its items inherit white text */
.navbar .dropdown-menu {
  background: #111 !important;
  color: #fff !important;
}

/* Make sure buttons inside the menu are white */
.navbar .dropdown-menu .logout-btn,
.navbar .dropdown-menu button,
.navbar .dropdown-menu [role="menuitem"] {
  color: #fff !important;
}

/* Hover state */
.navbar .dropdown-menu .logout-btn:hover,
.navbar .dropdown-menu button:hover,
.navbar .dropdown-menu .dropdown-item:hover {
  background: #222 !important;
  color: #fff !important;
}

/* Force readable text in the user dropdown, including buttons */
.navbar .dropdown-menu,
.navbar .dropdown-menu * {
  color: #fff !important;
}

/* Target the logout button specifically (wins most specificity battles) */
.navbar .dropdown-menu .logout-btn {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important; /* Safari */
  background: transparent !important;
}

/* Optional: if your dropdown has a specific wrapper/id, use it for even more weight
#user-menu.dropdown-menu .logout-btn { color:#fff !important; -webkit-text-fill-color:#fff !important; }
*/

/* === Final override for user menu readability === */
.navbar .dropdown-menu {
  background: #111 !important;
  color: #fff !important;
  opacity: 1 !important;             /* kill inherited translucency */
  filter: none !important;            /* undo invert/blur/etc. */
  mix-blend-mode: normal !important;  /* don't blend with bg */
  isolation: isolate;                 /* keep effects from parents out */
}

/* Ensure everything inside inherits readable text */
.navbar .dropdown-menu * {
  color: inherit !important;
  text-shadow: none !important;
}

/* Specific hit on the logout button */
.navbar .dropdown-menu .logout-btn,
.navbar .dropdown-menu button.logout-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  line-height: 1.35;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important; /* Safari */
  cursor: pointer;
}

/* Hover/focus, same look as links */
.navbar .dropdown-menu a:hover,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .logout-btn:hover,
.navbar .dropdown-menu button.logout-btn:hover,
.navbar .dropdown-menu a:focus,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .logout-btn:focus,
.navbar .dropdown-menu button.logout-btn:focus {
  background: #222 !important;
  color: #fff !important;
}

/* === Force readable Logout in any header/user menu === */
:where(header, .navbar, nav, .topbar, #navbar, #topbar)
  :is(.logout-btn, button.logout-btn) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important; /* Safari */
  background: transparent !important;
}

/* If the button lives inside a form, hit that variant too */
:where(header, .navbar, nav, .topbar, #navbar, #topbar)
  form :is(.logout-btn, button.logout-btn) {
  color: #fff !important;
}

/* Extra nets if your markup differs */
button[aria-label="Log out"].logout-btn { color:#fff !important; }
form[action*="logout"] .logout-btn     { color:#fff !important; }

.emoji-bar .emoji {
  background: transparent;
  border: 0;
  padding: 0 4px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.emoji-bar .emoji.active { transform: scale(1.05); }

/* Comments container safe defaults */
.comment-thread-wrapper { display: none; }
.comment-thread-wrapper.is-open { display: block; }

/* Post Card Pin Toggle */
.post-card .pin-toggle.is-pinned {
  color: #d97706; /* amber-ish */
  font-weight: 600;
}

/* Passion header locomotive */
/* wherever your passion photo icon class lives */

.photo-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* if it feels cramped, give it a little margin-right */
#profile-header .passion-header-left {
  margin-right: 8px;
}

@media (max-width: 600px) {
  .photo-icon {
    width: 64px;
    height: 64px;
  }
}

/* Make passion photo bigger */
#profile-header .passion-header-left img.photo-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

#profile-header .profile-info.passion-profile-box {
    display: flex;
    align-items: center;   /* vertical centering */
    gap: 24px;             /* space between photo and the next block */
}

/* Carpe Diem Button in Passion Header */

#profile-header .passion-carpe-btn {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 12px;
  text-decoration: none;
  color: #555;
  margin-bottom: 4px;
}
#profile-header .passion-carpe-btn:hover {
  background: #f2f2f2;
}



