/* -------------------------
   Forum Post Styles
------------------------- */
.bka{
	background-color: #e0efff;
	border-radius: 15px;
}

.fBodyA {
  font-size: 16px;
  padding: 4px 10px 4px 10px;
  word-break: break-word;
}

.fBodyPinnedA {
  font-size: 16px;
  padding: 4px 10px 4px 10px;
}

.fBodyPinnedC {
  font-size: 14px;
  padding: 4px 10px 4px 10px;
}

.fBodyC {
  font-size: 14px;
  padding: 4px 10px 4px 10px;
  word-break: break-word;
}

.fHeadA {
  padding: 0 10px 0 10px;
  border-radius: 10px;
  border: 1px lightblue solid;
  background-color: #6495ED;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  color: #fff;
}

.fHeadB {
  padding: 0 10px 0 10px;
  border-radius: 10px;
  border: 1px lightblue solid;
  background-color: #6495ED;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #fff;
}

.fchunk {
  border-radius: 10px;
  padding: 10px;
  background-color: white;
  border: 1px lightblue solid;
  display: flex;
  align-items: center;
}

.fchunk:hover {
  border: 1px blue solid;
  background-color: #ffffef;
}

 /* Forum Head */
.fchunkPinned {
  border-radius: 10px;
  padding: 10px;
  background-color: #fbff91;
  border: 1px lightblue solid;
  display: flex;
  align-items: center;
}

.fchunkPinned:hover {
  background-color: #fbff61;
  border: 1px blue solid;
}

.topicLogoContainer {
  position: relative;
}

.topicLogo {
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

 /* Forum Body */
.txtAlignLeftPinned {
    text-align: center;
}

.txtAlignCenter {
    text-align: center;
}

.cellPadding {
  padding-left: 10px;
  font-size: 14px;
}

.title-description {
	text-align: center;
}

.post-list {
  list-style: none;       /* remove default bullets */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;              /* spacing between posts */
}

.post-item {
  display: flex;
  flex-wrap: wrap;           /* allow stacking on small screens */
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* subtle card shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sidebar / left column */
.post-left {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* align to top */
  border-right: 1px solid #eee;
  padding: 15px;
  text-align: center;
  gap: 10px;
  background-color: #D6EEEB;
  border-radius: 12px 0 0 12px;
}

/* Profile picture */
.post-left .profile-pic img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-left .profile-pic img:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Username and role */
.post-left .username {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 1em;
}

.post-left .user-rank {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 10px;
}

/* Stats */
.post-left .stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 180px;
  font-size: 0.85em;
}

/* Right / content column */
.post-right {
  flex: 1;
  min-width: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-x: auto;
}

.post-right .post-meta {
  display: flex;
  align-items: center;   /* vertically centers all children */
  justify-content: space-between; /* optional: spreads meta info and buttons */
  font-size: 0.85em;
  color: #888;
  margin-bottom: 12px;
  background-color: #D6EEEB;
  padding: 5px 10px;
  border-radius: 6px;
  gap: 8px; /* optional spacing between badges/buttons */
}

.post-right .post-content {
  font-size: 1em;
  line-height: 1.6;
  word-wrap: break-word;
}

/* Base badge */
.post-left .badge {
  display: flex;
  align-items: center;       /* vertically center icon + text */
  justify-content: flex-start; /* align items to the left */
  padding-left: 10px;        /* padding from left edge */
  gap: 6px;                  /* space between icon and text */
  width: 140px;
  height: 36px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Animated gradient for roles */
/* Base gradient for roles */
.badge.adminStyle {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #000000, #000000, #ff416c, #ff416c, #ff4b2b);
}

.badge.modStyle {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #000000, #000000, #28a745, #28a745, #218838);
}

.badge.memberStyle {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #000000, #000000, #007bff, #007bff, #0056b3);
}

/* Shine overlay */
.badge::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: all 0.3s ease;
  pointer-events: none;
}

.badge:hover::after {
  animation: shineMove 1s forwards;
}

@keyframes shineMove {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* Hover effect: lift + glow */
.badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35), 0 0 10px rgba(255,255,255,0.3);
  filter: brightness(1.1);
}

/* Icon spacing */
.post-left .badge i {
  margin-right: 8px;  /* space between icon and text */
  font-size: 1em;
  padding-left: 0;    /* already using badge padding-left */
}

/* Container */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 0;
}

/* Each item */
.breadcrumb-item {
    display: flex;
    align-items: center;
    position: relative;
}

/* Glossy pill links */
.breadcrumb-item a {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden; /* Shine effect */
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    background: linear-gradient(135deg, #0056b3, #004080);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

/* Shine sweep */
.breadcrumb-item a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.5) 0%,
        rgba(255,255,255,0.2) 60%,
        transparent 100%
    );
    transform: skewX(-25deg);
}

.breadcrumb-item a:hover::after {
    animation: shine 0.8s ease forwards;
}

@keyframes shine {
    from { left: -75%; }
    to { left: 125%; }
}

/* Gradient arrows */
.breadcrumb-item + .breadcrumb-item::before {
    content: "➔";
    margin: 0 8px;
    font-size: 0.9em;
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Active pill (last item) */
.breadcrumb-item.active {
    padding: 8px 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f1f1f1, #dcdcdc);
    color: #444;
    font-weight: bold;
    text-shadow: none;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
    pointer-events: none;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

/* -----------------------------------------
   Forum Buttons (prefix: fm)
----------------------------------------- */

/* Base button styles + shine effect */
.fm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    margin: 5px;
    line-height: 1.2;
}

/* Allow <a> to look like a button */
a.fm-btn {
    text-decoration: none;
    display: inline-flex;
}

/* Icon inside button */
.fm-btn i {
    font-size: 1em;
}

/* Shine effect */
.fm-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.1) 60%,
        transparent 100%
    );
    transform: skewX(-25deg);
}
.fm-btn:hover::after { animation: fm-shine 0.8s ease forwards; }
@keyframes fm-shine {
    from { left: -75%; }
    to { left: 125%; }
}

/* Hover/active */
.fm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.fm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Focus */
.fm-btn:focus {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}

/* Disabled state */
.fm-btn:disabled,
.fm-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Color classes */
.fm-reply      { background: #007bff; } /* Blue */
.fm-edit       { background: #28a745; } /* Green */
.fm-delete     { background: #dc3545; } /* Red */
.fm-quote      { background: #17a2b8; } /* Teal */
.fm-report     { background: #ffc107; color: #000; } /* Yellow/black */
.fm-vote-up    { background: #00c851; } /* Bright green */
.fm-vote-down  { background: #ff3547; } /* Bright red */
.fm-pin        { background: #ff8800; } /* Orange */
.fm-unpin      { background: #6c757d; } /* Gray */
.fm-new-thread { background: #0069d9; } /* Dark blue */
.fm-lock       { background: #343a40; } /* Dark gray */
.fm-unlock     { background: #28a745; } /* Green */
.fm-subscribe  { background: #6610f2; } /* Purple */
.fm-unsubscribe{ background: #6c757d; } /* Gray */
.fm-ban        { background: #dc3545; } /* Red */
.fm-unban      { background: #28a745; } /* Green */
.fm-warn       { background: #ffc107; color: #000; } /* Yellow/black */
.fm-profile    { background: #17a2b8; } /* Teal */
.fm-back       { background: #007bff; } /* Blue */
.fm-scroll     { background: #6c757d; } /* Gray */
.fm-print      { background: #343a40; } /* Dark gray */
.fm-message    { background: #6610f2; color: #fff !important; } /* Purple */
.fm-primary    { background: #007bff !important; }
.fm-save       { background: #007bff; } /* Blue */
.fm-submit     { background: #007bff; } /* Blue */
.fm-cancel     { background: #ff8800; } /* Orange */

/* Mini buttons (icon-only) */
.fm-btn-mini {
    padding: 6px 10px;
    font-size: 0.8em;
    border-radius: 50%;
}
.fm-btn-mini[class*="fm-"] {
    color: #fff;
    width: 32px;
    height: 32px;
    justify-content: center;
    gap: 0;
}

/* Size variants */
.fm-btn-sm {
    padding: 6px 12px;
    font-size: 0.8em;
    border-radius: 20px;
}
.fm-btn-lg {
    padding: 12px 24px;
    font-size: 1.1em;
    border-radius: 35px;
}

#postContent {
  position: absolute !important;
  left: -9999px !important;
  visibility: hidden !important;
}

.fm-badge {
    color: #fff;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 0.85rem;
}

.fm-badge.sticky {
	background-color: #f0ad4e;
}

.fm-badge.announcement {
	background-color: #0c8070;
}

.fm-badge.global {
	background-color: #17a2b8;
}

.fm-badge.thread-locked, .fm-badge.category-locked {
	background-color: #3c3c3c;
}

/* ============================
   Report Modal Styling
   ============================ */
#reportModal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.fm-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    margin: 8% auto;
    padding: 20px 25px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    animation: fm-fadeIn 0.3s ease;
}

.fm-modal-content h2 {
    margin-top: 0;
    font-size: 1.4em;
    color: #333;
    text-align: center;
}

.fm-modal-close {
    position: absolute;
    top: 12px; right: 15px;
    font-size: 1.2em;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}
.fm-modal-close:hover { color: #000; }

/* Inputs & textarea */
#reportForm input[type="text"],
#reportForm textarea,
#reportForm select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95em;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#reportForm textarea {
    min-height: 100px;
}

#reportForm input:focus,
#reportForm textarea:focus,
#reportForm select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
    outline: none;
}

/* Buttons inside modal */
#reportForm .fm-btn {
    width: 100%;
    justify-content: center;
}

.fm-report-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    display: none;
}
.fm-report-message.success { background-color: #d4edda; color: #155724; }
.fm-report-message.error   { background-color: #f8d7da; color: #721c24; }

.pageDesc {
  font-size: 1.125rem;
  text-align: center;
}

/* Modal backdrop */
.mini-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

/* Centered box */
.mini-modal-content {
  background: #fff;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-left: 10px solid #28a745;
  padding: 20px;
  width: 320px;
  margin: 15% auto;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Centered box */
.mini-err-modal-content {
  background: #fff;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-left: 10px solid red;
  padding: 20px;
  width: 320px;
  margin: 15% auto;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Close button */
.mini-modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 20px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.mini-modal-close:hover {
  color: #000;
}
.fm-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(0,0,0,0.4);
}

.fm-modal-content {
    background: #fff;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 6px solid #28a745;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    margin: 80px auto; /* center with some top margin */
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
}

.tox-tinymce-aux {
    z-index: 100002 !important;
}
.post-edited {
    font-size: 0.85em;
    color: #666;
    margin-left: 5px;
    font-style: italic;
}

.inline-form select {
  margin: 0 !important;
  margin-top: 6px !important;
}

/* -------------------------
   Tablet / small screens
------------------------- */
@media (max-width: 811px) {
  .post-left {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #eee;
    border-radius: 12px 12px 0 0;
    padding-bottom: 10px;
  }

  .post-right {
	flex: 1 1 auto;
    padding-left: 0;
  }
}

@media screen and (max-width:768px) {
 /* Forum Body */
  .txtAlignLeftPinned {
    text-align: left;
	padding-left: 10px;
  }

  .txtAlignCenter {
    text-align: left;
	padding-left: 10px;
  }
  
  .fchunk {
    display: inline;
  }
  
.fchunkPinned {
    display: inline;
  }
}

/* -------------------------
   Phones / very small screens
------------------------- */
@media (max-width: 480px) {
  .post-left .profile-pic img {
    width: 70px;
    height: 70px;
  }

  .post-left .username {
    font-size: 0.9em;
  }

  .post-left .user-rank {
    font-size: 0.8em;
  }

  .post-left .stats {
    font-size: 0.8em;
  }

  .post-right .post-meta {
    font-size: 0.8em;
    padding: 4px 8px;
  }

  .post-right .post-content {
    font-size: 0.9em;
  }
}