/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * See docs/ASSETS.md for asset conventions.
 *
 *= require stepper
 *= require listings-extra
 *= require become-seller
 *= require profile
 *= require home
 *= require listings
 *= require users
 *= require ui-enhancements
 *= require_self
 */

/* CSS Custom Properties for consistent theming */
:root {
  --navbar-bg: white;
  --navbar-border: #e5e7eb;
  --navbar-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --navbar-text: #1f2937;
  --navbar-primary: #1a2980;
  --navbar-secondary: #26c6da;
  --navbar-hover: #f3f4f6;
}

/* Enhanced Navbar Styles with maximum specificity */
html body .navbar {
  background: var(--navbar-bg) !important;
  border-bottom: 1px solid var(--navbar-border) !important;
  box-shadow: var(--navbar-shadow) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

html body .navbar-container {
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

html body .navbar-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 4rem !important;
}

html body .navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
  color: var(--navbar-text) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}

html body .navbar-logo {
  width: 2rem !important;
  height: 2rem !important;
  background: linear-gradient(135deg, var(--navbar-primary), var(--navbar-secondary)) !important;
  border-radius: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body .navbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

html body .nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--navbar-primary) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  transition: all 0.2s ease !important;
}

html body .nav-link:hover {
  background-color: var(--navbar-hover) !important;
  color: var(--navbar-primary) !important;
}

html body .nav-button {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: linear-gradient(135deg, var(--navbar-primary), var(--navbar-secondary)) !important;
  color: white !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease !important;
}

html body .nav-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(26, 41, 128, 0.3) !important;
}

/* Flash Message Styles */
html body .flash-message {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out !important;
}

html body .flash-message.fade-out {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
}

html body .flash-close {
  float: right !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  color: inherit !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease !important;
}

html body .flash-close:hover {
  opacity: 1 !important;
}

/* Mobile menu styles */
html body .mobile-menu {
  position: fixed !important;
  top: 64px !important; /* Height of navbar */
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: white !important;
  transform: translateX(-100%) !important;
  transition: transform 0.3s ease-in-out !important;
  z-index: 40 !important;
  overflow-y: auto !important;
  border-top: 1px solid #e5e7eb !important;
}

html body .mobile-menu.open {
  transform: translateX(0) !important;
}

html body .hamburger {
  transition: all 0.3s ease !important;
}

html body .hamburger.active .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px) !important;
}

html body .hamburger.active .line:nth-child(2) {
  opacity: 0 !important;
}

html body .hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px) !important;
}

/* Overlay for mobile menu */
html body .mobile-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  z-index: 30 !important;
  pointer-events: none !important;
}

html body .mobile-overlay.active {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Responsive navbar */
@media (max-width: 768px) {
  html body .navbar-actions {
    display: none !important;
  }
}

/* Hide default dropdown arrows */
html body select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
}

/* Remove default dropdown arrow in IE */
html body select::-ms-expand {
  display: none !important;
}

/* Footer and layout styles */
html body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

html body main {
  flex: 1 !important;
}

html body footer {
  margin-top: auto !important;
}

/* Footer link hover effects */
html body footer a:hover {
  transform: translateY(-1px) !important;
}

/* Footer social icons */
html body footer .fab {
  transition: all 0.2s ease !important;
}

html body footer .fab:hover {
  transform: scale(1.1) !important;
}

/* Icon + text alignment: desktop and mobile */
.icon-with-text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem;
}
.icon-with-text .fas,
.icon-with-text .far,
.icon-with-text .fab {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .icon-with-text {
    gap: 0.375rem;
  }
}
