/* UNIVERSAL CSS */

/* Global box-sizing */
*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* ----- FRONT PAGE/LANDING ----- */
.front-bg {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #00557d;
    padding: 40px 20px;
}
.front-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    gap: 60px;
}
.front-left {
    flex: 1;
    padding-right: 20px;
    color: #ffffff;
}
.front-logo {
    max-width: 400px;
    height: auto;
    display: block;
    margin-bottom: 0px;
}
.welcome-blurb {
    font-size: 1.2em;
    line-height: 1.5;
    color: #ffffff;
    margin-top: -50px;
    margin-bottom: 20px;
    white-space: pre-wrap;
}
.welcome-blurb p {
    margin: 0 0 0.5em 0;
    padding: 0;
}
.welcome-blurb ul,
.welcome-blurb ol {
    margin: 0;
    padding-left: 1em;
}
.welcome-blurb li {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
.front-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}
.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 320px;
    max-width: 100%;
}
.login-form {
    width: 100%;
}
.login-form h2 {
    margin-bottom: 20px;
    font-size: 1.6em;
    color: #333333;
    text-align: center;
}
.login-form .form-group {
    margin-bottom: 15px;
}
.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95em;
    color: #555555;
}
.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    background: #f0f4f8;
}
.login-form .btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
}
.signup-link {
    margin-top: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 0.95em;
}
.signup-link a {
    color: #ffffff;
    text-decoration: underline;
}
.front-footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
    color: #ffffff;
    font-size: 0.9em;
}
@media (max-width: 768px) {
    .front-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .front-left {
        text-align: center;
        padding-right: 0;
    }
    .front-right {
        width: 100%;
        margin-top: 30px;
    }
}

/* ----- EXPERIENCE SCREEN ----- */
.experience-screen-body {
    margin: 0;
    padding: 0;
    background: #00557d;
    font-family: Arial, sans-serif;
}
.experience-screen-logo {
    text-align: center;
    padding: 20px;
}
.experience-screen-logo img {
    max-height: 100px;
}
.experience-screen-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.experience-screen-box {
    flex: 1 1 300px;
    min-height: 200px;
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    font-size: 2em;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,0.7);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.experience-screen-box:hover {
    transform: scale(1.02);
}
.experience-screen-selected {
    border-color: gold !important;
}
.experience-screen-preference {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #ffffff;
}
.experience-screen-preference input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
    cursor: pointer;
}
.experience-screen-preference label {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* ----- PROFILE CONTAINER ----- */
.user-profile-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}
.user-profile-container h1 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}
.profile-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.profile-section h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
}
.profile-section form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555;
}
.profile-section input[type="text"],
.profile-section input[type="email"],
.profile-section input[type="date"],
.profile-section textarea,
.profile-section input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
}
.profile-section textarea {
    resize: vertical;
}
.profile-section input[type="radio"] {
    margin-right: 8px;
}
.profile-section label input[type="radio"] {
    margin-right: 5px;
    font-weight: normal;
}
.profile-avatar {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    display: block;
    margin-bottom: 15px;
    border: 2px solid #ccc;
}
.profile-section button {
    background-color: #0077cc;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.profile-section button:hover {
    background-color: #005fa3;
}
.character-list {
    list-style-type: none;
    padding-left: 0;
}
.character-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
.character-list li a {
    margin-left: 10px;
    font-size: 0.95em;
    color: #0077cc;
    text-decoration: none;
}
.character-list li a:hover {
    text-decoration: underline;
}

/* ----- HEADER/NAVIGATION ----- */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #1f1f1f;
    font-family: 'Orbitron', sans-serif;
}
.logo-area {
    display: flex;
    align-items: center;
}
.logo-area img {
    max-height: 40px;
}
.site-logo {
    height: 40px;
    margin-right: 10px;
}
.site-title {
    font-size: 1.6em;
    color: #ffcc00;
    font-weight: bold;
}
.user-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
    align-items: center;
}
.user-nav .nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    height: 40px;
}
.user-nav .nav-link:hover {
    color: #0077cc;
}
/* Dropdown/Profile Switcher */
.profile-switcher { position:relative }
.profile-btn { background:none; border:none; cursor:pointer; padding:0 }
.profile-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover }
.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #2c2c2c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border-radius: 4px;
    min-width: 180px;
    z-index: 1000
}
.profile-switcher:hover .profile-dropdown,
.profile-dropdown:hover { display: block; }
.dropdown-header {
    padding:8px 12px;
    color:#0077cc;
    font-weight:bold;
    text-transform:uppercase;
    font-family:'Orbitron',sans-serif;
    pointer-events:none
}
.divider { height:1px; background:#444; margin:5px 0 }
.dropdown-item {
    display:flex;
    align-items:center;
    padding:8px 12px;
    color:#e0e0e0;
    text-decoration:none;
    font-family:'Orbitron',sans-serif
}
.dropdown-item:hover {
    background:#3a3a3a;
    color:#0077cc;
}
.dropdown-avatar { width:24px; height:24px; border-radius:50%; object-fit:cover; margin-right:8px }

/* ----- USER FOOTER ----- */
.user-footer {
    text-align: center;
    font-size: 0.9em;
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 10px 20px;
}

/* BLUE EXPERIENCE CSS */

/* BLACK EXPERIENCE CSS */

/* ----- PAGE STRUCTURE ----- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
body {
    background-color: #00557d !important;
}

/* ----- FEED + GRID LAYOUT ----- */
.tri-grid-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 50px auto;
    min-height: 80vh;
    gap: 0px;
    padding: 0;
    box-sizing: border-box;
}
.tri-sidebar-left,
.tri-sidebar-right {
    width: 100px;
    min-width: 300px;
    max-width: 340px;
    flex: 50px 0px 0px;
    display: block;
}

.tri-sidebar-leftp,
.tri-sidebar-rightp {
    width: 100px;
    min-width: 300px;
    max-width: 340px;
    flex: 50px 0px 0px;
    display: block;
    padding: 40px 0px 0px 0px;
}

.tri-feed-main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}
.feed-inner {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}
.sidebar-content {
    background: transparent;
    color: #b5d6f6;
    border-radius: 0px;
    padding: 24px 16px 0px 0px;
    min-height: 240px;
    box-shadow: none;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: left;
}
.sidebar-stub {
    letter-spacing: 0.1em;
}
.sidebar-stub a {
  color: #FAF9F6;
 font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.15s;
}
.sidebar-stub a:hover {
  color: #fff;
  text-decoration: none;
}
.stub-post-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
    text-align: center;
}
.stub-post-btn:hover {
    background-color: #003f5c;
}
.stub-post-btn a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

/* ----- RESPONSIVENESS & MOBILE NAV ----- */
.mobile-top-nav {
  display: none;
}

@media (max-width: 1350px) {
    .tri-sidebar-right { display: none; }
}

@media (max-width: 1350px) {
    .tri-sidebar-rightp { display: none; }
}

@media (max-width: 980px) {
    .feed-inner { max-width: 98vw; }
}
@media (max-width: 900px) {
  .tri-sidebar-left {
    display: none !important;
  }

@media (max-width: 900px) {
  .tri-sidebar-leftp {
    display: none !important;
  }
}
  .mobile-top-nav {
    display: flex !important;
    position: sticky;
    top: 0;
    left: 0; right: 0;
    z-index: 9999;
    background: #023e66;
    border-bottom: 1px solid #0a2c44;
    justify-content: space-around;
    align-items: center;
    min-height: 54px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  }
  .mobile-top-nav a {
    color: #fff !important;
    font-size: 1.45em;
    padding: 8px 12px 4px 12px;
    flex: 1 1 16%;
    text-align: center;
    transition: color 0.14s;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none !important;
 text-decoration: none;
  }
  .mobile-top-nav a:active,
  .mobile-top-nav a:focus,
  .mobile-top-nav a:hover {
    color: #ffcc00 !important;
    background: none !important;
  }
}

@media (max-width: 700px) {
    .tri-grid-layout {
        flex-direction: column;
        gap: 0;
        max-width: 100vw;
        align-items: stretch;
        padding: 0;
    }
    .feed-inner { max-width: 100vw; }
}

/* ----- FEED CARDS & POSTING ----- */
.black-feed-wrapper {
    max-width: 800px;
    width: 100%;
    margin: auto;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.black-feed-wrapper h1 {
    color: #fff;
    text-align: center;
}
.echo-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    padding: 20px;
}
.echo-card .echo-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.echo-card .echo-meta img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.echo-card .echo-meta strong {
    margin-left: 10px;
    color: #333;
}
.echo-card small {
    margin-left: auto;
    color: #666;
}
.echo-card p {
    margin-top: 10px;
    color: #222;
}
.echo-actions {
    margin-top: 10px;
}
.echo-actions form,
.echo-actions a {
    display: inline-block;
    margin-right: 10px;
   color: #00557d;;
}
.no-profile-message {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 6px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}
.load-more-btn {
    display: block;
    margin: 30px auto;
    background: #ffffff;
    color: #00557d;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}
.create-echo-box {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}
.create-echo-form {
    display: flex;
    flex-direction: column;
}
.create-echo-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.echo-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.create-echo-box textarea {
    flex: 1;
    min-height: 70px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    width: 100%;
}
.create-echo-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.echo-post-btn {
    background-color: #00557d;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.echo-post-btn:hover {
    background-color: #003f5c;
}
.echo-input {
    resize: vertical;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    font-size: 1em;
}
.echo-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
  
}

.echo-footer a{
    color: #00557d;;
}
.echo-reply-btn {
    background-color: #00557d;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}
.echo-reply-btn:hover {
    background-color: #004466;
}
.quoted-echo {
    background-color: #1e1e1e;
    border-left: 4px solid #555;
    padding: 10px;
    margin-bottom: 1rem;
    color: #ccc;
}
.quoted-echo blockquote {
    margin: 0.5em 0 0 0;
    padding-left: 1em;
    border-left: 2px solid #333;
    color: #aaa;
}

/* ----- BREADCRUMBS ----- */
.breadcrumbs {
    padding: 10px 20px;
    background: #fafafa;
    font-size: 0.9em;
    font-style: italic;
    color: #222;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.breadcrumbs a {
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.15s;
}
.breadcrumbs a:hover {
    color: #00557d;
    text-decoration: underline;
}

/* ----- PROFILE DROPDOWN ---- */
.profile-switcher {
    position: relative;
}
.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
}
.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffcc00;
    transition: box-shadow 0.15s;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}
.profile-avatar:hover, .profile-btn:focus .profile-avatar {
    box-shadow: 0 0 0 3px #3477f6;
    border-color: #3477f6;
}
.profile-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #1a232a;
    border-radius: 7px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    z-index: 1000;
}
.profile-switcher:hover .profile-dropdown,
.profile-dropdown:focus-within {
    display: block;
}
.dropdown-header {
    padding: 8px 12px;
    color: #0077cc;
    font-weight: bold;
    text-transform: uppercase;
    pointer-events: none;
    font-family: 'Orbitron', sans-serif;
}
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    transition: background 0.15s, color 0.12s;
    border-radius: 4px;
}
.dropdown-item:hover {
    background: #232e39;
    color: #ffcc00;
}
.divider {
    height: 1px;
    background: #444;
    margin: 5px 0;
}

/* === LEFT SIDEBAR NAV: MODERNIZED === */
.tri-sidebar-left .sidebar-content {
  padding: 32px 12px 0px 16px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  background: transparent !important;
  box-shadow: none !important;
}
.sidebar-stub {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-stub a,
.sidebar-stub a:visited {
  color: #f2f3f7;
  font-size: 1.2em;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.16s, background 0.16s;
  padding: 1px 2px;
  border-radius: 2px;
  display: flex;
  align-items: center;
}
.sidebar-stub a:hover,
.sidebar-stub a:focus {
  color: #fff;
  background: rgba(0,0,0,0.08);
  outline: none;
}
.stub-post-btn {
    margin-top: 30px !important;
    width: 100% !important;
    font-size: 1.12em !important;
    font-weight: 700;
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 6px;
    box-shadow: 0 2px 10px 0 rgba(20,40,80,0.08);
    letter-spacing: 0.04em;
    transition: background 0.14s;
    cursor: pointer;
    text-align: center;
}

.stub-post-btn a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  width: 100%;
  display: block;
  text-align: center;
}

.stub-post-btn:hover {
    background: #1562b6;
}

/* === MOBILE: HIDE SIDEBAR, SHOW MOBILE NAV === */
@media (max-width: 900px) {
  .tri-sidebar-left {
    display: none !important;
  }
  .tri-sidebar-leftp {
    display: none !important;
  }
  .mobile-top-nav {
    display: flex !important;
    position: sticky;
    top: 0;
    left: 0; right: 0;
    z-index: 9999;
    background: #023e66;
    border-bottom: 1px solid #0a2c44;
    justify-content: space-around;
    align-items: center;
    min-height: 54px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  }
  .mobile-top-nav a {
    color: #fff !important;
    font-size: 1.45em;
    padding: 8px 12px 4px 12px;
    flex: 1 1 16%;
    text-align: center;
    transition: color 0.14s;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none !important;
    text-decoration: none;
  }
  .mobile-top-nav a:active,
  .mobile-top-nav a:focus,
  .mobile-top-nav a:hover {
    color: #ffcc00 !important;
    background: none !important;
  }
}
.mobile-top-nav {
  display: none;
}

@media (max-width: 1350px) {
    .tri-sidebar-right { display: none; }
}
@media (max-width: 980px) {
    .feed-inner { max-width: 98vw; }
}
@media (max-width: 700px) {
    .tri-grid-layout {
        flex-direction: column;
        gap: 0;
        max-width: 100vw;
        align-items: stretch;
        padding: 0;
    }
    .feed-inner { max-width: 100vw; }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  height: 38px;
  width: 42px;
  background: none;
  border: none;
  gap: 6px;
  margin-left: 8px;
  cursor: pointer;
 z-index: 10001;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 62px;
 Left: 7px;
  width: 88vw;
  max-width: 350px;
  background: #191b22;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.23);
 z-index: 10000;;
  padding: 13px 0 10px 0;
  animation: slideInNav .21s;
}
@keyframes slideInNav {
  from { opacity: 0; transform: translateY(-24px);}
  to   { opacity: 1; transform: translateY(0);}
}
.mobile-nav-drawer .nav-link {
  color: #fff;
  font-size: 1.12em;
  padding: 11px 24px;
  text-decoration: none;
  border-radius: 0;
  border-bottom: 1px solid #23273a;
  background: none;
}
.mobile-nav-drawer .nav-link:last-child {
  border-bottom: none;
}
.mobile-profile-switcher {
  margin: 8px 0 0 0;
  width: 100%;
  padding: 0 10px;
}
.mobile-profile-switcher .profile-btn {
  width: 100%;
  background: #212a34;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1.08em;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 2px;
}
.mobile-profile-switcher .profile-avatar {
  width: 32px;
  height: 32px;
}
.mobile-profile-switcher .profile-dropdown {
  display: none;
  position: static;
  min-width: unset;
  background: #161b23;
  border-radius: 9px;
  box-shadow: 0 4px 22px rgba(0,0,0,0.17);
  padding: 7px 0;
  margin-top: 3px;
}
.mobile-profile-switcher .profile-dropdown .dropdown-item {
  padding: 8px 18px;
  font-size: 1.04em;
}
.mobile-profile-switcher .divider {
  margin: 5px 0;
}
.mobile-profile-switcher .dropdown-header {
  padding: 7px 18px;
  font-size: 0.98em;
  color: #82b6ff;
}

/* Hide desktop nav/profile on mobile */
@media (max-width: 720px) {
  .user-nav {
    display: none !important;
  }
  .desktop-profile-switcher {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

/* On desktop, hide mobile drawer */
@media (min-width: 721px) {
  .mobile-nav-drawer,
  .mobile-profile-switcher {
    display: none !important;
  }
  .user-nav {
    display: flex !important;
  }
}

/* General mobile improvements */
@media (max-width: 480px) {
  .mobile-nav-drawer {
    width: 97vw;
    top: 52px;
    right: 2vw;
    max-width: 99vw;
    font-size: 0.97em;
    padding-top: 5px;
  }
  .mobile-profile-switcher .profile-btn {
    font-size: 0.99em;
    padding: 6px 8px;
  }
}

.echo-reply-to {
  font-style: italic;
  font-size: 0.93em;
  color: #b3b8be;
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.echo-reply-to a {
 font-style: italic;
  font-size: 0.93em;
  color: #b3b8be;
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;

}

.echo-timestamp {
  font-size: 0.93em;
  color: #b3b8be;
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;

}
.echo-timestamp a {
  font-size: 0.93em;
  color: #b3b8be;
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;

}


.tri-sidebar-leftp,
.tri-sidebar-rightp {
  position: sticky;
  top: 60px;                /* same value as your header height */
  max-height: calc(100vh - 60px);
  overflow: auto;           /* if sidebar content is taller than viewport */
}


.tri-sidebar-rightp {
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 60px);
  /* only vertical scrolling, hide horizontal overflow */
  overflow-y: auto;
  overflow-x: hidden;
}


/* 2. Keep sidebars in place */
.tri-sidebar-leftp,
.tri-sidebar-rightp {
  position: sticky;
  top: 60px;                /* same value as your header height */
  max-height: calc(100vh - 60px);
  overflow: auto;           /* if sidebar content is taller than viewport */
}


.tri-sidebar-rightp {
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 60px);
  /* only vertical scrolling, hide horizontal overflow */
  overflow-y: auto;
  overflow-x: hidden;
}



/* hide scrollbar in Firefox */
.tri-sidebar-right {
  scrollbar-width: none;
  -ms-overflow-style: none;  /* IE 10+ */
}

/* hide scrollbar in WebKit (Chrome, Safari) */
.tri-sidebar-right::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.echo-retweet-action {
  position: relative;      /* anchor for the absolute menu */
  overflow: visible;       /* let the popup escape */
}

.retweet-popup {
  display: none;               /* hidden by default */
  position: absolute;          /* positioned relative to .echo-retweet-action */
  top: 24px;                   /* tweak this to sit just under the icon */
  right: 0;                    /* align to the right edge of the icon */
  background: #1e293b;         /* match your dark panel */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  z-index: 1000;               /* float above everything */
  white-space: nowrap;         /* prevent wrapping */
}

.retweet-popup a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;        /* ensure clicks register */
}
.retweet-popup a:hover {
  background: rgba(255,255,255,0.1);
}

.black-main-bg {
 min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    background: linear-gradient(135deg, #181e26 0%, #21242b 60%, #10141a 100%);
    /* Optional: If you want a hint of a subtle pattern, uncomment and adjust the line below */
    /* background: url('/images/black-experience-bg.png') center center/cover no-repeat, linear-gradient(135deg, #181e26 0%, #21242b 60%, #10141a 100%); */
}

.black-profile-bg {
 min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0px 20px;
    background: linear-gradient(135deg, #181e26 0%, #21242b 60%, #10141a 100%);
    /* Optional: If you want a hint of a subtle pattern, uncomment and adjust the line below */
    /* background: url('/images/black-experience-bg.png') center center/cover no-repeat, linear-gradient(135deg, #181e26 0%, #21242b 60%, #10141a 100%); */
}

.create-echo-row .echo-avatar {
    margin-right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    border: 2.5px solid #23272b;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.create-echo-actions i.fa-image {
    font-size: 18px;
    color: #00557d;
    transition: color 0.2s ease-in-out;
}

.create-echo-actions i.fa-image:hover {
    color: #fff;
}

.fa-image {
    font-size: 18px;
    color: #00557d;
    margin-left: 4px;
    transition: color 0.2s ease-in-out;
}
.fa-image:hover {
    color: #005fa3;
}

.fa-film {
    font-size: 18px;
    color: #00557d;
    margin-left: 4px;
    transition: color 0.2s ease-in-out;
}
.fa-film:hover {
    color: #005fa3;
}
.fa-music {
    font-size: 18px;
    color: #00557d;
    margin-left: 4px;
    transition: color 0.2s ease-in-out;
}
.fa-music:hover {
    color: #005fa3;
}
.fa-face-smile {
    font-size: 18px;
    color: #00557d;
    margin-left: 4px;
    transition: color 0.2s ease-in-out;
}
.fa-face-smile:hover {
    color: #005fa3;
}
/* RED EXPERIENCE CSS */

.red-main-bg {
    min-height: 100vh;
    display: flex;
    background: #970000;
}

.red-sidebar-left { border-right: 1px solid rgba(0,0,0,0.06); }
.red-sidebar-right { border-left: 1px solid rgba(0,0,0,0.06); }

.red-content-wrapper {
   flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding-top: 50px;
    padding-bottom: 50px;
}

.red-card {
    width: 100%;
    max-width: 530px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(215,38,56,0.12), 0 1.5px 6px rgba(0,0,0,0.06);
    padding: 36px 32px 30px 32px;
    margin: 0 auto;
}


.red-card h2 {
    margin-top: 0;
    color: #d72638;
    font-weight: bold;
    font-size: 2em;
}

.red-post-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 18px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    padding: 20px;
}

.red-post-author {
    font-size: 1.05em;
    color: #a71627;
    margin-bottom: 12px;
text-decoration: none,
}

.red-post-author-link{
    font-size: 1.05em;
    color: #970000;
    margin-bottom: 12px;
    text-decoration: none,
}

/* Timestamp for posts */
.red-post-timestamp {
    font-size: 0.93em;      /* slightly smaller */
    color: #888;            /* dull medium gray, adjust as needed */
    margin-left: 5px;       /* small spacing after name */
    vertical-align: middle;
    font-weight: normal;
    opacity: 0.86;          /* makes it a bit subtler */
    cursor: help;           /* shows help cursor to hint at tooltip */
    transition: color 0.15s;
}

.red-post-author b {
    font-size: 1.07em;      /* name just slightly bigger */
    color: #970000;         /* dark (adjust for your theme) */
    font-weight: 600;
text-decoration: none;
}

/* Optional: timestamp a little bolder on hover for accessibility */
.red-post-timestamp:hover {
    color: #555;
    opacity: 1;
}

.red-post-media {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
}

.red-post-caption {
    margin-bottom: 10px;
    color: #222;
    font-size: 1.14em;
}


.red-save-action {
    display: flex;
    align-items: center;
}
.red-save-btn {
    color: #888;
    font-size: 1.24em;
    padding: 0 8px;
    transition: color 0.15s;
    text-decoration: none;
}
.red-save-btn:hover,
.red-save-btn.saved {
    color: #d72638;
}
.red-save-btn.saved i {
    font-weight: bold;
}
.red-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
 margin-top: 10px;
}


.red-like-action { }

.red-like-btn {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    padding: 0 5px 0 0;
    color: #000;
    transition: color 0.18s;
    outline: none;
    margin-right: 3px;
    text-decoration: none !important;
}
.red-like-btn.liked,
.red-like-btn:hover {
    color: #d72638;
    text-shadow: 0 2px 6px #ffd2d8;
}
.red-like-btn i.fa-fire {
    color: #111;
    transition: color 0.2s;
}
.red-like-btn.liked i.fa-fire {
    color: red;
}

.red-like-count {
    min-width: 20px;
    display: inline-block;
    color: #222;
    font-weight: 600;
    font-size: 1.08em;
}

.red-feed-hr {
    border: none;
    border-top: 1.5px solid #f7b2bc;
    margin: 28px 0;
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.92;
}

.red-post-comments {
    margin-top: 10px;
    border-top: 1px solid #f7b2bc;
    padding-top: 7px;
}

.red-comments-list {
    margin-bottom: 0;
}

.red-comment-row {
    padding: 2px 0 2px 0;
    font-size: 0.97em;
    color: #363636;
}

.red-view-all-comments {
    display: inline-block;
    background: #fff0f3;
    color: #d72638;
    border: 1px solid #ffd2d8;
    border-radius: 14px;
    padding: 3px 14px 3px 14px;
    font-size: 0.98em;
    font-weight: 500;
    text-decoration: none;
    margin: 4px 0 8px 0;
    cursor: pointer;
    transition: background 0.13s, border 0.13s;
    box-shadow: 0 1px 6px rgba(215,38,56,0.03);
}
.red-view-all-comments:hover,
.red-view-all-comments:focus {
    background: #ffd2d8;
    border-color: #d72638;
    color: #a71627;
    text-decoration: none;
}


.red-comments-footer {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.red-comment-form {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    position: relative;
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 14px 14px;
}

.red-emoji-picker-btn {
    border: none;
    background: none;
    font-size: 1.25em;
    cursor: pointer;
    margin-right: 2px;
    color: #d72638;
    padding: 0 2px 0 0;
    outline: none;
    position: relative;
}

.red-emoji-popover {
    position: absolute;
    left: 0;
    bottom: 120%;
    background: #fff;
    border: 1px solid #f3d3d3;
    border-radius: 12px;
    padding: 5px 8px;
    display: flex;
    gap: 4px;
    box-shadow: 0 3px 18px rgba(0,0,0,0.08);
    z-index: 10;
    min-width: 160px;
    animation: fadeIn 0.14s;
}
.red-emoji-popover span {
    cursor: pointer;
    font-size: 1.17em;
    padding: 4px;
    border-radius: 7px;
    transition: background 0.13s;
}
.red-emoji-popover span:hover {
    background: #f7b2bc;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to   { opacity: 1; transform: none; }
}

.red-comment-input {
    flex: 1;
    border: 1.3px solid #ffd2d8;
    padding: 8px 14px;
    border-radius: 14px;
    background: #fff;
    font-size: 1em;
    outline: none;
    min-width: 120px;
    max-width: 320px;
}

.red-comment-submit {
    background: #d72638;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 13px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    transition: background 0.14s;
}
.red-comment-submit:active,
.red-comment-submit:hover {
    background: #ad1c28;
}

.red-mobile-nav {
    display: none;
}
@media (max-width: 900px) {
    .red-sidebar {
        display: none;
    }
    .red-content-wrapper {
        padding-top: 12vw;
        padding-bottom: 20vw;
    }
    .red-card {
        max-width: 97vw;
        padding: 18px 8px;
        border-radius: 14px;
    }
    .red-mobile-nav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        background: #d72638;
        box-shadow: 0 -1px 10px rgba(0,0,0,0.08);
        justify-content: space-around;
        z-index: 900;
        padding: 0;
    }
    .red-mobile-nav a {
        flex: 1;
        text-align: center;
        color: #fff;
        font-size: 1.22em;
        font-weight: 500;
        padding: 14px 0 12px 0;
        text-decoration: none;
        border-right: 1px solid rgba(255,255,255,0.12);
    }
    .red-mobile-nav a:last-child {
        border-right: none;
    }
}
@media (max-width: 600px) {
    .red-comment-input {
        font-size: 1em;
        padding: 10px 8px;
    }
    .red-comment-submit {
        font-size: 1.13em;
        padding: 0 6px;
    }
}

.red-post-btn {
    display: inline-block;
    background: #d72638;
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
    padding: 10px 24px;
    text-decoration: none;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.red-post-btn:hover {
    background: #ad1c28;
}

/* --- RED SIDEBAR --- */
.red-sidebar {
   background: #970000;
    border-right: 1px solid #ececec;
    min-height: 100vh;
    width: 240px;
    padding: 32px 0 0 0;
    position: sticky;
    top: 0;
    transition: width 0.2s;
    z-index: 10;

}

.red-sidebarr {
   background: #970000;
    min-height: 100vh;
    width: 450px;
    padding: 32px 100px 0 0px;
    position: sticky;
    top: 0;
    transition: width 0.2s;
    z-index: 10;


}

.red-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.red-sidebar-menu li {
    margin-bottom: 6px;
}
.red-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.13s;
}
.red-sidebar-menu a:hover {
    background: #f8ecec;
  color: #d72638;
}
.red-sidebar-menu i {
    font-size: 23px;
    min-width: 28px;
    text-align: center;
}
.sidebar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fd6a6a;
    background: #eee;
    min-width: 30px;
    min-height: 30px;
}
.avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

/* Responsive: Hide text at medium, hide all at small */
@media (max-width: 950px) {
    .red-sidebar {
        width: 60px;
        padding-left: 0;
        padding-right: 0;
    }
    .red-sidebar-menu a {
        gap: 0;
        justify-content: center;
        padding: 12px 0;
    }
    .red-sidebar-menu .link-label {
        display: none;
    }
}

@media (max-width: 950px) {
    .red-sidebarr {
        width: 60px;
        padding-left: 0;
        padding-right: 0;
    }
    .red-sidebarr-menu a {
        gap: 0;
        justify-content: center;
        padding: 12px 0;
    }
    .red-sidebarr-menu .link-label {
        display: none;
    }
}

@media (max-width: 700px) {
    .red-sidebar {
        display: none;
    }
}

@media (max-width: 700px) {
    .red-sidebarr {
        display: none;
    }
}

.red-post-actions-menu-wrap {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    /* parent post card should be position:relative */
}
.red-actions-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    color: #888;
    padding: 6px 8px;
    border-radius: 50%;
    transition: background 0.1s;
}
.red-actions-btn:hover, .red-actions-btn:focus {
    background: #ececec;
    color: #222;
    outline: none;
}

.red-actions-dropdown {
    display: none;
    position: absolute;
    top: 32px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 1.5px 5px rgba(0,0,0,0.03);
    min-width: 130px;
    padding: 8px 0;
    z-index: 100;
    border: 1px solid #eee;
}
.red-actions-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.red-actions-dropdown li {
    margin: 0;
    padding: 0;
}
.red-actions-dropdown a {
    display: block;
    padding: 8px 20px;
    color: #222;
    font-size: 1em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.12s;
}
.red-actions-dropdown a:hover {
    background: #f5f5f5;
    color: #d72638;
}
.red-actions-dropdown .red-save-label.saved {
    color: #d72638;
}
.red-post-card {
    position: relative; /* enable menu positioning */
}

.red-avatar-tiny {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    margin-right: 7px;
    vertical-align: middle;
    background: #eee;
}


.red-avatar-tiny-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    display: inline-block;
    margin-right: 7px;
    vertical-align: middle;
}

/* Red Experience: Flat, clean suggestions */
.red-suggested-header {
    font-size: 1.09em;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    padding: 0 6px 7px 6px;
    margin: 0 0 7px 0;
}
.red-suggested-list {
    list-style: none;
    margin: 0 0px 50px 0;
    padding: 0;
}
.red-suggested-list li {
    display: flex;
    align-items: center;
    padding: 10px 30 30px 10;
    border-bottom: 1px solid #f4c1c1;
    background: #fff;
    transition: background 0.12s;
}
.red-suggested-list li:last-child { border-bottom: none; }
.red-suggested-avatar {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    background: #ffe6e6;
    border: 1px solid #f9d6d6;
}
.red-suggested-info {
    flex: 1;
    min-width: 0;
}
.red-suggested-name {
    color: #1d1d1f;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.red-suggested-username {
    color: #ba1a21;
    font-size: 0.98em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.red-suggested-btn {
    background: none;
    color: #d72638;
    border: 1.5px solid #d72638;
    border-radius: 5px;
    padding: 5px 15px;
    font-size: 0.97em;
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
margin-right: 10px;
    outline: none;
    transition: background 0.15s, color 0.15s;
}
.red-suggested-btn:hover {
    background: #d72638;
    color: #fff;
    border-color: #d72638;
}
@media (max-width: 900px) {
    .red-suggested-header { font-size: 1em; padding-left:2px; }
    .red-suggested-avatar { width: 34px; height: 34px; }
}

.blue-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.blue-sidebar-left,
.blue-sidebar-right {
    width: 220px;
    background: #f0f2f5;
    padding: 15px;
    border-radius: 10px;
}

.blue-main-feed {
    flex: 1;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
}

.feed-post-box textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    margin-bottom: 10px;
}

.feed-post-box button {
    float: right;
}

.feed-post {
    background: #f5f5f5;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
}

/* wrap both buttons */
.profile-follow-btn-fixed .action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* message button */
.profile-message-btn {
  padding: 8px;
  background: #1775ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
Text-decoration: none;
}
.profile-message-btn:hover {
  background: #125cd6;
}

/* message button (same shape/look as profile-follow-btn) */
.red-message-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #9b1c1c;       /* deep red accent */
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
  margin: 8px 0;             /* spacing above/below */
}
.red-message-btn i {
  margin-right: 0;           /* icon only */
}
.red-message-btn:hover {
  background: #7d1515;
}

.hashtag-link {
  color: inherit;        /* match your feed text */
  text-decoration: none; /* no underline */
  cursor: pointer;
}
.hashtag-link:hover {
  text-decoration: underline;
}
