/* Karsaz Header & Footer Styles - Must load before core.css */

:root {
  --main-color: 20 70 130;
  --secondary-color: 119 121 126;
  --gray-color: 245 245 245;
}

/* Header Styles - karsazbs.com */
/* Note: background-color is set inline from settings in _PublicLayout.cshtml */
.header-karsaz {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 1rem;
  padding-bottom: 0rem;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
}

.dark .header-karsaz {
  background-color: rgb(31 41 55);
}

.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-menu {
  font-size: 0.875rem;
}

.header-menu-link {
  color: rgb(var(--secondary-color));
  transition: color 0.3s ease;
}

.header-menu-link:hover,
.header-menu-link.active {
  color: rgb(var(--main-color));
}

.dark .header-menu-link {
  color: rgba(255, 255, 255, 0.8);
}

.header-login-btn {
  border: 1px solid rgb(var(--main-color));
  padding: 0.375rem 1.25rem;
  font-weight: 700;
  border-radius: 0.75rem;
  background-color: rgb(var(--main-color));
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.header-login-btn:hover {
  background-color: transparent;
  color: rgb(var(--main-color));
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: rgb(var(--main-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--main-color), 0.8);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--main-color)) #f1f1f1;
}

/* Header Responsive */
@media (max-width: 991.98px) {
  .header-menu {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .header-menu-mobile {
    display: none !important;
  }
}

/* Footer Styles - karsazbs.com */
.fill-gray {
  fill: rgb(var(--gray-color));
}

.dark .fill-dark {
  fill: rgb(31 41 55);
}

.bg-gray {
  background-color: rgb(var(--gray-color));
}

.dark .bg-dark {
  background-color: rgb(31 41 55);
}

/* Footer background will be set inline from settings */
/* .footer-karsaz background-color is set inline from settings in _PublicLayout.cshtml */

.text-main {
  color: rgb(var(--main-color));
}

.text-secondary {
  color: rgb(var(--secondary-color));
}

.footer-karsaz {
  direction: rtl;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  font-size: 0.875rem;
}

.footer-link {
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

.footer-link:hover {
  text-decoration: none;
}

.footer-social-links a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-social-links a:hover {
  opacity: 0.7;
}

.footer-scroll-top {
  background-color: rgba(var(--main-color), 0.9);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.footer-scroll-top:hover {
  background-color: rgb(var(--main-color));
  transform: translateY(-2px);
}

.footer-symbols {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.enamad-default img {
  max-width: 100px;
  height: auto;
}

@media (max-width: 768px) {
  .footer-karsaz {
    text-align: center;
  }

  .footer-logo-section {
    text-align: center;
  }

  .footer-description {
    text-align: center !important;
  }
}
