/* Old Forum / Web 2.0 Theme (vBulletin Style) */
:root {
  --primary: #0B198C; /* Classic forum dark blue */
  --primary-light: #5C7099;
  --accent: #22229C; /* Classic link blue */
  --accent-hover: #D14836;
  --bg-main: #E9EAEF; /* Light grey/blue background */
  --bg-surface: #FFFFFF;
  --text-main: #000000;
  --text-heading: #22229C;
  --text-muted: #666666;
  --border-light: #D1D4E0;
  --border-dark: #A9B8C2;
  
  --success: #008000;
  --warning: #FF9900;
  --danger: #FF0000;

  --font-heading: Tahoma, Calibri, Verdana, Geneva, sans-serif;
  --font-body: Tahoma, Calibri, Verdana, Geneva, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.4;
  font-size: 13px; /* Classic small forum text */
}

a {
  text-decoration: none;
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1536px;
  width: 96%;
  margin: 0 auto;
  padding: 0 10px;
}

/* Top Bar */
.top-bar {
  background-color: #0B198C;
  color: #FFFFFF;
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 2px solid #5C7099;
}

.top-bar a {
  color: #FFFFFF;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
}

.top-bar-left, .top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.subscribe-btn {
  background: #E1E4F2;
  color: #0B198C !important;
  padding: 2px 8px;
  border: 1px solid #A9B8C2;
}

/* Main Header */
.main-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 5px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: bold;
}

.logo-migra { color: #0B198C; }
.logo-analytics { color: #5C7099; }

.search-container {
  display: flex;
  border: 1px solid #A9B8C2;
  background: #FFFFFF;
  width: 300px;
}

.search-input {
  flex: 1;
  border: none;
  padding: 5px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
}

.search-btn {
  background: #E1E4F2;
  border: none;
  border-left: 1px solid #A9B8C2;
  padding: 0 10px;
  cursor: pointer;
  font-size: 11px;
}

/* Navigation */
.main-nav {
  background: #5C7099;
  background: linear-gradient(to bottom, #7A8CA8, #5C7099);
  border: 1px solid #4B5C7D;
  margin-top: 5px;
}

.nav-inner {
  display: flex;
  gap: 2px;
}

.nav-inner a {
  color: #FFFFFF;
  font-weight: bold;
  font-size: 12px;
  padding: 8px 15px;
  border-right: 1px solid #4B5C7D;
}

.nav-inner a:hover, .nav-inner a.active {
  background: #4B5C7D;
  text-decoration: none;
}

/* Main Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.layout-grid-3 {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 20px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-widget, .news-widget {
  background: #FFFFFF;
  border: 1px solid #D1D4E0;
}

.filter-widget h3, .news-widget h3 {
  background: #5C7099;
  background: linear-gradient(to bottom, #7A8CA8, #5C7099);
  color: white;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 12px;
  border-bottom: 1px solid #4B5C7D;
  margin: 0;
}

.filter-group {
  padding: 10px;
  border-bottom: 1px solid #E1E4F2;
}

.filter-group h4 {
  font-size: 11px;
  color: #333;
  margin-bottom: 5px;
  font-weight: bold;
}

.filter-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  cursor: pointer;
}

.apply-filters-btn {
  width: 90%;
  margin: 10px 5%;
  background: #E1E4F2;
  border: 1px solid #A9B8C2;
  padding: 4px;
  font-size: 11px;
  cursor: pointer;
}

.apply-filters-btn:hover {
  background: #D1D4E0;
}

.news-list {
  list-style: none;
  padding: 10px;
}

.news-list li {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #D1D4E0;
}

.news-list a {
  font-size: 11px;
}

/* Rating Content */
.rating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #5C7099;
  background: linear-gradient(to bottom, #7A8CA8, #5C7099);
  color: white;
  padding: 6px 10px;
  font-weight: bold;
  border: 1px solid #4B5C7D;
  margin-bottom: 10px;
}

.rating-header h2 {
  font-size: 14px;
  color: white;
  margin: 0;
}

.sort-select {
  font-size: 11px;
  padding: 2px;
  border: 1px solid #A9B8C2;
}

/* Premium Card (Forum Post Style) */
.premium-card {
  background: #FFFFFF;
  border: 1px solid #0B198C;
  display: flex;
  margin-bottom: 10px;
  box-shadow: none;
}

.premium-card.rank-1 {
  border: 2px solid #D14836;
}

.card-left {
  background: #E1E4F2; /* Postbit background */
  width: 150px;
  padding: 10px;
  border-right: 1px solid #0B198C;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rank-number {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.rank-1 .rank-number {
  color: #D14836;
}

.company-logo-placeholder {
  width: 80px;
  height: 80px;
  background: white;
  border: 1px solid #A9B8C2;
  margin-bottom: 5px;
}

.card-main {
  padding: 10px;
  flex: 1;
}

.company-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #E1E4F2;
  padding-bottom: 5px;
}

.company-name {
  font-size: 16px;
  font-weight: bold;
  color: #0B198C;
}

.verified-badge {
  color: #008000;
  font-size: 11px;
  font-weight: bold;
}

.analyst-note {
  font-size: 12px;
  line-height: 1.5;
  color: #333;
}

.card-right {
  width: 150px;
  padding: 10px;
  border-left: 1px solid #D1D4E0;
  background: #F5F6FA;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-score {
  margin-bottom: 10px;
}

.score-circle {
  width: 60px;
  height: 60px;
  background: #FFFFFF;
  border: 2px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-circle.excellent { border-color: #008000; color: #008000; }
.score-circle.good { border-color: #22229C; color: #22229C; }
.score-circle.average { border-color: #FF9900; color: #FF9900; }
.score-circle.danger { border-color: #FF0000; color: #FF0000; }

.score-number {
  font-size: 18px;
  font-weight: bold;
}

.score-text {
  font-size: 9px;
  display: none; /* Hide text to make it look older */
}

.btn-read-review, .btn-visit-site {
  display: block;
  width: 100%;
  text-align: center;
  background: #E1E4F2;
  border: 1px solid #A9B8C2;
  color: #0B198C;
  font-size: 11px;
  padding: 4px;
  text-decoration: none !important;
  margin-bottom: 5px;
}

.btn-read-review:hover, .btn-visit-site:hover {
  background: #D1D4E0;
}

.load-more-btn {
  width: 100%;
  padding: 8px;
  background: #E1E4F2;
  border: 1px solid #A9B8C2;
  color: #0B198C;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  margin-top: 10px;
}

/* Old Forum Footer Styles */
.forum-footer {
  background-color: #E1E4F2;
  border-top: 1px solid #C2C6D4;
  padding: 20px 0 40px;
  font-family: Tahoma, Calibri, Verdana, Geneva, sans-serif;
  font-size: 12px;
  color: #333;
  margin-top: 50px;
}

.forum-stats {
  background: #F5F6FA;
  border: 1px solid #D1D4E0;
  margin-bottom: 20px;
}

.stats-header {
  background: #5C7099;
  background: linear-gradient(to bottom, #7A8CA8, #5C7099);
  color: white;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 12px;
  border-bottom: 1px solid #4B5C7D;
}

.stats-body {
  padding: 10px;
  line-height: 1.5;
}

.stats-body p {
  margin-bottom: 5px;
}

.stats-body a {
  color: #22229C;
  text-decoration: none;
}

.stats-body a:hover {
  text-decoration: underline;
}

.footer-links-row {
  text-align: center;
  margin-bottom: 20px;
  font-size: 11px;
}

.footer-links-row a {
  color: #22229C;
  text-decoration: none;
  margin: 0 5px;
}

.footer-links-row a:hover {
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

/* Utilities */
.hidden { display: none !important; }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #F5F6FA;
  border: 2px solid #0B198C;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  position: absolute;
  opacity: 0;
  display: none;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal h3 {
  background: #5C7099;
  background: linear-gradient(to bottom, #7A8CA8, #5C7099);
  color: white;
  padding: 6px 10px;
  font-size: 14px;
  margin: -20px -20px 15px -20px;
  border-bottom: 1px solid #4B5C7D;
}

.modal-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* Badges */
.badge-danger { background: #FF0000; color: white; padding: 2px 6px; font-size: 10px; font-weight: bold; margin-left: 5px; }
.badge-warning { background: #FF9900; color: white; padding: 2px 6px; font-size: 10px; font-weight: bold; margin-left: 5px; }
.badge-success { background: #008000; color: white; padding: 2px 6px; font-size: 10px; font-weight: bold; margin-left: 5px; }

/* Forum Comments */
.forum-thread { margin-top: 40px; border-top: 2px solid #5C7099; padding-top: 20px; }
.forum-thread-title { font-size: 16px; font-weight: bold; color: #0B198C; margin-bottom: 20px; }
.forum-post { border: 1px solid #A9B8C2; margin-bottom: 15px; background: #FFFFFF; display: flex; }
.post-author-panel { width: 130px; background: #E1E4F2; border-right: 1px solid #A9B8C2; padding: 10px; text-align: center; }
.post-author-name { font-weight: bold; color: #0B198C; font-size: 12px; margin-bottom: 5px; word-break: break-all; }
.post-author-status { font-size: 10px; color: #666; margin-bottom: 5px; }
.post-avatar { width: 60px; height: 60px; background: #FFF; border: 1px solid #A9B8C2; margin: 0 auto 5px; }
.post-content-panel { flex: 1; display: flex; flex-direction: column; }
.post-header { background: #5C7099; background: linear-gradient(to bottom, #7A8CA8, #5C7099); color: white; padding: 4px 10px; font-size: 10px; border-bottom: 1px solid #4B5C7D; display: flex; justify-content: space-between; }
.post-body { padding: 15px; font-size: 13px; line-height: 1.5; color: #333; flex: 1; }
.post-quote { background: #F5F6FA; border: 1px solid #D1D4E0; padding: 10px; margin-bottom: 10px; font-style: italic; color: #666; border-left: 3px solid #5C7099; }
.post-quote strong { color: #0B198C; font-style: normal; display: block; margin-bottom: 5px; font-size: 11px; }
.post-footer { padding: 8px 15px; background: #F5F6FA; border-top: 1px dashed #D1D4E0; text-align: right; }
.post-reply-btn { background: #E1E4F2; border: 1px solid #A9B8C2; padding: 2px 10px; font-size: 11px; cursor: pointer; color: #0B198C; text-decoration: none; display: inline-block; }
.post-reply-btn:hover { background: #D1D4E0; }

/* Forum Category Tables */
.forum-category { width: 100%; border-collapse: collapse; margin-top: 15px; border: 1px solid #0B198C; }
.forum-category th { background: linear-gradient(to bottom, #A9B8C2, #7A8CA8); color: white; padding: 10px; font-size: 13px; text-align: center; border: 1px solid #5C7099; }
.forum-category td { background: #E1E4F2; padding: 10px; font-size: 13px; border: 1px solid #A9B8C2; text-align: center; }

/* Badges */
.badge-danger { background: #FF0000; color: white; padding: 2px 6px; font-size: 10px; font-weight: bold; margin-left: 5px; }
.badge-warning { background: #FF9900; color: white; padding: 2px 6px; font-size: 10px; font-weight: bold; margin-left: 5px; }
.badge-success { background: #008000; color: white; padding: 2px 6px; font-size: 10px; font-weight: bold; margin-left: 5px; }

/* Forum Comments */
.forum-thread { margin-top: 40px; border-top: 2px solid #5C7099; padding-top: 20px; }
.forum-thread-title { font-size: 16px; font-weight: bold; color: #0B198C; margin-bottom: 20px; }
.forum-post { border: 1px solid #A9B8C2; margin-bottom: 15px; background: #FFFFFF; display: flex; }
.post-author-panel { width: 130px; background: #E1E4F2; border-right: 1px solid #A9B8C2; padding: 10px; text-align: center; }
.post-author-name { font-weight: bold; color: #0B198C; font-size: 12px; margin-bottom: 5px; word-break: break-all; }
.post-author-status { font-size: 10px; color: #666; margin-bottom: 5px; }
.post-avatar { width: 60px; height: 60px; background: #FFF; border: 1px solid #A9B8C2; margin: 0 auto 5px; }
.post-content-panel { flex: 1; display: flex; flex-direction: column; }
.post-header { background: #5C7099; background: linear-gradient(to bottom, #7A8CA8, #5C7099); color: white; padding: 4px 10px; font-size: 10px; border-bottom: 1px solid #4B5C7D; display: flex; justify-content: space-between; }
.post-body { padding: 15px; font-size: 13px; line-height: 1.5; color: #333; flex: 1; }
.post-quote { background: #F5F6FA; border: 1px solid #D1D4E0; padding: 10px; margin-bottom: 10px; font-style: italic; color: #666; border-left: 3px solid #5C7099; }
.post-quote strong { color: #0B198C; font-style: normal; display: block; margin-bottom: 5px; font-size: 11px; }
.post-footer { padding: 8px 15px; background: #F5F6FA; border-top: 1px dashed #D1D4E0; text-align: right; }
.post-reply-btn { background: #E1E4F2; border: 1px solid #A9B8C2; padding: 2px 10px; font-size: 11px; cursor: pointer; color: #0B198C; text-decoration: none; display: inline-block; }
.post-reply-btn:hover { background: #D1D4E0; }

/* Forum Category Tables */
.forum-category { width: 100%; border-collapse: collapse; margin-top: 15px; border: 1px solid #0B198C; }
.forum-category th { background: linear-gradient(to bottom, #A9B8C2, #7A8CA8); color: white; padding: 10px; font-size: 13px; text-align: center; border: 1px solid #5C7099; }
.forum-category td { background: #E1E4F2; padding: 10px; font-size: 13px; border: 1px solid #A9B8C2; text-align: center; }
.forum-category td.thread-title { text-align: left; background: #F5F6FA; }
.forum-category td.thread-title a { color: #0B198C; text-decoration: none; font-weight: bold; }
.forum-category td.thread-title a:hover { text-decoration: underline; }
.sticky-icon { color: #FF0000; font-weight: bold; margin-right: 5px; }
.danger-icon { color: #FF0000; font-weight: bold; margin-right: 5px; }
.forum-path { font-size: 13px; font-weight: bold; margin-bottom: 10px; }
.forum-path a { color: #0B198C; text-decoration: none; }

/* Unified Review Styles */
.review-content {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #D1D4E0;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.review-content h1 {
    font-size: 24px;
    color: #0B198C;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}
.review-content h2 {
    font-size: 18px;
    color: #22229C;
    margin: 25px 0 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #E1E4F2;
}
.review-content p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}
.tag-success {
    background: #E6F4EA;
    color: #137333;
    border: 1px solid #CEEAD6;
}
.tag-warning {
    background: #FEF7E0;
    color: #B06000;
    border: 1px solid #FEEFC3;
}
.tag-danger {
    background: #FCE8E6;
    color: #C5221F;
    border: 1px solid #FAD2CF;
}
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}
.pros-cons .pros {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #137333;
}
.pros-cons .cons {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #C5221F;
}
.pros-cons h3 {
    margin-bottom: 15px;
    font-size: 16px;
}
.pros-cons ul {
    list-style-type: disc;
    margin-left: 20px;
}
.pros-cons li {
    margin-bottom: 8px;
}
.btn-primary {
    background: #0B198C;
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
}
.btn-primary:hover {
    background: #22229C;
    text-decoration: none;
}


/* AD WIDGET */
.ad-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.ad-label {
    position: absolute;
    top: 0;
    right: 0;
    background: #cbd5e1;
    color: #475569;
    font-size: 10px;
    padding: 3px 8px;
    border-bottom-left-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ad-content {
    padding: 25px 20px 20px;
}
.ad-content h4 {
    color: #0f172a;
    font-size: 15px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.ad-content p {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}
.ad-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.ad-content ul li {
    font-size: 12px;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}
.ad-content ul li i {
    color: #10b981;
    margin-right: 8px;
}
.ad-btn {
    display: block;
    text-align: center;
    background: #0B198C;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.ad-btn:hover {
    background: #09136e;
}

/* HOT TOPICS WIDGET */
.hot-topics-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    padding: 0;
}
.hot-topics-widget h3 {
    background: #f8fafc;
    padding: 15px 20px;
    margin: 0;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}
.hot-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hot-topics-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.hot-topics-list li:last-child {
    border-bottom: none;
}
.hot-topics-list li a {
    display: block;
    color: #0B198C;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
}
.hot-topics-list li a:hover {
    text-decoration: underline;
}
.topic-meta {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
}
.topic-meta i {
    margin-right: 5px;
}

/* EXPERTS WIDGET */
.experts-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}
.experts-widget h3 {
    background: #f8fafc;
    padding: 15px 20px;
    margin: 0;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}
.expert-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.expert-item:last-child {
    border-bottom: none;
}
.expert-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
}
.expert-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}
.expert-role {
    font-size: 11px;
    color: #64748b;
}
