/* Define color variables */
:root {
  /* EVE theme palette — single source of truth for the dark UI.
     Loaded site-wide via styles.css, so every page/component can use these. */
  --eve-bg: #0a1214;            /* page background (darkest) */
  --eve-panel: #111b1d;         /* panel / card background */
  --eve-panel-alt: #0e1a1d;     /* inset / feature background */
  --eve-border: #1e2e31;        /* panel borders & dividers */
  --eve-accent: #6a9fa4;        /* bright teal accent (titles, corners) */
  --eve-accent-dim: #4e7a80;    /* muted teal accent (borders, links) */
  --eve-btn-bg: #1e4a52;        /* primary button background */
  --eve-text: #c8d0cf;          /* primary light text / headings */
  --eve-text-bright: #c8e8ea;   /* emphasis / hover text */
  --eve-text-dim: #8fa8ab;      /* secondary text */
  --eve-text-muted: #6a8c90;    /* tertiary / subtitle text */
  --eve-text-body: #a6aaa9;     /* body copy grey */
  --eve-gold: #c8973a;          /* amber accent (links, flash) */

  /* Legacy aliases kept for older notification/card components. */
  --background-color: #0d1517;
  --text-color: #fff;
  --card-background-color: var(--eve-panel);
  --border-color: var(--eve-border);
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --hover-color: #555;
}

.footer {
  width: 100%;
  min-height: 60px;
  /* Replace 'height' with 'min-height' */
  background-color: #101010;
  color: #8f8f89;
  text-align: center;
  padding: 20px;
  /* Adjust padding as needed */
  box-sizing: border-box;
  /* Ensure padding is included in the height calculation */
  z-index: 100;
}

@media (max-width: 768px) {

  /* Adjust breakpoint as needed */
  .footer {
    font-size: 14px;
    /* Smaller font size */
    padding: 10px;
    /* Reduced padding */
  }
}

/* Apply base styles */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-dialog {
  max-width: 80%;
  margin: 1.75rem auto;
}

.modal-content {
  background-color: #282c34;
  /* Dark background for the modal */
  color: #FFF;
  /* Light text for readability */
  border: 1px solid #444;
  /* Slight border to help the modal stand out */
}

/* Additional modal-related styles here... */

.close {
  color: #fff;
  /* or any color you prefer */
  opacity: 1;
  /* Ensure it's fully visible */
}

.close:hover,
.close:focus {
  color: #aaa;
  /* Lighter grey to indicate hover state */
  text-decoration: none;
  opacity: 1;
  /* Ensure the hover state is also fully visible */
}

.btn-close {
  filter: invert(50%) sepia(20%) saturate(500%) hue-rotate(180deg) brightness(90%) contrast(90%);
}

.btn-close:hover {
  filter: invert(30%) sepia(50%) saturate(500%) hue-rotate(180deg) brightness(95%) contrast(95%);
}

/* ── EVE Navbar ── */
@font-face {
  font-family: 'EVE Sans Neue';
  src: url("/static/css/fonts/eve_sans_neue/evesansneue-expanded.ee2c84a92584.otf");
  font-weight: 400;
  font-style: normal;
  font-stretch: expanded;
}

.eve-navbar {
  background-color: var(--eve-bg);
  border-bottom: 1px solid var(--eve-border);
  font-family: 'EVE Sans Neue', sans-serif;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 64px;
}

.eve-navbar__brand img {
  height: 44px;
}

.eve-nav-link {
  font-size: 12px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a9a9e !important;
  padding: 16px 14px !important;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.eve-nav-link:hover,
.eve-nav-link:focus {
  color: var(--eve-text) !important;
  border-bottom-color: var(--eve-accent-dim);
}

.eve-nav-link.active,
.eve-nav-link[aria-current="page"] {
  color: var(--eve-text) !important;
  border-bottom-color: var(--eve-accent);
}

/* EVE-style dropdown */
.eve-dropdown {
  background-color: var(--eve-panel-alt);
  border: 1px solid var(--eve-border);
  border-top: 2px solid var(--eve-accent-dim);
  border-radius: 0;
  padding: 4px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.eve-dropdown .dropdown-item {
  font-family: 'EVE Sans Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a9a9e;
  padding: 9px 18px;
  border-bottom: 1px solid #141f22;
  transition: background 0.15s, color 0.15s;
}

.eve-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.eve-dropdown .dropdown-item:hover {
  background-color: #162024;
  color: var(--eve-text);
}

/* Legacy navbar fallback */
.navbar {
  background-color: var(--eve-bg);
  border-bottom: 1px solid var(--eve-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--text-color);
}

.navbar .navbar-brand:hover,
.navbar .nav-link:hover {
  color: var(--hover-color);
}

.navbar .navbar-toggler {
  border-color: #2a4a50;
}

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%236a9fa4' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.eve-navbar__toggler {
  border-color: #2a4a50;
}

/* Collapsed (mobile/tablet) menu: navbar-expand-xxl collapses below 1400px, so
   present the expanded nav as a clean, contained dropdown panel rather than
   links floating over the page. */
@media (max-width: 1399.98px) {
  .eve-navbar .navbar-collapse {
    background-color: var(--eve-bg);
    border-top: 1px solid var(--eve-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
    margin: 0 -0.75rem; /* span the container-fluid gutter, full bleed */
    padding: 4px 0 8px;
  }
  .eve-navbar .navbar-nav {
    width: 100%;
  }
  .eve-navbar .navbar-nav .nav-item {
    border-bottom: 1px solid var(--eve-border);
  }
  .eve-navbar .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  /* Full-width rows; drop the desktop underline-on-hover in vertical layout. */
  .eve-navbar .eve-nav-link {
    display: block;
    width: 100%;
    border-bottom: none !important;
    padding: 14px 18px !important;
  }
  .eve-navbar .eve-nav-link:hover,
  .eve-navbar .eve-nav-link:focus {
    background-color: var(--eve-panel-alt);
    border-bottom-color: transparent;
  }
}

/* Adjust position of the notification count badge */
.nav-item .position-absolute {
  top: 5%; /* Adjust this value to move the badge up or down */
  right: 3%; /* Adjust this value to move the badge left or right */
  transform: translate(50%, -50%);
  font-size: 0.75rem; /* Smaller font size for badge */
  width: 18px; /* Circle size */
  height: 18px; /* Circle size */
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-badge-position {
  transform: translate(-190%, -10%) !important; /* Adjust the percentage values as needed */
}

/* Custom class to adjust the icon position */
.custom-icon-position {
  margin-left: 10px; /* Adjust horizontal position */
  margin-top: 5px;   /* Adjust vertical position */
  /* You can use any other properties as needed, such as: */
  transform: translateY(5px);
}

/* Dot indicator for unread notifications */
.unread .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: blue;
  border-radius: 50%;
  margin-right: 8px;
}

/* Dot indicator for read notifications */
.dot_read {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: rgb(99, 99, 108);
  border-radius: 50%;
  margin-right: 8px;
}

/* Styling dropdown for dark mode */
.dropdown-menu-dark {
  background-color: #333;
  color: #fff;
}

/* General dropdown item style */
.dropdown-item {
  color: #fff;
  padding: 8px 15px;
  border-bottom: 1px solid #444;
}

/* Style for unread notifications */
.unread .dropdown-item {
  font-weight: bold;
  background-color: #444;
}

/* Hover effect */
.dropdown-item:hover {
  background-color: #555;
}

/* Remove default list style */
li {
  list-style: none;
}

.notification-item {
  background-color: #333 !important; /* Dark background for each notification */ 
  border: 1px solid #444 !important; /* Slight border for each card */
  border-radius: 8px !important; /* Rounded corners for each notification */
  padding: 10px !important; /* Spacing inside each notification */
  display: flex !important; /* Flexbox for layout */
  align-items: center !important; /* Vertically center content */
  transition: background-color 0.3s, border-color 0.3s !important; /* Smooth transition for hover effects */
}

/* Dark-themed scrollbar styling */
.notifications-container::-webkit-scrollbar {
  width: 8px;
}

.notifications-container::-webkit-scrollbar-track {
  background: #1a1a1a; /* Matches dropdown background for a seamless look */
}

.notifications-container::-webkit-scrollbar-thumb {
  background-color: #444; /* Darker thumb to stand out against the track */
  border-radius: 4px; /* Rounded scrollbar thumb */
  border: 2px solid #1a1a1a; /* Matches dropdown background to create a small gap effect */
}

/* Firefox scrollbar styling */
.notifications-container {
  scrollbar-color: #444 #1a1a1a; /* Thumb color and track color */
  scrollbar-width: thin; /* Makes scrollbar smaller */
}

/* Card styles */
.card {
  background-color: var(--card-background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 0.5em;
}

/* Button styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Dropdown sizing & look */
.custom-dropdown.dropdown-menu {
  width: min(420px, 92vw);
  padding: 12px;
}

/* Make each item compact and consistent */
.notification-item {
  background-color: #333 !important;
  border: 1px solid #444 !important;
  border-radius: 8px !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  transition: background-color .2s, border-color .2s !important;
}

.notification-item:hover {
  border-color: #555 !important;
  background-color: #383838 !important;
}

@media (max-width: 991.98px) { /* Bootstrap breakpoint for mobile/tablet */
    .custom-dropdown {
        position: fixed !important;
        top: 60px; /* just below the navbar */
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1050; /* above navbar */
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

    /* Ensure dropdown arrow from Bootstrap doesn't mess positioning */
    .navbar .dropdown-menu::before,
    .navbar .dropdown-menu::after {
        display: none;
    }

    /* Optional: Make background slightly translucent */
    .custom-dropdown {
        background-color: rgba(33, 37, 41, 0.97); /* Bootstrap dark bg */
    }

  .custom-dropdown[data-bs-popper] {
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }
}

/* Two-line clamp with ellipsis by default */
.notification-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;           /* clamp to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-height: calc(1.2em * 2 + 2px);
  white-space: normal;             /* allow wrapping inside the clamp */
  padding: 0;                      /* remove extra paddings from .dropdown-item if desired */
}

/* Expanded state shows full text */
.notification-item.expanded .notification-text {
  -webkit-line-clamp: unset;
  max-height: none;
}

/* Tidy up dropdown items in notifications specifically */
.notification-item .dropdown-item {
  border: 0;            /* avoid item-level borders inside our cards */
  background: transparent;
}

/* Keep unread emphasis without adding a big background block */
.unread .notification-text {
  font-weight: 600;
}

/* Meta row: timestamp and expand chevron */
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Chevron rotates when expanded */
.notification-item.expanded .js-expand .bi {
  transform: rotate(180deg);
  transition: transform .15s ease-in-out;
}

.planet-total {
  font-size: 1em;
  display: block;
  text-align: center;
}


/* FAQ */

#faqAccordion {
  margin-bottom: 50px;
  /* Add more space at the bottom */
}

/* Discord page */

/* Base styling for the card */
.card {
  border-radius: 0.5rem;
  background-color: #fff;
  /* Ensuring a white background for better contrast */
  border: none;
  /* Remove the default border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Soft shadow for depth */
}

/* Accordion styling to fit the dark theme */
.accordion-button {
  background-color: #444;
  /* Slightly lighter grey than the card header */
  color: #fff;
  /* White text color */
}

.accordion-button:not(.collapsed) {
  background-color: #333;
  /* Darker grey when accordion is expanded */
  color: #fff;
}

.accordion-button:focus {
  box-shadow: none;
  /* Remove the default focus outline to match the style */
}

.accordion-item {
  background-color: #fff;
  /* White background for the content */
  border: 1px solid #ddd;
  /* Light grey border for each accordion item */
}

/* Ensuring text inside the accordion is readable on light backgrounds */
.accordion-body {
  color: #333;
}

/* Adjustments for smaller screens */
@media (max-width: 576px) {
  .accordion-button {
    padding-left: 1rem;
    /* Reduce padding for smaller screens */
    padding-right: 1rem;
  }
}

/* DEV SITE STYLING ONLY */

.dev-banner {
  position: sticky; /* stays at top if navbar is static */
  top: 0;
  z-index: 1040;
  width: 100%;
  padding: 0.65rem 1rem;
  background: #fff4f4;
  color: #6b0f0f;
  border-bottom: 1px solid #f0d0d0;
  text-align: center;
  font-size: 0.95rem;
}

.dev-banner a {
  text-decoration: underline;
  color: inherit;
  font-weight: 600;
}

.dev-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  background: #9b1c1c;
  color: #fff;
  letter-spacing: 0.06em;
  margin-left: 0.5rem;
}

/* ── EVE Footer ── */
.eve-footer {
  width: 100%;
  background-color: var(--eve-bg);
  border-top: 1px solid var(--eve-border);
  color: #5c6e70;
  font-family: 'EVE Sans Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 100;
}

.eve-footer a {
  color: #7a9a9e;
  text-decoration: none;
  transition: color 0.2s;
}

.eve-footer a:hover {
  color: var(--eve-text);
}

.eve-footer__sep {
  color: #2a3c40;
}

@media (max-width: 768px) {
  .eve-footer {
    font-size: 11px;
    padding: 12px 10px;
  }
}

/* ── EVE Modal ── */
.eve-modal.modal-content {
  background-color: var(--eve-panel);
  border: 1px solid var(--eve-border);
  border-top: 2px solid var(--eve-accent-dim);
  border-radius: 0;
  color: var(--eve-text-body);
  font-family: 'EVE Sans Neue', sans-serif;
}

.eve-modal .modal-header {
  border-bottom: 1px solid var(--eve-border);
}

.eve-modal .modal-title {
  color: var(--eve-text);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eve-modal .modal-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--eve-text-dim);
}

.eve-modal .modal-body h2 {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--eve-text);
  text-transform: uppercase;
  margin-top: 18px;
  margin-bottom: 10px;
}

.eve-modal .modal-body b,
.eve-modal .modal-body strong {
  color: var(--eve-text);
}

.eve-modal .modal-body a {
  color: var(--eve-gold);
}

.eve-modal .modal-footer {
  border-top: 1px solid var(--eve-border);
}

.eve-modal-close-btn {
  background: var(--eve-border);
  border: 1px solid #2a4a50;
  color: var(--eve-text-dim);
  font-family: 'EVE Sans Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 22px;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s;
}

.eve-modal-close-btn:hover {
  background: #2a3c40;
  color: var(--eve-text);
}