/* base.css */

/* GLOBAL RESETS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.5;
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* UTILITY CLASSES */
.hidden {
  display: none !important;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* LAYOUT HELPERS */
.flex {
  display: flex;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.25rem;
}

.rounded {
  border-radius: 8px;
}

.shadow {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bold {
  font-weight: bold;
}

.uppercase {
  text-transform: uppercase;
}

.pointer {
  cursor: pointer;
}

/* === LOGO STYLING === */

#logo {
  height: 40px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 8px;
  padding: 4px;
}

#logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Optional: Add light shadow for visibility */
#logo {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === FIXED HEADER === */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #02061f;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

/* === HIDE HEADER ON SCROLL DOWN === */
#main-header.hide {
  transform: translateY(-100%);
}

/* === HEADER CONTENT LAYOUT === */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 12px;
}

/* === LOGO === */
#logo {
  height: 40px;
  width: auto;
  cursor: pointer;
}

/* === SEARCH INPUT === */
#searchInput {
  flex: 12;
  width: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: all 0.2s ease;
}

#searchInput:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* === THEME TOGGLE BUTTON === */
#themeToggle {
  background: none;
  border: none;
  font-size: 20px;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

#themeToggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* === PUSH PAGE DOWN SO CONTENT ISN'T HIDDEN === */
body {
  padding-top: 64px; /* Adjust depending on header height */
}


#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #0b1220; /* match reference background */
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 999;
}

.nav-item {
  color: #ddd;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-item .nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.nav-item .nav-label {
  font-size: 11px;
  line-height: 1;
}

.nav-item.active,
.nav-item:hover {
  color: #ff5c33;
}

/* 🔍 Search Bar Wrapper */
.search-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

/* 🔍 Icon inside input */
.search-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  color: var(--text-muted, #999);
  pointer-events: none;
}

/* 🔍 Styled Input with Left Padding */
#searchInput {
  width: 100%;
  padding: 10px 14px 10px 38px; /* space for icon */
  border: 1px solid var(--border-light, #ddd);
  border-radius: 999px;
  font-size: 0.95rem;
  background: var(--bg-input, #020035);
  color: var(--text-primary);
  outline: none;
  transition: border 0.2s ease;
}

#searchInput:focus {
  border-color: var(--primary-color, #007bff);
  background-color: #fff;
}

#bottom-nav {
  transition: transform 0.3s ease;
  will-change: transform;
}

#bottom-nav.hidden-by-keyboard {
  transform: translateY(100%);
}