/* ==========================================================================
   Grupevim - Modern 2026 Mobile Navigation & Offcanvas CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Bottom Mobile Navigation Bar
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1030;
  padding: 4px 0 6px;
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.95) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4) !important;
}

.m-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  text-decoration: none !important;
  color: var(--text-muted, #64748b) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2px 0;
  cursor: pointer;
}

[data-theme="dark"] .m-bottom-nav-item {
  color: #94a3b8 !important;
}

.m-bottom-nav-item .m-nav-icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.m-bottom-nav-item .m-nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: -0.2px;
}

.m-bottom-nav-item:hover,
.m-bottom-nav-item:focus,
.m-bottom-nav-item.active {
  color: var(--tg-blue, #0088cc) !important;
}

[data-theme="dark"] .m-bottom-nav-item:hover,
[data-theme="dark"] .m-bottom-nav-item:focus,
[data-theme="dark"] .m-bottom-nav-item.active {
  color: #38bdf8 !important;
}

.m-bottom-nav-item:hover .m-nav-icon,
.m-bottom-nav-item.active .m-nav-icon {
  transform: translateY(-2px);
}

/* Elevated Floating Action Button (Grup Ekle) */
.m-bottom-nav-fab {
  flex: 0 0 auto;
  margin: 0 10px;
  z-index: 10;
  text-decoration: none !important;
}

.m-bottom-nav-fab .m-fab-circle {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -12px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .m-bottom-nav-fab .m-fab-circle {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.m-bottom-nav-fab .m-fab-circle i {
  font-size: 1.5rem;
  color: #ffffff !important;
  font-weight: 700;
  line-height: 1;
}

.m-bottom-nav-fab:hover .m-fab-circle,
.m-bottom-nav-fab:focus .m-fab-circle {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 136, 204, 0.5) !important;
}

/* --------------------------------------------------------------------------
   2. Mobile Offcanvas Navigation Drawer (#mobileMenu)
   -------------------------------------------------------------------------- */
.mobile-offcanvas {
  width: 360px !important;
  max-width: 92vw !important;
  background-color: var(--bg-card, #ffffff) !important;
  color: var(--text-main, #0f172a) !important;
  border-left: none !important;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15) !important;
}

.mobile-offcanvas-header {
  height: 64px;
  padding: 0 20px;
  background: var(--bg-card, #ffffff) !important;
  border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main, #0f172a) !important;
  letter-spacing: -0.02em;
}

.btn-close-modern {
  opacity: 0.7;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close-modern:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.06);
}

.mobile-offcanvas-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px !important;
  background: var(--bg-card, #ffffff) !important;
}

.mobile-nav-list {
  padding-left: 0;
  margin-bottom: 0;
}

.mobile-nav-item {
  margin-bottom: 6px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 14px;
  color: var(--text-main, #1e293b) !important;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-page, #f8fafc) !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus,
.mobile-menu-link.active {
  background: rgba(0, 136, 204, 0.08) !important;
  color: var(--tg-blue, #0088cc) !important;
  border-color: rgba(0, 136, 204, 0.3) !important;
  transform: translateX(3px);
}

.mobile-submenu-link {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text-muted, #64748b) !important;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.mobile-submenu-link:hover {
  color: var(--tg-blue, #0088cc) !important;
  background-color: rgba(0, 136, 204, 0.06) !important;
}

.mobile-menu-footer {
  border-top: 1px solid var(--border-color, #e2e8f0) !important;
  padding-top: 16px;
  background: var(--bg-card, #ffffff) !important;
}

/* Modern Theme Switch Card Pill - Overriding legacy button classes */
.mobile-theme-card,
.mobile-theme-btn,
.mobile-offcanvas .btn-theme-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: auto !important;
  padding: 14px 18px !important;
  background: var(--bg-page, #f8fafc) !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  border-radius: 16px !important;
  color: var(--text-main, #1e293b) !important;
  cursor: pointer;
  user-select: none;
  transform: none !important;
  position: static !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-bottom: 14px !important;
}

.mobile-theme-card:hover,
.mobile-theme-btn:hover,
.mobile-offcanvas .btn-theme-toggle:hover {
  border-color: var(--tg-blue, #0088cc) !important;
  background: rgba(0, 136, 204, 0.04) !important;
  transform: none !important;
}

.theme-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #f59e0b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.btn-mobile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none !important;
}

.btn-mobile-ad {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.btn-mobile-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
  color: #ffffff !important;
}

.btn-mobile-add {
  background: linear-gradient(135deg, #0088cc 0%, #005580 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35) !important;
}

.btn-mobile-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 136, 204, 0.45) !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   3. Dark Mode Overrides for Mobile Offcanvas
   -------------------------------------------------------------------------- */
[data-theme="dark"] .mobile-offcanvas,
[data-theme="dark"] .mobile-offcanvas-header,
[data-theme="dark"] .mobile-offcanvas-body,
[data-theme="dark"] .mobile-menu-footer {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .mobile-header-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .mobile-offcanvas-header,
[data-theme="dark"] .mobile-menu-footer {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .btn-close-modern {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .mobile-menu-link {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .mobile-menu-link:hover,
[data-theme="dark"] .mobile-menu-link:focus {
  background-color: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

[data-theme="dark"] .mobile-submenu-link {
  color: #94a3b8 !important;
}

[data-theme="dark"] .mobile-submenu-link:hover {
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.1) !important;
}

[data-theme="dark"] .mobile-theme-card,
[data-theme="dark"] .mobile-theme-btn,
[data-theme="dark"] .mobile-offcanvas .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .theme-icon-box {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fbbf24 !important;
  box-shadow: none !important;
}

[data-theme="dark"] .mobile-theme-card:hover,
[data-theme="dark"] .mobile-theme-btn:hover,
[data-theme="dark"] .mobile-offcanvas .btn-theme-toggle:hover {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
}

/* Back-drop blur filter */
.offcanvas-backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Media Queries */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none !important;
  }
  
  body {
    padding-bottom: 70px !important;
  }
  
  .footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: 12px !important;
  }
}

@media (min-width: 992px) {
  .mobile-bottom-nav,
  .navbar.fixed-bottom,
  nav.fixed-bottom,
  .navbar-toggler {
    display: none !important;
  }
  
  body {
    padding-bottom: 0 !important;
  }
}



