/* =======================
   Base / Reset Styles
========================== */

html {
	box-sizing: border-box;
	height: 100%;
	margin: 0;
}

*, *::before, *::after {
	box-sizing: inherit;
}

body {
	height: 100%;
	margin: 0;
	font-family: 'Yu Gothic';
}

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

hr {
  width: 85%;           /* make it half the container width */
  margin: 0.4rem auto;    /* auto left/right margin centers it */
  border: none;         /* remove default border */
  border-top: 2px solid #ccc; /* add a custom top border line */
}

.hidden {
  display: none;
}


/* =======================
   Header & Navbar
========================== */

header {
	
	width: 100%;
	min-height: 50px;
	box-sizing: border-box;
}

.navbar {
display: flex;
  justify-content: space-between; /* push logo left, actions right */
  align-items: center;
  padding: 0.5rem 1rem;
  position: relative;
	
}

.secondary-nav{
  display:flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: space-around;
  -webkit-overflow-scrolling:touch;
  
  
  white-space: nowrap;
}

/* =======================
   Hamburger LEFT
========================== */

.hamburger{

  z-index: 1;
 


}
.hamburger-btn {
  display: inline-flex;         /* flex for stacking icons */
  flex-direction: column;
  align-items: center;
  gap: 0;                      /* no gap between icons */
  
  width: 24px;
  height: 24px;

  background: none;
  border: none;
  cursor: pointer;
  color: black;

  line-height: 1;
  font-size: 0;                /* remove inline spacing */
  padding: 0;
  margin: 0;
}

/* Sidebar */
/* Sidebar (Full-Screen Version) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transform: translateX(100%); /* hidden offscreen to the right */
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  padding: 2rem 1.5rem;
  overflow-y: auto; /* scroll if content is long */
}

.sidebar--open {
  transform: translateX(0);
}

.overlay {
  display: none; /* can remove it completely if unused */
}

/* Overlay 
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay--active {
  opacity: 1;
  visibility: visible;
}
*/
/* Button */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position:relative;
  z-index: 1010;
}

.sidebar-menu {
    list-style: none; /* remove default bullets */
    padding: 0;
    margin: 0;
    max-width: 500px;
}

.sidebar-menu .menu-item {
    margin: 0.5rem 0;
}

.sidebar-menu .menu-item > a,
.sidebar-menu .menu-item > .menu-title {
    display: inline-block;
    position: relative;
    padding-left: 1rem; /* space for the > symbol */
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.sidebar-menu .menu-item > a::before,
.sidebar-menu .menu-item > .menu-title::before {
    content: ">";  /* your custom bullet */
    position: absolute;
    left: 0;
    color: #555;
}

.submenu {
    list-style: none;
    padding-left: 1.5rem; /* indent sub-items */
    margin-top: 0.3rem;
}

.submenu li a {
    display: block;
    font-weight: normal;
    padding-left: 0.5rem;
    text-decoration: none;
    color: #666;
}

.submenu li a:hover {
    text-decoration: underline;
}

/* Sidebar bottom image wrapper */
.sidebar-bottom-image {
    width: 100%;          /* make div full width of sidebar */
    text-align: center;   /* center its content */
    margin-top: 1rem;
}

.sidebar-bottom-image img {
    max-width: 200px;     /* adjust size */
    height: auto;
    display: inline-block; /* ensures it respects text-align center */
}


/* =======================
   Logo
========================== */

.logo {
  position: static; /* remove absolute positioning */
  transform: none;
  display: flex;
  align-items: center;
}

.logo img {
	height: 50px;
  width: auto;

}

/* =======================
   Nav Actions (Right Side)
========================== */

.nav-actions {
   display: flex;
  align-items: center;
  gap: 1rem; /* space between search and hamburger */
	
}

.nav-actions img {
	width: 28px;
	height: 28px;
}

/* =======================
   Navigation Links
========================= */

.navLink {
	color: inherit;
	text-decoration: none;
}

.navLink:hover {
	text-decoration: underline;
}



/* =======================
   Icon + Label Components
========================== */

.icon-with-label,
.footer-icon {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0 0.0rem;
	min-width: 75px;
	text-decoration: none;
	color: #333;
	cursor: pointer;
	transition: color 0.3s ease;
}

.icon-with-label:hover,
.icon-with-label:focus,
.footer-icon:hover,
.footer-icon:focus {
	color: black;
	transition: color 0.3s ease, filter 0.3s ease;
}

/* Icon Label Text */
.icon-label,
.icon-label-swipe {
	font-size: 0.75rem;
	user-select: none;
	opacity: 1;
}

/* Reversed Cat Icon */
.cat-icon svg {
	transform: scaleX(-1);
}

/* Nav Icons */
.nav-icon {
	width: 28px;
	height: 28px;
}

.nav-icon-footer{
	width: 48px;
	height: 48px;
	margin: 20px;
	
}

/* =======================
   Footer
========================== */

footer {
	padding: 0.3em;
	font-size: 1rem;
	text-align: center;
	width: 100%;
}

/* =======================
   Content Container
========================== */

.content {
	flex: 1;
	width: 100%;
	flex-direction: column;
	flex-grow: 1;
	padding: 0 1.5rem;
	margin: 0 auto;
}

/* =======================
   Buttons
========================== */

.footer-icon-button {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	
	font: inherit;
	color: inherit;
	cursor: pointer;
	display: inline-block;
	position: relative;
}

/* =======================
   Speech Bubble (Tooltips)
========================== */

.speech-bubble {
	position: absolute;
	background: #fff;
	border: 2px solid #333;
	border-radius: 10px;
	padding: 4px 8px;
	font-size: 0.75rem;
	top: 50%;
	right: 100%;
	transform: translateY(-50%);
	white-space: nowrap;
	display: none;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
	margin-right: 8px;
	user-select: none;
	z-index: 10;
}
