/* Site layout: header, footer, base theme. Shared by all pages. */

:root {
  --ufs-accent: #ff7200;
  --ufs-accent-dark: #d66000;
  --ufs-bg: #1c1c1c;
  --ufs-block: #2d2d2d;
  --ufs-discord: #7289da;
}

/* Base */
html {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}
body {
  background-color: var(--ufs-bg);
  color: #ffffff;
  font-family: "Ebrima", sans-serif;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Global form control rounding to match old site */
.form-control,
.form-select {
  border-radius: 2px;
}

/* Custom scrollbar to match old site */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 2px var(--ufs-accent-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--ufs-accent);
  -webkit-box-shadow: inset 0 0 2px var(--ufs-accent-dark);
}

/* Remove default blue focus glow from buttons (match old site) */
.btn:focus,
.btn:active,
.btn:focus-visible,
.btn:active:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Header / Navbar */
.site-navbar {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background-color: var(--ufs-bg);
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.site-logo {
  flex-shrink: 0;
}
.site-logo img {
  height: 40px;
  display: block;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
  flex-grow: 1;
}
.site-nav-auth {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-nav-links a,
.site-nav-links a:link,
.site-nav-links a:visited {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s, font-weight 0.2s;
  font-weight: 400;
}
.site-nav-links a:hover,
.site-nav-links a:focus,
.site-nav-links a:active {
  color: var(--ufs-accent);
  background: rgba(255, 114, 0, 0.1);
  text-decoration: none;
}
.site-dropdown {
  position: relative;
}
.site-dropdown-toggle {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  transition: color 0.2s, background 0.2s;
  border: none;
  background: none;
  font-size: inherit;
}
.site-dropdown-toggle:hover {
  color: var(--ufs-accent);
  background: rgba(255, 114, 0, 0.1);
}
.site-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ufs-block);
  border: 1px solid rgba(255, 114, 0, 0.3);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  list-style: none;
  margin: 0;
}
.site-dropdown:hover .site-dropdown-menu {
  display: block;
}
.site-dropdown-menu a,
.site-dropdown-menu a:link,
.site-dropdown-menu a:visited,
.site-dropdown-menu button {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 4px;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
}
.site-dropdown-menu a:hover {
  background: var(--ufs-accent);
  color: white;
}
.site-dropdown-menu button {
  color: #dc3545;
}
.site-dropdown-menu button:hover {
  background: #dc3545;
  color: white;
}
.site-dropdown-end {
  left: auto;
  right: 0;
}
.site-btn-primary,
.site-btn-primary:link,
.site-btn-primary:visited {
  background: var(--ufs-accent) !important;
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  transition: background 0.2s;
  display: inline-block;
  border: none;
}
.site-btn-primary:hover,
.site-btn-primary:focus,
.site-btn-primary:active {
  background: var(--ufs-accent-dark) !important;
  color: white !important;
  text-decoration: none !important;
}
.site-user-icon {
  color: var(--ufs-accent);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
.site-footer,
.footer {
  width: 100%;
  background-color: var(--ufs-block);
  margin-top: auto;
}
.site-footer .container,
.footer .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.site-footer ul,
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li,
.footer li {
  list-style: none;
}
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.footer a,
.footer a:link,
.footer a:visited {
  text-decoration: none;
  color: #ffffff !important;
}
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active,
.footer a:hover,
.footer a:focus,
.footer a:active {
  color: var(--ufs-accent-dark) !important;
}
.site-footer p,
.footer p {
  font-weight: bold;
  cursor: default;
  margin: 0;
}
.site-footer .footer-section-title,
.footer .footer-section-title {
  margin-bottom: 0.5rem;
}
.site-copyright,
.copyright {
  background-color: var(--ufs-accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  text-align: center;
}
.site-footer .footer-logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem auto;
}

/* Buttons used in layout and pages */
.btn-ufs {
  border: 1px solid var(--ufs-accent);
  background: none;
  padding: 0.4rem 0.8rem;
  min-width: 120px;
  height: 40px;
  color: #ffffff;
  font-weight: bold;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn-ufs:hover {
  background: var(--ufs-accent);
  color: #ffffff;
}
.btn-ufs-blue {
  border: none;
  background: #7289da;
  padding: 5px 3px;
  width: 160px;
  height: 40px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 0;
}
.btn-ufs-blue:hover {
  opacity: 0.8;
  color: #ffffff;
}

.btn-ufs-items {
  border: 1px solid var(--ufs-accent);
  background: none;
  color: #ffffff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 40px;
  padding: 0 10px;
  font-size: 1em;
  height: 36px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-ufs-items:hover {
  background: var(--ufs-accent);
  color: #ffffff;
}

/* Breadcrumb styling */
.breadcrumb {
  font-size: 0.85rem;
  background: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #666;
  content: "›";
}

.breadcrumb-item a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--ufs-accent) !important;
}

.breadcrumb-item.active {
  color: var(--ufs-accent);
}

/* Main content area */
.site-main {
  flex: 1;
  padding-bottom: 2rem;
}
