/* Mobile Header Component Styles */

/* Navigation bar base styles */
.mobile-header {
  position: relative;
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  border: none;
  box-shadow: none;
}

/* Logo styles */
.mobile-header .logo {
  height: 32px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-header .logo img {
  height: 100%;
  width: auto;
}

.header-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80px;
}

/* Language switch button styles */
.btn3 {
  width: 24px;
  height: 24px;
  border-radius: 20px;
  background: #4a5bf4;
  color: #fff;
  text-align: center;
  line-height: 40px;
  margin-left: 20px;
}

.btn3 img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Menu button styles */
.menu-btn {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.menu-btn::before {
  content: "";
  position: absolute;
  right: -8px;
  top: -8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.menu-btn:hover::before {
  background-color: rgba(0, 0, 0, 0.05);
}

.menu-btn .close-icon {
  display: none;
  width: 24px;
  height: 24px;
}

.menu-btn .menu-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.menu-btn.active .close-icon {
  display: block;
}

.menu-btn.active .menu-icon {
  display: none;
}

/* Overlay */
.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Menu panel styles */
.mobile-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 24px 20px;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.mobile-menu a:hover {
  opacity: 1;
}

.mobile-menu .contact-btn {
  display: block;
  background: #6366f1;
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 100px;
  margin-top: 30px;
  font-weight: 500;
  opacity: 1;
}

/* Prevent page scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Mobile adaptation */
@media (max-width: 768px) {
  .mobile-header {
    padding: 0 15px;
  }

  .header-btns {
    width: 70px;
  }

  .btn3 {
    margin-left: 15px;
  }
}

/* Dialog Modal Styles */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dialog-container {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 20px;
  max-width: 320px;
  width: 100%;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.dialog-overlay.active .dialog-container {
  transform: scale(1);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dialog-title {
  font-size: 18px;
  font-weight: 600;
  color: #252525;
  margin: 0;
}

.dialog-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.dialog-close:hover {
  background-color: #f5f5f5;
}

.dialog-content {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

.dialog-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.dialog-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dialog-btn.primary {
  background: #007bff;
  color: #fff;
}

.dialog-btn.primary:hover {
  background: #0056b3;
}

.dialog-btn.secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e0e0e0;
}

.dialog-btn.secondary:hover {
  background: #e9ecef;
}

.dialog-btn.danger {
  background: #dc3545;
  color: #fff;
}

.dialog-btn.danger:hover {
  background: #c82333;
}

/* Single button dialog */
.dialog-buttons.single {
  justify-content: center;
}

.dialog-buttons.single .dialog-btn {
  min-width: 120px;
}

/* Success dialog */
.dialog-container.success .dialog-title {
  color: #28a745;
}

.dialog-container.success .dialog-content {
  color: #155724;
}

/* Error dialog */
.dialog-container.error .dialog-title {
  color: #dc3545;
}

.dialog-container.error .dialog-content {
  color: #721c24;
}

/* Warning dialog */
.dialog-container.warning .dialog-title {
  color: #ffc107;
}

.dialog-container.warning .dialog-content {
  color: #856404;
}

/* Info dialog */
.dialog-container.info .dialog-title {
  color: #17a2b8;
}

.dialog-container.info .dialog-content {
  color: #0c5460;
}
