/* ============================================================================
   COMMON STYLES

   Shared components used across all pages:
   - Global resets and base styles
   - Header and navigation
   - Footer
   - Page containers and layouts
   - Utility classes
   ============================================================================ */

/* ===== Global Reset and Base Styles ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--section-dark); /* Match body gradient start color to prevent black gap */
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  overflow-x: hidden;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 1) 0%,
    rgba(20, 35, 60, 1) 25%,
    rgba(25, 40, 70, 1) 50%,
    rgba(20, 35, 60, 1) 75%,
    rgba(15, 23, 42, 1) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove underlines from button-styled links */
a.nav-beta-btn,
a.start-now-btn,
a.btn,
a[class*="btn"],
a.pricing-btn,
a.platform-btn,
a.app-store-btn,
a.modal-button,
button {
  text-decoration: none !important;
}

/* ===== Container ===== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

/* ============================================================================
   HEADER AND NAVIGATION
   ============================================================================ */

#header {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: var(--z-index-header);
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
  transition: all var(--transition-normal);
}

#header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-glow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  height: 45px;
  width: auto;
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Beta Badge */
.logo .beta-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  white-space: nowrap;
  width: 54px;
  height: 28px;
  text-align: center;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  line-height: 1;
}

/* Navigation */
#nav {
  display: flex;
  align-items: center;
}

#nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

#nav li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-normal);
  font-size: 14px;
  position: relative;
  letter-spacing: 0px;
}

/* Navigation hover effect - animated underline */
nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-blue), var(--light-blue));
  transition: width var(--transition-normal);
  border-radius: 1px;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--light-blue);
  text-decoration: none;
}

/* Beta Button in Navigation */
.nav-beta-btn {
  background: linear-gradient(
    135deg,
    var(--navy-light),
    var(--sky-blue)
  ) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  transition: all var(--transition-normal) !important;
  box-shadow: 0 3px 10px rgba(96, 165, 250, 0.3);
  opacity: 1 !important;
  white-space: nowrap !important;
}

.nav-beta-btn::after {
  display: none !important;
}

.nav-beta-btn:hover {
  background: linear-gradient(
    135deg,
    var(--sky-blue),
    var(--navy-light)
  ) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(96, 165, 250, 0.5) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none !important;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--sky-blue);
  cursor: pointer;
}

/* Utility for responsive nav items */
@media (min-width: 993px) {
  .mobile-only {
    display: none !important;
  }
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .menu-toggle {
    display: block !important;
  }

  #nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    padding: 0;
    
    /* Hidden by default, shown when active */
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
  }

  #nav.active {
    display: flex;
  }

  #nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  #nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  nav a {
    display: block;
    padding: 1rem;
    width: 100%;
  }
  
  /* Remove hover underline on mobile since it's full width */
  nav a::after {
    display: none;
  }

  /* Center the button in the list */
  #nav .nav-beta-btn {
    display: inline-block !important;
    margin: 1.5rem auto;
    width: auto;
  }
  
  /* Ensure mobile-only items are visible */
  .mobile-only {
    display: block;
  }
}

/* Tablet and smaller - adjust header to prevent overlap */
@media (max-width: 768px) {
  .header-content {
    gap: 1rem;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}

/* Mobile - make beta badge smaller to prevent overlap */
@media (max-width: 520px) {
  .logo .beta-badge {
    padding: 4px 8px;
    font-size: 10px;
    width: auto;
    height: auto;
    min-width: 40px;
    margin-left: 6px;
  }

  .nav-beta-btn {
    padding: 6px 16px !important;
    font-size: 13px !important;
  }
}

/* iPhone and small mobile - more aggressive sizing */
@media (max-width: 430px) {
  .logo img {
    height: 35px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo .beta-badge {
    padding: 3px 6px;
    font-size: 9px;
    min-width: 35px;
    margin-left: 4px;
  }

  .nav-beta-btn {
    padding: 5px 12px !important;
    font-size: 12px !important;
  }
}

/* Very small screens - hide logo text to prevent overlap */
@media (max-width: 380px) {
  .logo-text {
    display: none;
  }

  .logo .beta-badge {
    margin-left: 8px;
  }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.main-footer {
  background: var(--section-dark);
  border-top: 1px solid var(--white);
  padding-top: 30px;
  padding-bottom: 30px;
}

.main-footer .footer-bottom {
  background: transparent;
  border-top: none;
}

.footer-bottom .row {
  display: flex;
  align-items: center;
}

.footer-bottom .copyright {
  color: rgba(255, 255, 255, 0.9);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--white) !important;
  position: relative;
  text-decoration: none;
  transition: all var(--transition-normal);
}

/* Footer nav animated underline - same as header */
.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-blue), var(--light-blue));
  transition: width var(--transition-normal);
  border-radius: 1px;
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-nav a:hover {
  color: var(--light-blue) !important;
  text-decoration: none;
}

/* Desktop-only: Right-align 2-link footer temporarily (remove when restoring 3-link footer after Paddle) */
@media (min-width: 992px) {
  .footer-nav {
    justify-content: flex-end;
  }
}

/* Responsive footer */
@media (max-width: 768px) {
  .main-footer {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .footer-bottom .row {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Page Wrapper */
.page-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Auto Container */
.auto-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Row and Column Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Bootstrap-style columns */
.col-lg-12 {
  width: 100%;
  padding: 0 15px;
}
.col-lg-6 {
  width: 50%;
  padding: 0 15px;
}
.col-md-12 {
  width: 100%;
  padding: 0 15px;
}
.col-sm-12 {
  width: 100%;
  padding: 0 15px;
}

@media (max-width: 991px) {
  .col-lg-6 {
    width: 100%;
  }
}

/* ============================================================================
   LIST STYLES
   ============================================================================ */

/* List with custom bullet icons */
.list-style-one {
  list-style: none;
  padding-left: 8px;
  margin: 0;
}

.list-style-one li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.8;
}

.list-style-one li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--white);
  font-weight: bold;
  font-size: 14px;
}

/* Keep bullets dark for black text sections */
.list-style-one li[style*="color: #000000"]::before {
  color: #000000 !important;
}

/* Regular bullet list styling (for lists without list-style-one class) */
.blog-details ul:not(.list-style-one) {
  list-style-type: disc;
  padding-left: 25px;
  margin: 0 0 15px 0;
}

.blog-details ul:not(.list-style-one) li {
  margin-bottom: 12px;
  line-height: 1.8;
  padding-left: 5px;
}
