/* ==========================================================================
   Pub Ad Nexus - Professional PPC Management Portal Layout
   Mode: Modern PPC Ad-Tech Theme
   ========================================================================== */

/* 1. Global Typography & Core Reset */
body.layout-modern-portal {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.layout-modern-portal h1,
body.layout-modern-portal h2,
body.layout-modern-portal h3,
body.layout-modern-portal h4,
body.layout-modern-portal h5,
body.layout-modern-portal h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 2. Top Header & Glassmorphism Navigation */
body.layout-modern-portal .main-header {
  position: relative;
  z-index: 999;
}

body.layout-modern-portal .header-top {
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  font-size: 13px;
}

body.layout-modern-portal .header-top .info-list li {
  color: #94a3b8;
  font-weight: 500;
}

body.layout-modern-portal .header-top .info-list li i {
  color: #EF721F;
}

body.layout-modern-portal .header-top .info-list li a {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

body.layout-modern-portal .header-top .info-list li a:hover {
  color: #FFAE2F;
}

body.layout-modern-portal .header-lower {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

body.layout-modern-portal .sticky-header {
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(239, 114, 31, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

body.layout-modern-portal .main-menu .navigation > li > a {
  color: #f1f5f9 !important;
  font-weight: 600;
  font-size: 15px;
  padding: 28px 18px !important;
  transition: all 0.3s ease;
}

body.layout-modern-portal .main-menu .navigation > li.current > a,
body.layout-modern-portal .main-menu .navigation > li:hover > a {
  color: #FFAE2F !important;
  text-shadow: 0 0 12px rgba(255, 174, 47, 0.3);
}

body.layout-modern-portal .main-menu .navigation > li.dropdown > a {
  padding-right: 32px !important;
  position: relative;
}

body.layout-modern-portal .main-menu .navigation > li.dropdown > a:before {
  position: absolute !important;
  content: "\f107" !important;
  font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free', 'FontAwesome' !important;
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: inherit !important;
  opacity: 0.85 !important;
  line-height: 1 !important;
  transition: all 0.3s ease !important;
}

body.layout-modern-portal .main-menu .navigation > li.dropdown:hover > a:before {
  opacity: 1 !important;
  transform: translateY(-50%) rotate(180deg) !important;
  color: #FFAE2F !important;
}

/* Modern Dropdown Menus */
body.layout-modern-portal .main-menu .navigation > li > ul {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
  padding: 10px !important;
  backdrop-filter: blur(12px);
}

body.layout-modern-portal .main-menu .navigation > li > ul > li > a {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  transition: all 0.25s ease !important;
}

body.layout-modern-portal .main-menu .navigation > li > ul > li:hover > a {
  background: rgba(239, 114, 31, 0.15) !important;
  color: #FFAE2F !important;
  padding-left: 20px !important;
}

/* Header Action Buttons */
body.layout-modern-portal .header-lower .btn-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.layout-modern-portal .portal-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
  text-decoration: none;
}

body.layout-modern-portal .portal-login-btn:hover {
  background: rgba(239, 114, 31, 0.2);
  border-color: #EF721F;
  color: #FFAE2F !important;
  transform: translateY(-2px);
}

/* 3. Hero Section Modernization */
body.layout-modern-portal .banner-section {
  position: relative;
  background: #090d16;
  overflow: hidden;
}

body.layout-modern-portal .banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(239, 114, 31, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 174, 47, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

body.layout-modern-portal .banner-section .content-box {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
}

body.layout-modern-portal .banner-section .upper-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(239, 114, 31, 0.12);
  border: 1px solid rgba(239, 114, 31, 0.35);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

body.layout-modern-portal .banner-section h2 {
  font-size: 56px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.layout-modern-portal .banner-section p {
  font-size: 18px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 650px;
  margin-bottom: 35px;
}

/* PPC Live KPI Pills Bar in Hero */
body.layout-modern-portal .hero-kpi-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.layout-modern-portal .hero-kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 13px;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

body.layout-modern-portal .hero-kpi-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

body.layout-modern-portal .hero-kpi-chip strong {
  color: #FFAE2F;
}

/* 4. Professional SaaS Cards & Accordions */
body.layout-modern-portal .block-shadow {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.07);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.layout-modern-portal .block-shadow:hover {
  border-color: rgba(239, 114, 31, 0.4);
  box-shadow: 0 20px 40px -12px rgba(239, 114, 31, 0.15);
  transform: translateY(-4px);
}

body.layout-modern-portal .traffic-source-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

body.layout-modern-portal .traffic-source-card:hover {
  border-color: #EF721F;
  box-shadow: 0 15px 35px rgba(239, 114, 31, 0.12);
  transform: translateY(-5px);
}

body.layout-modern-portal .traffic-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.layout-modern-portal .traffic-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #475569;
  font-weight: 500;
}

body.layout-modern-portal .traffic-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #EF721F;
  font-weight: bold;
}

/* 5. Trust Section & Value Props */
body.layout-modern-portal .trust-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 100px 0;
  position: relative;
}

body.layout-modern-portal .trust-list li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 12px;
  color: #f1f5f9;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}

body.layout-modern-portal .trust-list li .check-icon {
  color: #22c55e;
  font-size: 16px;
}

/* 6. Buttons & Conversion Elements */
body.layout-modern-portal .theme-btn .text {
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(239, 114, 31, 0.3);
}

body.layout-modern-portal .theme-btn:hover .text {
  box-shadow: 0 8px 25px rgba(239, 114, 31, 0.45);
}

/* 7. Section Titles */
body.layout-modern-portal .sec-title .sub-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

body.layout-modern-portal .sec-title h2 {
  font-size: 40px;
  line-height: 1.25;
}

/* 8. Modern Footer */
body.layout-modern-portal .main-footer {
  background: #090d16 !important;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.layout-modern-portal .main-footer .footer-widget .widget-title h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

body.layout-modern-portal .main-footer .footer-widget .widget-title h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--theme-color);
  border-radius: 2px;
}

body.layout-modern-portal .main-footer .links-list li a {
  color: #94a3b8;
  transition: all 0.25s ease;
  display: inline-block;
}

body.layout-modern-portal .main-footer .links-list li a:hover {
  color: #FFAE2F;
  transform: translateX(5px);
}

body.layout-modern-portal .main-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  font-size: 14px;
}

@media (max-width: 991px) {
  body.layout-modern-portal .banner-section h2 {
    font-size: 38px;
  }
  body.layout-modern-portal .sec-title h2 {
    font-size: 30px;
  }
}