/* Class and Race Cards */
.class-grid,
.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.class-card,
.race-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #ffd700;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover,
.race-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.class-image,
.race-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 2px solid #ffd700;
}

.class-card h3,
.race-card h3 {
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.class-card p,
.race-card p {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
}

.class-section,
.race-section {
  margin-bottom: 3rem;
}

.class-section h2,
.race-section h2 {
  color: #ffd700;
  text-align: center;
  margin: 2rem 0;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero {
  background: url('/static/images/backgroundbig.png') no-repeat top center;
  background-size: cover;
  color: #fff;
  position: relative;
  z-index: 1;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
  margin-bottom: 2rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.1);
  z-index: -1;
}

/* CP Progress Bar Styles */
.cp-bar-wrapper {
  width: 120px;
  margin: 0 0 0.5em 0;
}
.cp-bar-bg {
  background: #222;
  border-radius: 8px;
  height: 18px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 2px solid #ffd700;
}
.cp-bar-fill {
  background: #ffd700;
  height: 100%;
  border-radius: 8px 0 0 8px;
  transition: width 0.3s;
}
.cp-bar-label {
  text-align: center;
  color: #ffd700;
  font-weight: bold;
  margin-top: 2px;
  font-size: 1em;
}

/* CP Large Text */
.cp-large {
  text-align: center;
  margin: 1em 0 0.5em 0;
}
.cp-value {
  color: #ffd700;
  font-size: 2.2em;
  font-weight: bold;
}
.cp-label {
  color: #ffd700;
  font-size: 1.2em;
  font-weight: normal;
}

/* CP Badge/Pill */
.cp-badge {
  display: inline-block;
  background: #ffd700;
  color: #232323;
  font-weight: bold;
  border-radius: 20px;
  padding: 0.4em 1.2em;
  font-size: 1.1em;
  margin: 0.5em auto 0.5em auto;
  text-align: center;
}

/* CP Icon + Text */
.cp-icon-text {
  text-align: center;
  margin: 0.5em 0 0.5em 0;
}
.cp-icon-text .cp-icon {
  color: #ffd700;
  font-size: 1.5em;
  vertical-align: middle;
  margin-right: 0.2em;
}
.cp-icon-text .cp-value {
  color: #ffd700;
  font-size: 1.5em;
  font-weight: bold;
  vertical-align: middle;
}
.cp-icon-text .cp-label {
  color: #ffd700;
  font-size: 1.1em;
  vertical-align: middle;
}

/* --- General Styles --- */
body {
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

/* Navbar Styles */
.navbar {
  background-color: rgba(0, 0, 0, 0.8) !important;
  border-bottom: 2px solid #ffd700;
  animation: none !important;
}

.navbar-brand {
  color: #ffd700 !important;
  text-decoration: none !important;
  animation: none !important;
  transition: none !important;
}

.nav-link,
.nav-link:hover,
.nav-link:active,
.nav-link:focus,
.dropdown-item,
.dropdown-item:hover {
  color: #ffd700 !important;
  opacity: 0.8;
  transition: none !important;
  transform: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  position: relative;
}

.nav-link:hover,
.dropdown-item:hover {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffd700;
  transition: none !important;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  opacity: 1;
  text-shadow: none;
}

/* Hamburger menu icon color */
.navbar-toggler {
  border-color: #ffd700 !important;
}
.navbar-toggler .navbar-toggler-icon,
.navbar-toggler-icon {
  background-image: none !important;
  width: 1.5em;
  height: 1.5em;
  position: relative;
  display: inline-block;
}
.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after,
.navbar-toggler .navbar-toggler-icon div {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: #ffd700;
  margin: 0.3em 0;
  border-radius: 2px;
}

.collapse {
  transition: none !important;
  animation: none !important;
}

.btn-outline-warning {
  text-decoration: none !important;
  transition: none !important;
  animation: none !important;
}

/* Disable all animations and transitions globally */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  text-decoration: none !important;
}

/* Card Styles */
.card, .card-header, .card-body {
  background: none !important;
  background-color: #2a2a2a !important;
  color: #ffd700 !important;
  border: 1.5px solid #ffd700 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  margin-bottom: 28px;
  padding: 1.2em 1.5em;
}
.card:hover {
  transform: none !important;
  transition: none !important;
}
.card-header {
  background-color: #1a1a1a;
  border-bottom-color: #ffd700;
  font-size: 1.25em;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.card-body {
  font-size: 1.08em;
}
.entry-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 18px !important;
  margin-bottom: 36px;
  padding: 2.2em 2.2em 1.5em 2.2em;
  position: relative;
  overflow: hidden;
}
.entry-card::before {
  display: none !important;
}
.entry-card-header {
  background: transparent !important;
  color: #ffd700 !important;
  font-size: 1.7em;
  font-weight: 900;
  text-align: center;
  border-radius: 14px 14px 0 0;
  margin: -2.2em -2.2em 1.2em -2.2em;
  padding: 1.1em 0.5em 1.1em 0.5em;
  box-shadow: none !important;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  z-index: 1;
  position: relative;
  border: none !important;
}
.entry-card-header img, .entry-card-header svg {
  height: 48px;
  width: 48px;
  margin-right: 0.5em;
  border-radius: 10px;
  background: #111;
  border: 2px solid #333;
}
.entry-card .entry-title {
  color: #ffd700 !important;
  font-size: 1.2em;
  font-weight: 900;
  margin: 0;
  letter-spacing: 0.03em;
}
.entry-card .entry-section {
  color: #ffd700 !important;
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  border-bottom: 2px solid #ffd700;
  display: inline-block;
  padding-bottom: 0.1em;
}
.entry-card .entry-section + div,
.entry-card .entry-section + ul,
.entry-card .entry-section + span {
  color: #fff !important;
}
.entry-card .entry-type, .entry-type {
  color: #fff !important;
  font-weight: 700;
}
.entry-card .card-body, .entry-card .legend, .entry-card .detail-section {
  color: #ffe066 !important;
  font-size: 1.08em;
  line-height: 1.7;
}
.entry-card .entry-list li, .entry-list li {
  color: #fff !important;
}
.entry-card .stat-bar-label, .entry-card .entry-stat {
  color: #ffd700 !important;
  font-weight: 700;
}
.stat-note {
  color: #ffe066 !important;
  font-weight: 400 !important;
}
/* Gold-outlined badge for stats */
.stat-badge {
  display: inline-block;
  border: 1.5px solid #ffd700;
  color: #ffd700;
  background: #222;
  border-radius: 8px;
  padding: 0.2em 0.7em;
  font-size: 1em;
  font-weight: 700;
  margin-right: 0.5em;
  margin-bottom: 0.3em;
}

/* Section Titles */
.section-title, .immortal-title {
  color: #ffd700 !important;
  text-shadow: none !important;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
  font-size: 2.5em;
}

/* Role Badge */
.role-badge {
  background-color: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.9em;
  margin-top: 10px;
  display: inline-block;
  border: 1px solid #ffd700;
  transition: none;
}
.role-badge:hover {
  background-color: rgba(255, 215, 0, 0.3);
}

/* Footer & Social Icons */
.footer {
  background-color: #2a2a2a;
  padding: 20px 0;
  margin-top: 40px;
  color: #ffd700 !important;
  font-size: 1.08em;
}
.social-icons {
  font-size: 1.5em;
}
.social-icons a {
  color: #ffffff;
  margin-left: 15px;
  opacity: 0.8;
  transition: none;
  display: inline-block;
}
.social-icons a:hover {
  color: #ffd700;
  opacity: 1;
  text-shadow: none !important;
}

main {
  flex: 1;
  padding: 48px 0 48px 0;
  background: none !important;
}

/* List Styles */
.list-unstyled li, .entry-list li, .character-stats p, .team-member p {
  color: #ffd700 !important;
  font-size: 1.08em;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
  margin: 10px 0;
  transition: none;
}
.list-unstyled li:hover {
  transform: translateX(5px);
}

/* Connect Button */
.connect-btn {
  background-color: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid #ffd700;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  transition: none;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  animation: none;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.connect-btn:hover {
  background-color: #ffd700 !important;
  color: #000 !important;
}
.connect-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: none;
}

/* General Link Styles */
a {
  color: #ffd700 !important;
  font-weight: 500;
  text-decoration: underline dotted 1.5px;
  text-underline-offset: 2px;
  transition: none;
  position: relative;
}
a:hover {
  color: #fff !important;
  text-decoration: underline solid 2px;
}

/* News & Sidebar */
.news-date {
  color: #ffd700;
  font-weight: bold;
}
.news-title, .sidebar-title {
  color: #ffd700;
  border-bottom: 1px solid #ffd700;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-shadow: none !important;
}

/* Animations */
@keyframes fadeIn { }
@keyframes fadeInUp { }
@keyframes fadeInDown { }
@keyframes glow { }
@keyframes gentleRotate { }

.card { animation: none !important; transition: none !important; }
.social-icons a i { animation: none !important; }
.navbar-brand { animation: none !important; }

/* Hero Section
.hero {
  background-color: #2a2a2a;
  padding: 60px 0;
  margin-bottom: 40px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: -1;
}
.hero-title {
  font-size: 2.5em;
  color: #ffd700;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1.2em;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto;
} */

/* Table Styles */
.table, .table th, .table td {
  background-color: #2a2a2a;
  color: #ffffff;
  border-color: #444444;
  font-size: 1.08em;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #333333;
}
.table-striped > tbody > tr:nth-of-type(even) {
  background-color: #2a2a2a;
}
.table th {
  background-color: #1a1a1a;
  color: #ffd700;
  border-color: #444444;
}
.table td {
  border-color: #444444;
}
.table-responsive {
  border-radius: 8px;
  box-shadow: none !important;
}

/* Miscellaneous */
.team-member {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #ffd700;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}
.team-member h5 {
  color: #ffd700;
  margin-bottom: 10px;
}
.team-member p {
  color: #e0e0e0;
  margin-bottom: 0;
}
.character-stats p {
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}
.character-stats strong {
  color: #ffd700;
}
.btn-outline-light, .connect-btn {
  border-color: #ffd700 !important;
  color: #ffd700 !important;
  background: none !important;
}
.btn-outline-light:hover, .connect-btn:hover {
  background-color: #ffd700 !important;
  color: #000 !important;
}

/* Remove any other color overrides */
.card-body, .card-header, .news-title, .sidebar-title, .role-badge, .news-date, .team-member h5, .character-stats strong {
  color: #ffd700 !important;
}

/* Remove box shadows and text shadows */
*, *::before, *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Add more as needed from other pages */

/* Progress Bar (Stat Bar) - grey background for contrast */
.progress.stat-bar {
  background: #444;
  border-radius: 12px;
  height: 22px;
  border: 1.5px solid #ffd700;
  margin: 0 0 1em 0.5em;
  max-width: 220px;
  width: 50%;
  box-shadow: none;
  display: block;
  overflow: hidden;
}
.progress-bar.cp-bar {
  background: linear-gradient(90deg, #ffd700 0%, #ffe066 100%);
  color: #000;
  font-weight: bold;
  font-size: 1em;
  border-radius: 12px;
  box-shadow: none;
  text-align: left;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.progress-bar.cp-bar.high-value {
  background: linear-gradient(90deg, #00ff00 0%, #ffd700 100%) !important;
  color: #000 !important;
  border: 2px solid #00ff00 !important;
}

/* Entry Card Titles and Sections */
.entry-title {
  font-size: 1.5em;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 0.4em;
  letter-spacing: 0.02em;
}
.entry-section {
  font-size: 1.15em;
  font-weight: 700;
  color: #ffd700;
  margin-top: 1.1em;
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
}
.stat-bar-label {
  color: #fff !important;
  font-weight: 700;
  text-align: left;
  display: block;
  margin: 1.2em 0 0.3em 0.5em;
  font-size: 1.08em;
  letter-spacing: 0.01em;
}
.entry-stat, .stat-note {
  font-weight: 700;
  color: #ffd700;
}

/* Add more spacing for readability */
.entry-list li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}
.card-body, .legend, .detail-section {
  font-size: 1.08em;
  line-height: 1.7;
}

/* Improve readability for normal text in info panels */
.card-body, .legend, .detail-section {
  color: #ffe066 !important;
}
.entry-list li {
  color: #fff !important;
}

/* Keep key text gold */
.entry-title, .entry-section, .stat-bar-label, .entry-stat, .stat-note {
  color: #ffd700 !important;
}

/* Type Badge for Entry Cards */
.type-badge {
  display: inline-block;
  background: #222;
  color: #fff;
  border: 1.5px solid #ffd700;
  border-radius: 999px;
  padding: 0.2em 1em;
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  vertical-align: middle;
}
.type-badge i, .type-badge svg {
  margin-right: 0.5em;
  vertical-align: middle;
}

.entry-card .description p, .entry-content > p {
  color: #fff !important;
}

/* CP Bar Row: bar and total on same line */
.cp-bar-row {
  display: flex;
  align-items: center;
  margin-left: 0.5em;
  margin-bottom: 1em;
  max-width: 260px;
}
.cp-bar-row .progress.stat-bar {
  margin: 0;
  flex: 1 1 auto;
}
.cp-total {
  color: #fff;
  font-weight: 800;
  font-size: 1.08em;
  margin-left: 0.75em;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* CP Bar Title */
.cp-bar-title {
  font-weight: 800;
  color: #ffd700;
  font-size: 1.08em;
  margin-bottom: 0.2em;
  margin-left: 0.5em;
  letter-spacing: 0.01em;
  text-align: left;
}

.entry-divider {
  border: none;
  border-top: 2px solid #ffd700;
  border-radius: 2px;
  margin: 2em 0;
  background: none;
  width: 100%;
}

.entry-divider-img {
  display: block;
  margin: 1.2em 0 1.2em 0.5em;
  max-width: 220px;
  width: 100%;
  height: auto;
  background: none;
  filter: none;
  text-align: left;
}

/* KAL and RP Bar Styles */
.stat-bar {
  width: 50% !important;
  height: 1.2em;
  background-color: #333;
  border: 1px solid #ffd700;
  margin-bottom: 0.5em;
}

.progress-bar.cp-bar {
  background-color: #ffd700;
  color: #000;
  font-weight: bold;
  text-align: right;
  padding-right: 0.5em;
  line-height: 1.2em;
}

/* Green glow effect for high values */
.progress-bar.cp-bar.high-value {
  background: linear-gradient(90deg, #00ff00 0%, #ffd700 100%) !important;
  color: #000 !important;
  border: 2px solid #00ff00 !important;
}

.cp-bar-row {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 0.5em;
}

.cp-bar-title {
  font-weight: bold;
  margin-bottom: 0.3em;
  color: #ffd700;
}

.cp-total {
  font-weight: bold;
  color: #ffd700;
}

.kal-desc, .rp-desc {
  font-size: 0.85em;
  color: #ffd700;
  margin-bottom: 0.7em;
  margin-left: 0.5em;
}
.kal-desc .desc-text, .rp-desc .desc-text {
  color: #fff;
  font-weight: 400;
}

/* Dial Progress Indicators */
.dial-border-group {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: #111;
  border-radius: 12px;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.dial-wrapper {
  width: 100px;
  text-align: center;
}
.dial {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}
.dial-border {
  stroke: #ffd700;
  stroke-width: 2;
  fill: none;
}
.dial-inner-border {
  stroke: #ffd700;
  stroke-width: 3;
  fill: none;
}
.dial-bg {
  fill: none;
  stroke: #222;
  stroke-width: 3.8;
}
.dial-value {
  fill: none;
  stroke: #ffcc00;
  stroke-width: 3.8;
  stroke-linecap: round;
}
.dial-value.high {
  stroke: #00ff66;
  /* filter: drop-shadow(0 0 5px #00ff66); */
}
.dial-text {
  fill: #ffcc00;
  font-size: 0.45rem;
  text-anchor: middle;
  transform: rotate(90deg);
  transform-origin: center;
}
.dial-label {
  margin-top: 0.5rem;
}

.legend-compact {
  max-width: 900px;
  font-size: 0.98em;
}

.dial-border-test {
  border: 2px solid #ffd700;
  border-radius: 16px;
  padding: 0.7em 0.5em 0.3em 0.5em;
  margin-bottom: 1em;
  background: #111;
  display: inline-block;
  overflow: hidden;
}

.section {
  margin-bottom: 40px;
}

.section h2 {
  color: #ffd700;
  margin-bottom: 20px;
}

.text-warning {
  color: #ffd700 !important;
}

.dropdown-menu {
  background-color: #2a2a2a;
  border-color: #444444;
}

.dropdown-item {
  color: #ffffff;
}

.dropdown-item:hover {
  background-color: #333333;
  color: #ffd700;
}

code {
  background-color: #333333;
  color: #ffd700;
  padding: 2px 5px;
  border-radius: 3px;
}

pre {
  background-color: #1a1a1a;
  color: #ffd700;
  border: 1px solid #ffd700;
  border-radius: 6px;
  padding: 1em;
  font-size: 1em;
  margin-bottom: 1.5em;
}

.text-light { color: #fff !important; }
.border-warning { border-color: #ffd700 !important; }

.hero-title {
  font-size: 2.5em;
  color: #ffd700;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.65);
  padding: 0.25em 1em;
  border-radius: 0.5em;
  text-shadow: none;
}
.hero-desc {
  font-size: 1.2em;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0,0,0,0.55);
  padding: 0.25em 1em;
  border-radius: 0.5em;
  text-shadow: none;
}

/* Changelog styles for changes.html */
.changelog-entry {
  background: #232323;
  border: 1.5px solid #ffd700;
  border-radius: 10px;
  margin-bottom: 2em;
  padding: 2em 2.5em;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  word-break: break-word;
  font-size: 1.15em;
  line-height: 1.7;
}
.changelog-entry h3 {
  color: #ffd700;
  margin-bottom: 0.5em;
  font-size: 1.5em;
  font-weight: bold;
}
.changelog-date {
  color: #ffe066;
  font-size: 1.1em;
  margin-bottom: 0.3em;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.changelog-entry a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: 500;
}
.changelog-entry ul, .changelog-entry ol {
  margin-left: 2em;
  margin-bottom: 1em;
  font-size: 1em;
}
.changelog-entry p {
  margin-bottom: 0.7em;
  color: #fff;
  font-size: 1.08em;
}
.changelog-entry code, .changelog-entry pre {
  background: #181818;
  color: #ffe066;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.98em;
}
.changelog-section-title {
  color: #ffd700;
  font-size: 2em;
  margin: 1.5em 0 0.7em 0;
  font-weight: bold;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 0.2em;
}
@media (max-width: 700px) {
  .changelog-entry {
    padding: 1em 0.7em;
    font-size: 1em;
  }
  .changelog-section-title {
    font-size: 1.2em;
  }
}
.card-body .btn-warning {
  color: #000 !important;
}