/* ============================================================
   MEDUZY THEME STYLESHEET
   ============================================================ */

/* CSS Variables Override */
:root,
html,
body,
:root.theme-auto,
:root.theme-light,
:root.theme-dark,
:root.theme-black,
html.theme-auto,
html.theme-light,
html.theme-dark,
html.theme-black,
html.theme-meduzy {
  --color-base-font: #ffa726 !important;
  --color-base-font-rgb: 255, 167, 38 !important;
  --color-base-background: #050302 !important;
  --color-base-background-mobile: #050302 !important;
  --color-url-font: #ff9800 !important;
  --color-url-visited-font: #ff7043 !important;
  --color-header-background: rgba(10, 6, 4, 0.92) !important;
  --color-header-border: rgba(255, 109, 0, 0.35) !important;
  --color-footer-background: rgba(10, 6, 4, 0.92) !important;
  --color-footer-border: rgba(255, 109, 0, 0.25) !important;
  --color-sidebar-border: rgba(255, 109, 0, 0.35) !important;
  --color-sidebar-font: #ffa726 !important;
  --color-sidebar-background: rgba(14, 9, 6, 0.88) !important;
  --color-backtotop-font: #ff9100 !important;
  --color-backtotop-border: #ff6d00 !important;
  --color-backtotop-background: rgba(20, 12, 8, 0.92) !important;
  --color-btn-background: #ff6d00 !important;
  --color-btn-font: #ffffff !important;
  --color-show-btn-background: #e65100 !important;
  --color-show-btn-font: #ffffff !important;
  --color-search-border: #ff6d00 !important;
  --color-search-shadow: 0 0 16px rgba(255, 109, 0, 0.45) !important;
  --color-search-background: rgba(20, 12, 8, 0.9) !important;
  --color-search-font: #ffa726 !important;
  --color-search-background-hover: #ff7700 !important;
  --color-categories-item-selected-font: #ff9100 !important;
  --color-categories-item-border-selected: #ff6d00 !important;
  --color-autocomplete-font: #ffa726 !important;
  --color-autocomplete-border: #ff6d00 !important;
  --color-autocomplete-shadow: 0 8px 24px rgba(0, 0, 0, 0.9) !important;
  --color-autocomplete-background: rgba(18, 11, 7, 0.98) !important;
  --color-autocomplete-background-hover: rgba(255, 109, 0, 0.3) !important;
  --color-answer-font: #ffb74d !important;
  --color-answer-background: rgba(16, 10, 7, 0.88) !important;
  --color-result-background: rgba(14, 9, 6, 0.85) !important;
  --color-result-border: rgba(255, 109, 0, 0.32) !important;
  --color-result-url-font: #ff9800 !important;
  --color-result-vim-selected: rgba(255, 109, 0, 0.25) !important;
  --color-result-vim-arrow: #ff9100 !important;
  --color-result-description-highlight-font: #ffd54f !important;
  --color-result-link-font: #ff7700 !important;
  --color-result-link-font-highlight: #ffab40 !important;
  --color-result-link-visited-font: #ff7043 !important;
  --color-result-publishdate-font: #d88040 !important;
  --color-result-engines-font: #d88040 !important;
  --color-result-detail-font: #ffa726 !important;
  --color-result-detail-label-font: #ffb74d !important;
  --color-result-detail-background: rgba(16, 10, 7, 0.96) !important;
  --color-result-detail-hr: rgba(255, 109, 0, 0.35) !important;
  --color-result-detail-link: #ff7700 !important;
  --color-toolkit-select-background: rgba(24, 15, 10, 0.94) !important;
  --color-toolkit-select-border: #ff6d00 !important;
  --color-toolkit-input-text-font: #ffa726 !important;
  --color-toolkit-dialog-background: rgba(16, 10, 7, 0.96) !important;
  --color-toolkit-dialog-border: #ff6d00 !important;
  --color-toolkit-tabs-label-border: #ff6d00 !important;
  --color-toolkit-tabs-section-border: rgba(255, 109, 0, 0.35) !important;
  --color-toolkit-checkbox-onoff-on-mark-background: #ff6d00 !important;
}

/* Background image & page base */
html,
body {
  background-color: #050302 !important;
  background-image: url('/static/themes/meduzy/img/meduzy_bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color: #ffa726 !important;
  min-height: 100vh !important;
}

/* Shadows under all text for readability over bright background parts */
body, p, span, a, h1, h2, h3, h4, h5, h6, label, input, button, select, time, strong, em, b, i, td, th, legend {
  text-shadow: 0 1px 2px #000000, 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 6px #000000 !important;
}

svg, svg *, img {
  text-shadow: none !important;
}

/* Main homepage centering */
#main_index {
  margin-top: 24vh !important;
}

div.index .title h1 {
  color: #ff9100 !important;
  text-shadow: 0 0 20px rgba(255, 145, 0, 0.7), 0 2px 6px #000 !important;
}

/* Results containers */
article.result {
  background: rgba(14, 9, 6, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 109, 0, 0.1) !important;
  margin-bottom: 1.1rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

article.result:hover {
  border-color: rgba(255, 109, 0, 0.7) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 109, 0, 0.25) !important;
}

article.result h3 a {
  color: #ff7700 !important;
  font-size: 1.15rem !important;
}

article.result h3 a:hover {
  color: #ffb74d !important;
  text-decoration: underline !important;
}

article.result h3 a:visited {
  color: #ff7043 !important;
}

article.result .content {
  color: #ffb74d !important;
  line-height: 1.5 !important;
}

article.result .url_header,
article.result .url_wrapper,
article.result .url_o1,
article.result .url_o2 {
  color: #ff9800 !important;
}

span.highlight {
  color: #ffffff !important;
  background: rgba(255, 109, 0, 0.5) !important;
  font-weight: bold !important;
  border-radius: 3px !important;
  padding: 0 3px !important;
}

/* Header, navigation bar */
#search_header,
nav#links_on_top,
header {
  background: rgba(10, 6, 4, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 109, 0, 0.3) !important;
}

nav#links_on_top a,
#search_header a {
  color: #ffa726 !important;
}

nav#links_on_top a:hover,
#search_header a:hover {
  color: #ff9100 !important;
}

nav#links_on_top svg {
  stroke: #ff9100 !important;
}

/* Search input bar */
#q,
input[type="search"],
input[type="text"] {
  background: rgba(20, 12, 8, 0.9) !important;
  color: #ff9100 !important;
  border: 1px solid #ff6d00 !important;
  box-shadow: 0 0 14px rgba(255, 109, 0, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.85) !important;
  border-radius: 24px !important;
}

#q:focus,
input[type="search"]:focus {
  border-color: #ff9100 !important;
  box-shadow: 0 0 20px rgba(255, 145, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.9) !important;
}

/* Category tabs */
#categories li a {
  color: #d88040 !important;
}

#categories li.active a,
#categories li a:hover {
  color: #ff9100 !important;
  border-bottom: 2px solid #ff6d00 !important;
  text-shadow: 0 0 10px rgba(255, 109, 0, 0.8) !important;
}

/* Autocomplete */
.autocomplete {
  background: rgba(16, 10, 7, 0.98) !important;
  border: 1px solid #ff6d00 !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.9) !important;
  border-radius: 12px !important;
}

.autocomplete li:hover,
.autocomplete li.selected {
  background: rgba(255, 109, 0, 0.35) !important;
  color: #ffb74d !important;
}

/* Buttons */
button,
input[type="submit"],
.btn {
  background: linear-gradient(135deg, #ff6d00, #d84315) !important;
  color: #ffffff !important;
  border: 1px solid #ff8f00 !important;
  box-shadow: 0 0 12px rgba(255, 109, 0, 0.45) !important;
  border-radius: 6px !important;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
  background: linear-gradient(135deg, #ff8f00, #e65100) !important;
  box-shadow: 0 0 18px rgba(255, 143, 0, 0.65) !important;
}

/* Preferences & Fieldsets */
fieldset {
  background: rgba(14, 9, 6, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 109, 0, 0.3) !important;
  border-radius: 10px !important;
  padding: 1.2rem !important;
  margin-bottom: 1.2rem !important;
}

legend {
  color: #ff9100 !important;
  font-weight: bold !important;
}

select,
input[type="password"] {
  background: rgba(24, 15, 10, 0.94) !important;
  color: #ffa726 !important;
  border: 1px solid #e65100 !important;
  border-radius: 6px !important;
  padding: 0.4rem 0.6rem !important;
}

table {
  background: rgba(14, 9, 6, 0.88) !important;
  border: 1px solid rgba(255, 109, 0, 0.25) !important;
}

th {
  background: rgba(255, 109, 0, 0.2) !important;
  color: #ff9100 !important;
}

tr:hover td {
  background: rgba(255, 109, 0, 0.12) !important;
}

/* Sidebar & Infobox */
#sidebar,
aside,
.infobox {
}

/* Footer */
footer {
  background: rgba(8, 5, 4, 0.94) !important;
  backdrop-filter: blur(10px) !important;
  border-top: 1px solid rgba(255, 109, 0, 0.25) !important;
  color: #d87020 !important;
}

footer a {
  color: #ff9100 !important;
}

footer a:hover {
  color: #ffb74d !important;
  text-decoration: underline !important;
}

/* Logo glow */
img.logo {
  filter: drop-shadow(0 0 14px rgba(255, 109, 0, 0.45)) !important;
}

/* Magnifying glass and action icons in orange */
#search_logo svg circle,
#search_logo svg path,
button#send_search svg path {
  stroke: #ff7700 !important;
}

#search_logo svg rect {
  fill: #ff7700 !important;
}

/* Pagination */
#pagination form button,
#pagination a {
  background: rgba(20, 12, 8, 0.9) !important;
  border: 1px solid #ff6d00 !important;
  color: #ff9100 !important;
  border-radius: 6px !important;
}

#pagination form button:hover,
#pagination a:hover {
  background: #ff6d00 !important;
  color: #ffffff !important;
}
