/* StickyMobile Theme Global Variables for Vue/Nuxt */
:root {
  /* Colors */
  --primary-color: #007bff;
  --highlight-color: #ff3e7d;
  --background-color: #f0f0f0;
  --text-color: #6c6c6c;
  --text-dark: #1f1f1f;
  --white: #ffffff;
  --black: #000000;

  /* Theme Colors */
  --blue-dark: #1b365e;
  --blue-light: #4bb3fd;
  --green-dark: #1d7a7a;
  --green-light: #2bcbba;
  --orange-dark: #bf6f00;
  --orange-light: #ff8500;
  --red-dark: #ba1e2d;
  --red-light: #ff3838;
  --yellow-dark: #bf6f00;
  --yellow-light: #ffb400;

  /* Spacing */
  --page-padding: 15px;
  --content-padding: 20px 15px;
  --border-radius: 15px;
  --card-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-family-primary: "Roboto", sans-serif;
  --font-family-secondary: "Source Sans Pro", sans-serif;
  --font-size-base: 13px;
  --line-height-base: 26px;

  /* Z-index layers */
  --z-page-content: 90;
  --z-header: 100;
  --z-footer: 100;
  --z-menu: 110;
  --z-preloader: 9999;
}

/* Vue/Nuxt specific overrides */
.nuxt-loading-indicator {
  z-index: var(--z-preloader);
}

/* Vue transition compatibility */
.page-enter-active,
.page-leave-active {
  transition: all 0.35s ease;
}

.page-enter-from,
.page-leave-to {
  opacity: 0;
  transform: translateX(20px);
}

/* Component scoped styling helpers */
.sticky-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  margin-left: var(--page-padding);
  margin-right: var(--page-padding);
  box-shadow: var(--card-shadow);
}

.sticky-content {
  margin: var(--content-padding);
}

.sticky-btn {
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  transition: all 0.35s ease;
}

.sticky-btn-primary {
  background-color: var(--highlight-color);
  color: var(--white);
  border: none;
}

.sticky-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile-first responsive helpers */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: block;
  }
}

/* Safe area support for notched devices */
.safe-area-top {
  padding-top: calc(20px + env(safe-area-inset-top));
}

.safe-area-bottom {
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* Vue component animation helpers */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform 0.3s ease;
}

.slide-up-enter-from,
.slide-up-leave-to {
  transform: translateY(100%);
}

/* LINE OA specific styles */
:global(.liff) #footer-bar {
  height: calc(70px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}

:global(.liff) #footer-bar a {
  padding: 10px 4px;
}

:global(.liff) #footer-bar a i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}