/*
Copyright (C) 2025  HighLite
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later versio
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more detail
You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/

:root {
    --theme-background: #1a1a1a;
    --theme-background-soft: #222222;
    --theme-background-mute: #2a2a2a;
    --theme-background-light: #333333;
    --theme-accent: #F9F449;
    --theme-accent-dark: #e6e03a;
    --theme-accent-light: #fbf65c;
    --theme-accent-muted: rgba(249, 244, 73, .8);
    --theme-accent-transparent-10: rgba(249, 244, 73, .1);
    --theme-accent-transparent-20: rgba(249, 244, 73, .2);
    --theme-accent-transparent-30: rgba(249, 244, 73, .3);
    --theme-accent-transparent-40: rgba(249, 244, 73, .4);
    --theme-accent-transparent-60: rgba(249, 244, 73, .6);
    --theme-text-primary: #ffffff;
    --theme-text-secondary: rgba(255, 255, 255, .8);
    --theme-text-muted: rgba(255, 255, 255, .6);
    --theme-text-dark: #1a1a1a;
    --theme-border: rgba(255, 255, 255, .1);
    --theme-border-light: rgba(255, 255, 255, .05);
    --theme-divider: rgba(255, 255, 255, .15);
    --theme-success: #10b981;
    --theme-success-dark: #059669;
    --theme-success-light: #34d399;
    --theme-success-transparent-30: rgba(16, 185, 129, .3);
    --theme-danger: #ef4444;
    --theme-danger-dark: #dc2626;
    --theme-danger-light: #f87171;
    --theme-danger-transparent-30: rgba(239, 68, 68, .3);
    --vt-c-white: #ffffff;
    --vt-c-white-soft: #f8f8f8;
    --vt-c-white-mute: #f2f2f2;
    --vt-c-black: var(--theme-background);
    --vt-c-black-soft: var(--theme-background-soft);
    --vt-c-black-mute: var(--theme-background-mute);
    --vt-c-indigo: var(--theme-accent);
    --vt-c-divider-light-1: var(--theme-divider);
    --vt-c-divider-light-2: var(--theme-border);
    --vt-c-divider-dark-1: var(--theme-divider);
    --vt-c-divider-dark-2: var(--theme-border);
    --vt-c-text-light-1: var(--theme-text-primary);
    --vt-c-text-light-2: var(--theme-text-secondary);
    --vt-c-text-dark-1: var(--theme-text-primary);
    --vt-c-text-dark-2: var(--theme-text-secondary);
    --titlebar-height: 28px;

    --color-background: var(--theme-background);
    --color-background-soft: var(--theme-background-soft);
    --color-background-mute: var(--theme-background-mute);
    --color-border: var(--theme-border);
    --color-border-hover: var(--theme-divider);
    --color-heading: var(--theme-text-primary);
    --color-text: var(--theme-text-primary);
    --section-gap: 160px
}

body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
}

.highlite_titlebar {
    height: var(--titlebar-height);
    min-height: var(--titlebar-height);
    max-height: var(--titlebar-height);
    background: #141414;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    font-family: 'Inter';
    justify-content: space-between;
    border-bottom: 1px solid #353535;
    /* Electron allow user to drag the window */
    -webkit-app-region: drag;
    padding: 0 12px 0 5px;
}

.highlite_titlebar #logoText {
    margin-left: 5px;
}

.highlite_titlebar #logoImg {
    height: 25px;
}

.highlite_titlebar a {
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.highlite_titlebar a {
    /* Allow clicking on the links */
    -webkit-app-region: no-drag;
    display: flex;
}

.highlite_bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: -webkit-fill-available;
    background: #141414;
    color: white;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    z-index: 999;
    flex-wrap: wrap;
    border-left: 1px solid #353535;
}

.highlite_bar_selected_content {
    flex-direction: column;
    background: #212121;
    color: white;
    z-index: 999;
    position: relative;
    display: none;
    max-width: 220px;
    width: 220px;
    min-width: 220px;
    border-right: 1px solid black;
    border-left: 1px solid #353535;
}

.highlite_bar_selected_content.activated {
    display: flex;
}

.highlite_bar .highlite_bar_item {
    margin-top:5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 25px;
    width: 25px;
    -webkit-app-region: no-drag;
    user-select: none;
}

.highlite_bar .highlite_bar_item:hover {
    background: #333;
}

.highlite_bar_selected_content .content_title {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141414;
    font-family: 'Inter';
    height: 24px;
    padding: 10px;
    border-bottom: 1px solid #353535;
}

.highlite_bar_selected_content .content {
    display: flex;
    font-family: 'Inter';
    font-size: 14px;
    border-top: 1px solid black;
    position: relative;
    height: 100%;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -10;
    object-fit: cover;
    filter: blur(3px);
}
#iconbar .iconify {
    margin: 0 5px;
    font-size: 16px;
    color: var(--theme-text-primary, #ffffff);
    transition: color 0.2s ease;
}

#iconbar a:hover .iconify {
    color: var(--theme-accent, #f9f449);
}

#iconbar #window-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 20px;
    width: 65px;
    margin-right: 0px;
}

#window-controls .window-control .iconify {
    font-size: 14px;
}

/* Consistent UI theme colors */
:root {
  /* Base colors */
  --theme-background: #1a1a1a;
  --theme-background-soft: #222222;
  --theme-background-mute: #2a2a2a;
  --theme-background-light: #333333;
  
  /* Accent colors */
  --theme-accent: #F9F449;
  --theme-accent-dark: #e6e03a;
  --theme-accent-light: #fbf65c;
  --theme-accent-muted: rgba(249, 244, 73, 0.8);
  --theme-accent-transparent-10: rgba(249, 244, 73, 0.1);
  --theme-accent-transparent-20: rgba(249, 244, 73, 0.2);
  --theme-accent-transparent-30: rgba(249, 244, 73, 0.3);
  --theme-accent-transparent-40: rgba(249, 244, 73, 0.4);
  --theme-accent-transparent-60: rgba(249, 244, 73, 0.6);
  
  /* Text colors */
  --theme-text-primary: #ffffff;
  --theme-text-secondary: rgba(255, 255, 255, 0.8);
  --theme-text-muted: rgba(255, 255, 255, 0.6);
  --theme-text-dark: #1a1a1a;
  
  /* Border and divider colors */
  --theme-border: rgba(255, 255, 255, 0.1);
  --theme-border-light: rgba(255, 255, 255, 0.05);
  --theme-divider: rgba(255, 255, 255, 0.15);
  
  /* Status colors */
  --theme-success: #10b981;
  --theme-success-dark: #059669;
  --theme-success-light: #34d399;
  --theme-success-transparent-30: rgba(16, 185, 129, 0.3);
  
  --theme-danger: #ef4444;
  --theme-danger-dark: #dc2626;
  --theme-danger-light: #f87171;
  --theme-danger-transparent-30: rgba(239, 68, 68, 0.3);

  /* Legacy Vue theme compatibility */
  --vt-c-white: #ffffff;
  --vt-c-white-soft: #f8f8f8;
  --vt-c-white-mute: #f2f2f2;

  --vt-c-black: var(--theme-background);
  --vt-c-black-soft: var(--theme-background-soft);
  --vt-c-black-mute: var(--theme-background-mute);

  --vt-c-indigo: var(--theme-accent);

  --vt-c-divider-light-1: var(--theme-divider);
  --vt-c-divider-light-2: var(--theme-border);
  --vt-c-divider-dark-1: var(--theme-divider);
  --vt-c-divider-dark-2: var(--theme-border);

  --vt-c-text-light-1: var(--theme-text-primary);
  --vt-c-text-light-2: var(--theme-text-secondary);
  --vt-c-text-dark-1: var(--theme-text-primary);
  --vt-c-text-dark-2: var(--theme-text-secondary);
}

/* semantic color variables for this project */
:root {
  --color-background: var(--theme-background);
  --color-background-soft: var(--theme-background-soft);
  --color-background-mute: var(--theme-background-mute);

  --color-border: var(--theme-border);
  --color-border-hover: var(--theme-divider);

  --color-heading: var(--theme-text-primary);
  --color-text: var(--theme-text-primary);

  --section-gap: 160px;
}

/* Remove light theme media query and make dark theme default */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
  font-family: inherit;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-background);
  transition:
    color 0.5s,
    background-color 0.5s;
  line-height: 1.6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Force Inter font on all form elements and UI components to override browser defaults */
input, 
button, 
textarea, 
select, 
optgroup, 
option,
label {
  font-family: 
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif !important;
}

/* Specific button styling to override all browser defaults */
button {
  font-family: 
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif !important;
  font-weight: inherit;
  font-size: inherit;
}

/* Ensure all headings use Inter */
h1, h2, h3, h4, h5, h6 {
  font-family: 
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
}

/* Ensure all interactive elements use Inter */
a, 
span, 
div, 
p {
  font-family: inherit;
}

/* Comprehensive font override for all map interface elements */
.map-container *,
.control-panel *,
.search-input *,
.filter-tag *,
.layer-btn *,
.popup-content *,
.position-indicator *,
[class*="map-"],
[class*="search-"],
[class*="filter-"],
[class*="layer-"],
[class*="popup-"],
[class*="control-"] {
  font-family: 
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif !important;
}

/* Responsive design utilities */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Mobile-first responsive breakpoints */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }
  
  .container {
    padding: 0 0.25rem;
  }
}

/* Utility classes to prevent overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

#app {
  margin: 0 auto;
  font-weight: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  color: var(--theme-text-primary);
  flex: 1;
  overflow-x: hidden;
}

a, .green {
  text-decoration: none;
  color: var(--theme-accent);
  transition: 0.4s;
  padding: 3px;
}

a:hover, .green:hover {
  color: var(--theme-accent-light);
}

#copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  color: var(--theme-text-secondary);
  font-size: 0.85rem;
  pointer-events: none;
}

.joinUs {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.joinUs button {
  background-color: var(--theme-background);
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border);
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.joinUs button:hover {
  background-color: var(--theme-accent);
  color: var(--theme-text-dark);
  border-color: var(--theme-accent);
}

.marker {
  font-size:1rem;
  color: var(--theme-text-primary);
  text-shadow: 0px 0px 8px var(--theme-background);
  width: fit-content;
  height: fit-content;
}

.playerPosition {
  z-index: 9999;
  animation: rotatePlayer 7.2s linear infinite;
}

@keyframes rotatePlayer {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive joinUs button */
@media (max-width: 768px) {
  .joinUs {
    bottom: 1rem;
    right: 1rem;
  }
  
  .joinUs button {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .joinUs {
    bottom: 0.5rem;
    right: 0.5rem;
  }
  
  .joinUs button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Responsive copyright */
@media (max-width: 768px) {
  #copyright {
    bottom: 1rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  #copyright {
    bottom: 0.5rem;
    font-size: 0.7rem;
  }
  
  #copyright span {
    margin: 0.1rem 0;
  }
}

/* Button styles for icons */
button {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Iconify icon alignment */
iconify-icon {
  vertical-align: middle;
}