/* Core page styles – only what the new landing page needs */
body {
  background-color: black;
  color: white;
}

.top-bar {
  background-color: transparent;
  margin-bottom: 0;
  padding-bottom: 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.top-bar-links {
  background-color: #333;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  border-radius: 0;
}

.top-bar-nav-link {
  color: white !important;
  font-size: 20px;
  transition: color 0.3s ease;
  margin-right: 15px;
}

.top-bar-nav-link:hover {
  color: yellow !important;
}

@media (max-width: 767px) {
  .top-bar-links {
    display: none;
  }
}

/* Welcome / main content box */
.card-body-dark {
  background-color: #333;
  padding: 2rem !important;   /* proper padding */
  text-align: left !important; /* left-aligned text */
}

/* THIS WAS THE PROBLEM – it forced multi-column layout on every list */
.card-body-dark ul,
.card-body-dark ul.list-unstyled {
  columns: auto !important;
  column-count: 1 !important;
  column-gap: normal !important;
}

/* Footer */
footer {
  background-color: #333;
  padding: 10px;
  color: white;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 0;
}

.footer-legal-links a {
  color: white;
  text-decoration: underline;
}

.footer-legal-links a:hover {
  color: #ccc;
}

.footer-copyright {
  display: inline;
}

/* Login/Sign-up buttons – blue with black outline */
.login-btn {
  background-color: #0d6efd !important;
  color: white !important;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* Members navbar – dark theme, visible mobile hamburger */
.navbar-custom {
    background-color: #000 !important;
    border-bottom: 2px solid #0d6efd;
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white !important;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #0d6efd !important;
}

/* Make the hamburger (three lines) clearly visible on black */
.navbar-custom .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menu in mobile – dark but readable */
@media (max-width: 991.98px) {
    .navbar-custom .dropdown-menu {
        background-color: #111;
        border: 1px solid #333;
    }
    .navbar-custom .dropdown-item {
        color: #ccc;
    }
    .navbar-custom .dropdown-item:hover {
        background-color: #0d6efd;
        color: white;
    }
}

/* FIX: Tight top spacing + proper scrolling on member content pages ONLY */
.member-content-container {
    margin-top: 6px !important;
    padding-top: 0 !important;
    padding-bottom: 6px !important; /* safe bottom space */
}

/* Ensure body scrolls when content is long */
html, body {
    overflow-y: auto !important;
    height: auto !important;
}

/* === ULTRA-COMPACT BLOG COMMENTS - FINAL VERSION === */

.comments-section {
    margin-top: 0.75rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid #444;
}

.comments-list .bg-secondary {
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.4rem;
    border-radius: 6px;
}

.comments-list .d-flex.mb-3 {
    margin-bottom: 0.4rem !important;
}

.comments-list .mb-2 {
    margin-bottom: 0.1rem !important;
}

.comments-list .text-white.small {
    font-size: 0.82rem;
    line-height: 1.2;
}

/* Main comment input area - aligned under avatar */
.comment-input-area {
    margin-left: 52px;
    margin-top: 0.4rem;
}

/* Input group with Post button inside */
.comment-form .input-group {
    position: relative;
    width: 100%;
}

.comment-form textarea {
    width: 100%;
    min-height: 40px;
    max-height: 120px;
    padding: 0.65rem 90px 0.65rem 0.75rem !important;
    border-radius: 8px !important;
    background-color: #333;
    border: 1px solid #555;
    resize: none;
    overflow: hidden;
}

.comment-form .post-inside-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    height: calc(100% - 12px);
    padding: 0 1.2rem;
    border-radius: 6px !important;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* JS-controlled active state */
.comment-form .post-inside-btn.active {
    opacity: 1;
    pointer-events: auto;
}

/* Auto-expand tweaks */
.auto-expand {
    min-height: 40px !important;
}