/* ==========================================================================
   Odyssey Roleplay - Showthread & Postbit Modern Gaming Theme
   ========================================================================== */

/* Thread Action Bar */
.thread_action_bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

/* Primary New Reply Button */
.new_reply_button {
	background: linear-gradient(135deg, #e50914 0%, #b20710 100%) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	padding: 10px 22px !important;
	border-radius: 8px !important;
	border: none !important;
	box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4) !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	transition: all 0.2s ease !important;
	font-size: 13px !important;
}

.new_reply_button:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6) !important;
	background: linear-gradient(135deg, #ff1a26 0%, #d40813 100%) !important;
	color: #ffffff !important;
}

/* Thread Header Banner */
.thread_header_banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	background: linear-gradient(135deg, rgba(24, 24, 32, 0.95) 0%, rgba(14, 14, 18, 0.98) 100%);
	border: 1px solid rgba(229, 9, 20, 0.35);
	border-radius: 12px;
	padding: 16px 22px;
	margin-bottom: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

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

.thread_title_icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(229, 9, 20, 0.15);
	border: 1px solid rgba(229, 9, 20, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.thread_title_text {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #ffffff;
	margin: 0;
	line-height: 1.2;
}

.thread_mode_pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.thread_mode_pill:hover {
	background: rgba(229, 9, 20, 0.2);
	border-color: rgba(229, 9, 20, 0.45);
	color: #ffffff;
}

/* ==========================================================================
   Post Cards (Classic Vertical & Horizontal)
   ========================================================================== */
.post.classic {
	display: flex;
	flex-wrap: wrap;
	background: #101016 !important;
	border: 1px solid rgba(255, 255, 255, 0.07) !important;
	border-radius: 12px !important;
	margin-bottom: 22px !important;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	transition: border-color 0.25s ease;
}

.post.classic:hover {
	border-color: rgba(229, 9, 20, 0.35) !important;
}

/* Author Sidebar */
.post.classic .post_author {
	width: 230px !important;
	flex-shrink: 0;
	background: #0b0b10 !important;
	border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
	padding: 22px 18px !important;
	text-align: center;
	box-sizing: border-box;
}

/* Avatar Frame */
.post.classic .author_avatar {
	margin-bottom: 12px;
	display: inline-block;
}

.post.classic .author_avatar img {
	width: 96px !important;
	height: 96px !important;
	object-fit: cover;
	border-radius: 14px !important;
	border: 2px solid rgba(229, 9, 20, 0.45) !important;
	box-shadow: 0 0 16px rgba(229, 9, 20, 0.25);
	transition: all 0.3s ease;
	display: block;
	margin: 0 auto;
}

.post.classic .author_avatar img:hover {
	border-color: #e50914 !important;
	box-shadow: 0 0 24px rgba(229, 9, 20, 0.5);
	transform: scale(1.03);
}

/* Author Information */
.post.classic .author_information {
	margin-bottom: 14px;
	text-align: center;
}

.post.classic .author_information .largetext {
	font-size: 17px !important;
	font-weight: 800 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #ffffff !important;
}

.post.classic .author_information .largetext a {
	color: #ffffff !important;
	text-decoration: none !important;
}

.post.classic .author_information .smalltext {
	display: block;
	color: #9ca3af !important;
	font-size: 12px !important;
	margin-top: 6px;
	line-height: 1.5;
}

/* Online status badges */
.user_status_badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 6px;
	vertical-align: middle;
}

.user_status_badge.online {
	background: rgba(16, 185, 129, 0.15);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.35);
}

.user_status_badge.online .status_dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 8px #10b981;
	display: inline-block;
}

.user_status_badge.offline {
	background: rgba(156, 163, 175, 0.12);
	color: #9ca3af;
	border: 1px solid rgba(156, 163, 175, 0.25);
}

.user_status_badge.offline .status_dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #6b7280;
	display: inline-block;
}

/* Author Statistics Box */
.author_stats_list {
	background: rgba(255, 255, 255, 0.02) !important;
	border: 1px solid rgba(255, 255, 255, 0.05) !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
	text-align: left;
	font-size: 12px !important;
	color: #9ca3af !important;
}

.author_stat_row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.author_stat_row:last-child {
	border-bottom: none;
}

.author_stat_row .stat_label {
	color: #9ca3af;
	font-size: 11.5px;
}

.author_stat_row .stat_num {
	color: #f3f4f6;
	font-weight: 700;
	font-size: 12px;
}

/* Post Content Area */
.post.classic .post_content {
	flex: 1 1 500px;
	min-width: 0;
	padding: 20px 26px !important;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
}

/* Post Head (Date & #1 number) */
.post_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding-bottom: 12px;
	margin-bottom: 16px;
}

.post_date {
	color: #9ca3af !important;
	font-size: 12.5px !important;
	display: flex;
	align-items: center;
	gap: 6px;
}

.postbit_posturl a {
	background: rgba(229, 9, 20, 0.15) !important;
	color: #ff4d58 !important;
	border: 1px solid rgba(229, 9, 20, 0.35) !important;
	padding: 3px 10px !important;
	border-radius: 6px !important;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
}

.postbit_posturl a:hover {
	background: #e50914 !important;
	color: #ffffff !important;
	box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

/* Post Body */
.post_body {
	font-size: 15px !important;
	line-height: 1.75 !important;
	color: #e5e7eb !important;
	word-wrap: break-word;
	flex-grow: 1;
	min-height: 80px;
}

/* Post Controls Bar (Action Buttons) */
.post_controls {
	width: 100% !important;
	background: #09090d !important;
	border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	padding: 12px 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	box-sizing: border-box;
}

.postbit_buttons {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	flex-wrap: wrap !important;
}

.postbit_buttons a {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 6px 14px !important;
	background: rgba(255, 255, 255, 0.035) !important;
	border: 1px solid rgba(255, 255, 255, 0.09) !important;
	border-radius: 6px !important;
	color: #cbd5e1 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
}

.postbit_buttons a:hover {
	background: rgba(229, 9, 20, 0.2) !important;
	border-color: rgba(229, 9, 20, 0.55) !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3) !important;
}

/* Specific button icons via SVG */
.postbit_quote::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e50914' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'/%3E%3C/svg%3E");
}

.postbit_multiquote::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4v16m8-8H4'/%3E%3C/svg%3E");
}

.postbit_edit::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fbbf24' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E");
}

.postbit_qdelete::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'/%3E%3C/svg%3E");
}

.postbit_report::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f97316' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/%3E%3C/svg%3E");
}

.postbit_pm::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.postbit_find::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a855f7' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
}

.postbit_reputation_add::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23eab308' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.postbit_quote {
	background: rgba(229, 9, 20, 0.16) !important;
	border-color: rgba(229, 9, 20, 0.45) !important;
	color: #ff4d58 !important;
}

.postbit_quote:hover {
	background: #e50914 !important;
	border-color: #ff1a26 !important;
	color: #ffffff !important;
}

/* Quick Reply Form */
#quick_reply_form {
	margin-top: 24px !important;
}

#quick_reply_form .tborder {
	border-radius: 12px !important;
	overflow: hidden !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#quick_reply_form .thead {
	padding: 12px 18px !important;
}

#quick_reply_form textarea {
	width: 100% !important;
	box-sizing: border-box !important;
	background: #0d0d13 !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 10px !important;
	padding: 14px !important;
	color: #e5e7eb !important;
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	outline: none !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
}

#quick_reply_form textarea:focus {
	border-color: #e50914 !important;
	box-shadow: 0 0 15px rgba(229, 9, 20, 0.3) !important;
}

/* Star ratings modern gold glow */
.star_rating, .star_rating li a:hover, .star_rating .current_rating {
	background-image: url(../../../images/star_rating.png);
}

/* Extra postbit and quickreply polish */
.postbit_qrestore::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'/%3E%3C/svg%3E");
}

.postbit_qrestore {
	border-color: rgba(16, 185, 129, 0.3) !important;
	color: #6ee7b7 !important;
}

.postbit_qrestore:hover {
	background: rgba(16, 185, 129, 0.2) !important;
	border-color: #10b981 !important;
	color: #ffffff !important;
}

#quickreply_spinner {
	display: none !important;
}

.inline_rating strong {
	color: #9ca3af;
	font-size: 12px;
}

.thread_rating_box {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	padding: 6px 14px;
	border-radius: 8px;
}

/* ==========================================================================
   Showthread Mobile Responsive Fixes (<= 820px)
   ========================================================================== */
@media (max-width: 820px) {
  .post.classic {
    flex-direction: column !important;
  }

  .post.classic .post_author {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .post.classic .author_avatar {
    margin-bottom: 0 !important;
    display: block !important;
  }

  .post.classic .author_avatar img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 10px !important;
    margin: 0 !important;
  }

  .post.classic .author_information {
    text-align: left !important;
    margin-bottom: 0 !important;
    flex: 1 1 200px !important;
  }

  .post.classic .author_information .largetext {
    justify-content: flex-start !important;
  }

  .post.classic .author_statistics {
    width: 100% !important;
    margin-top: 8px !important;
  }

  .post.classic .author_stats_list {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 12px !important;
    box-sizing: border-box !important;
  }

  .post.classic .post_content {
    width: 100% !important;
    padding: 16px 14px !important;
    box-sizing: border-box !important;
  }

  .post_controls {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .postbit_buttons {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .postbit_buttons a {
    flex: 1 1 45% !important;
    justify-content: center !important;
    padding: 9px 10px !important;
    font-size: 11.5px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  #quick_reply_form .trow1 > div {
    flex-direction: column !important;
    gap: 14px !important;
  }

  #quick_reply_form .trow1 > div > div:last-child {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 520px) {
  .post.classic .author_stats_list {
    grid-template-columns: 1fr !important;
  }

  .postbit_buttons a {
    flex: 1 1 100% !important;
  }
}