/* ============================================
   MOBLIGO MULTI-PAGE — MEGA DROPDOWN & EXTENDED UI
   ikas.com inspired navigation & layout system
   ============================================ */

/* === MEGA DROPDOWN NAVBAR === */
.navbar .nav-links { position: relative; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-item > a .nav-arrow { 
  width: 10px; height: 10px; transition: transform 0.3s ease; 
  display: inline-block; margin-left: 2px;
}
.nav-item:hover > a .nav-arrow { transform: rotate(180deg); }

/* Dropdown Panel */
.mega-dropdown {
  position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.98); backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 32px; min-width: 560px; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(8px); z-index: 100;
}
.nav-item:hover .mega-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-dropdown::before {
  content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px;
}

/* Dropdown Grid */
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dropdown-grid.triple { grid-template-columns: 1fr 1fr 1fr; min-width: 720px; }

.dropdown-link {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius-md); transition: var(--transition); text-decoration: none;
}
.dropdown-link:hover { background: var(--gray-50); }
.dropdown-link .dd-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0; background: var(--primary-glow); color: var(--primary);
}
.dropdown-link .dd-text h4 {
  font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 2px;
}
.dropdown-link .dd-text p {
  font-size: 12px; color: var(--gray-500); line-height: 1.4; margin: 0;
}

/* Dropdown Highlight Card */
.dropdown-highlight {
  grid-column: 1 / -1; margin-top: 16px; padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary-glow), rgba(90,200,250,0.08));
  border-radius: var(--radius-lg); border: 1px solid rgba(123,97,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
}
.dropdown-highlight .dh-text { font-size: 14px; font-weight: 600; color: var(--black); }
.dropdown-highlight .dh-text span { display: block; font-size: 12px; font-weight: 400; color: var(--gray-500); margin-top: 2px; }
.dropdown-highlight a {
  font-size: 13px; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.dropdown-highlight a:hover { color: var(--primary-dark); }

/* Premium Nav Link */
.nav-links .premium-link {
  color: var(--primary) !important; font-weight: 700 !important;
  position: relative;
}
.nav-links .premium-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-links .premium-link:hover::after { transform: scaleX(1); }

/* === ENHANCED FOOTER (ikas-style) === */
.footer-grid-extended {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-extended p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 280px; color: var(--gray-400); }
.footer-brand-extended img { height: 28px; filter: brightness(10); }
.footer-brand-extended .footer-social-inline { display: flex; gap: 10px; margin-top: 20px; }
.footer-brand-extended .footer-social-inline a {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: var(--transition); color: var(--gray-400);
}
.footer-brand-extended .footer-social-inline a:hover { background: var(--primary); color: white; }

.footer-col-ext h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-500); margin-bottom: 20px;
}
.footer-col-ext a {
  display: block; font-size: 13px; color: var(--gray-400); padding: 5px 0; transition: var(--transition);
}
.footer-col-ext a:hover { color: var(--white); transform: translateX(3px); }

.footer-bottom-ext {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px;
}
.footer-bottom-ext .legal-links { display: flex; gap: 20px; }
.footer-bottom-ext .legal-links a { color: var(--gray-500); transition: var(--transition); }
.footer-bottom-ext .legal-links a:hover { color: var(--white); }

/* === SUBPAGE HERO === */
.page-hero {
  padding: 140px 0 80px; position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #F0EDFF 0%, #E8E4FF 50%, #F5F3FF 100%);
  color: var(--black);
}
.page-hero::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 50%; height: 160%;
  background: radial-gradient(circle, rgba(123,97,255,0.08), transparent 60%); pointer-events: none;
}
.page-hero .page-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: var(--primary-glow); border: 1px solid rgba(123,97,255,0.15);
  border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--primary);
  margin-bottom: 24px;
}
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--black); }
.page-hero p { font-size: 18px; color: var(--gray-500); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }

/* === CONTENT SECTIONS (for subpages) === */
.content-section { padding: 100px 0; }
.content-section.alt { background: var(--gray-50); }
.content-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.content-grid-2col.reverse { direction: rtl; }
.content-grid-2col.reverse > * { direction: ltr; }
.content-text h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.content-text p { font-size: 16px; color: var(--gray-500); line-height: 1.7; margin-bottom: 24px; }
.content-visual { border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.content-visual img { width: 100%; display: block; }

/* === FEATURE LIST (checkmark) === */
.feature-checklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.feature-checklist li {
  display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--gray-600);
}
.feature-checklist li .check-circle {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(52,199,89,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-green); font-size: 12px; font-weight: 700; flex-shrink: 0;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
  .mega-dropdown { position: fixed; top: auto; left: 16px; right: 16px; transform: none; min-width: auto; }
  .nav-item:hover .mega-dropdown { transform: translateY(0); }
  .dropdown-grid.triple { grid-template-columns: 1fr 1fr; min-width: auto; }
  .footer-grid-extended { grid-template-columns: 1fr 1fr; }
  .content-grid-2col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 1024px) {
  .mega-dropdown { display: none !important; position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; min-width: auto !important; box-shadow: none !important; border: none !important; background: var(--gray-50) !important; padding: 4px 0 !important; margin: 4px 0 8px 0 !important; border-radius: 12px !important; }
  .nav-item.open .mega-dropdown { display: block !important; }
  .dropdown-grid, .dropdown-grid.triple { grid-template-columns: 1fr !important; min-width: auto !important; gap: 0 !important; }
  .dropdown-link { padding: 8px 12px !important; }
  .dropdown-link .dd-icon { width: 32px !important; height: 32px !important; font-size: 13px !important; border-radius: 8px !important; }
  .dropdown-link .dd-text h4 { color: var(--black) !important; font-size: 14px !important; }
  .dropdown-link .dd-text p { display: none !important; }
}
@media (max-width: 768px) {
  .footer-grid-extended { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-ext { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-ext .legal-links { flex-wrap: wrap; justify-content: center; }
  .page-hero { padding: 120px 0 60px; }
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  z-index: 9999; display: none; flex-direction: column;
  padding: 80px 24px 32px; overflow-y: auto;
}
.mobile-menu-overlay.active { display: flex; }
.mobile-menu-overlay .mobile-close {
  position: absolute; top: 24px; right: 24px; width: 40px; height: 40px;
  background: var(--gray-100); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 20px; cursor: pointer;
}
.mobile-menu-overlay .mobile-nav-group { margin-bottom: 24px; }
.mobile-menu-overlay .mobile-nav-title {
  font-size: 12px; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.mobile-menu-overlay .mobile-nav-link {
  display: block; padding: 12px 0; font-size: 16px; font-weight: 600;
  color: var(--black); border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-overlay .mobile-nav-link:hover { color: var(--primary); }
.mobile-menu-overlay .mobile-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* === PHONE MOCKUP === */
.phone-mockup {
  width: 260px; height: 520px; background: #1a1a2e; border-radius: 36px;
  padding: 12px; position: relative; box-shadow: 0 40px 80px rgba(0,0,0,0.2), inset 0 0 0 2px rgba(255,255,255,0.1);
  margin: 0 auto;
}
.phone-mockup::before { content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 80px; height: 6px; background: #2a2a3e; border-radius: 3px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 26px; overflow: hidden; }
.phone-screen .app-header { background: var(--primary); color: white; padding: 24px 16px 12px; font-size: 16px; font-weight: 700; }
.phone-screen .app-content { padding: 12px; }
.phone-screen .product-card { background: #f8f8f8; border-radius: 12px; padding: 14px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.phone-screen .product-card h4 { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.phone-screen .product-price { font-size: 14px; font-weight: 700; color: var(--primary); }

/* Phone Stats / Floating Badges */
.phone-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }
.float-stat { position: absolute; background: white; border-radius: 14px; padding: 12px 18px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); font-size: 13px; font-weight: 600; color: var(--black); white-space: nowrap; }
.float-stat strong { display: block; font-size: 22px; color: var(--primary); }
.float-stat.top-right { top: 40px; right: -60px; }
.float-stat.bottom-left { bottom: 60px; left: -60px; }

/* === DRAG DROP DEMO === */
.drag-drop-demo { background: #f8f9fa; border-radius: 20px; padding: 24px; display: grid; grid-template-columns: 140px 1fr; gap: 16px; border: 1px solid var(--gray-200); }
.components-panel { background: white; border-radius: 12px; padding: 16px; }
.components-panel h4 { font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.component-item { padding: 8px 12px; background: var(--primary-glow); border: 1px solid rgba(123,97,255,0.15); border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 6px; cursor: grab; }
.canvas-area { background: white; border-radius: 12px; padding: 16px; border: 2px dashed var(--gray-200); min-height: 200px; }
.dropped-component { padding: 10px 14px; background: #f0edff; border: 1px solid rgba(123,97,255,0.2); border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--black); margin-bottom: 8px; }

/* === FAQ === */
.faq-item { border: 1px solid var(--gray-200); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: white; }
.faq-question { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--black); transition: var(--transition); }
.faq-question:hover { background: var(--gray-50); }
.faq-arrow { font-size: 18px; color: var(--gray-400); transition: transform 0.3s ease; }
.faq-item.active .faq-arrow { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 24px 20px; color: var(--gray-600); line-height: 1.7; font-size: 14px; }
.faq-item.active .faq-answer { max-height: 300px; }

/* === HERO WITH VISUAL (2col) === */
.hero-split { padding: 120px 0 80px; }
.hero-split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-split .hero-text h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.hero-split .hero-text p { font-size: 17px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }

@media (max-width: 768px) {
  .hero-split .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-split { padding: 100px 0 60px; text-align: center; }
  .phone-mockup { width: 220px; height: 440px; }
  .float-stat { display: none; }
  .drag-drop-demo { grid-template-columns: 1fr; }
}

