/**
 * Customize default theme styling by overriding CSS variables:
 * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
 */

/**
 * Colors
 *
 * Each colors have exact same color scale system with 3 levels of solid
 * colors with different brightness, and 1 soft color.
 *
 * - `XXX-1`: The most solid color used mainly for colored text. It must
 *   satisfy the contrast ratio against when used on top of `XXX-soft`.
 *
 * - `XXX-2`: The color used mainly for hover state of the button.
 *
 * - `XXX-3`: The color for solid background, such as bg color of the button.
 *   It must satisfy the contrast ratio with pure white (#ffffff) text on
 *   top of it.
 *
 * - `XXX-soft`: The color used for subtle background such as custom container
 *   or badges. It must satisfy the contrast ratio when putting `XXX-1` colors
 *   on top of it.
 *
 *   The soft color must be semi transparent alpha channel. This is crucial
 *   because it allows adding multiple "soft" colors on top of each other
 *   to create a accent, such as when having inline code block inside
 *   custom containers.
 *
 * - `default`: The color used purely for subtle indication without any
 *   special meanings attached to it such as bg color for menu hover state.
 *
 * - `brand`: Used for primary brand colors, such as link text, button with
 *   brand theme, etc.
 *
 * - `tip`: Used to indicate useful information. The default theme uses the
 *   brand color for this by default.
 *
 * - `warning`: Used to indicate warning to the users. Used in custom
 *   container, badges, etc.
 *
 * - `danger`: Used to show error, or dangerous message to the users. Used
 *   in custom container, badges, etc.
 * -------------------------------------------------------------------------- */

/**
 * Customize default theme styling by overriding CSS variables:
 * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
 */

:root {
  --vp-c-default-1: var(--vp-c-gray-1);
  --vp-c-default-2: var(--vp-c-gray-2);
  --vp-c-default-3: var(--vp-c-gray-3);

  --vp-c-default-soft: var(--vp-c-gray-soft);

  --vp-c-brand-1: var(--vp-c-indigo-1);
  --vp-c-brand-2: var(--vp-c-indigo-2);
  --vp-c-brand-3: var(--vp-c-indigo-3);
  --vp-c-brand-soft: var(--vp-c-indigo-soft);

  --vp-c-tip-1: var(--vp-c-brand-1);
  --vp-c-tip-2: var(--vp-c-brand-2);
  --vp-c-tip-3: var(--vp-c-brand-3);
  --vp-c-tip-soft: var(--vp-c-brand-soft);

  --vp-c-warning-1: var(--vp-c-yellow-1);
  --vp-c-warning-2: var(--vp-c-yellow-2);
  --vp-c-warning-3: var(--vp-c-yellow-3);
  --vp-c-warning-soft: var(--vp-c-yellow-soft);

  --vp-c-danger-1: var(--vp-c-red-1);
  --vp-c-danger-2: var(--vp-c-red-2);
  --vp-c-danger-3: var(--vp-c-red-3);
  --vp-c-danger-soft: var(--vp-c-red-soft);
}

/* PWA prompt spacing on small screens */
@media (max-width: 640px) {
  .pwa-toast { left: 12px; right: 12px; }
}

/**
 * Component: Button
 * -------------------------------------------------------------------------- */

:root {
  --vp-button-brand-border: transparent;
  --vp-button-brand-text: var(--vp-c-white);
  --vp-button-brand-bg: var(--vp-c-brand-3);
  --vp-button-brand-hover-border: transparent;
  --vp-button-brand-hover-text: var(--vp-c-white);
  --vp-button-brand-hover-bg: var(--vp-c-brand-2);
  --vp-button-brand-active-border: transparent;
  --vp-button-brand-active-text: var(--vp-c-white);
  --vp-button-brand-active-bg: var(--vp-c-brand-1);
}

/**
 * Component: Home
 * -------------------------------------------------------------------------- */

:root {
  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: -webkit-linear-gradient(
    120deg,
    #bd34fe 30%,
    #41d1ff
  );

  --vp-home-hero-image-background-image: linear-gradient(
    -45deg,
    #bd34fe 50%,
    #47caff 50%
  );
  --vp-home-hero-image-filter: blur(44px);
}

@media (min-width: 640px) {
  :root {
    --vp-home-hero-image-filter: blur(56px);
  }
}

@media (min-width: 960px) {
  :root {
    --vp-home-hero-image-filter: blur(68px);
  }
}

/**
 * Component: Custom Block
 * -------------------------------------------------------------------------- */

:root {
  --vp-custom-block-tip-border: transparent;
  --vp-custom-block-tip-text: var(--vp-c-text-1);
  --vp-custom-block-tip-bg: var(--vp-c-brand-soft);
  --vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
}


/**
 * Component: Custom Fonts
 * -------------------------------------------------------------------------- */
 .VPHero .name {
  font-size: 50px;
}

 .VPHero .text {
  font-size: 25px;
}

 .VPHero .tagline {
  font-size: 18px;
}

.intro-header, .quick-nav, .root-intro, .readme-guides, .readme-guides-steps, .readme-apps-intro{
  display: none !important
}


 .apps-intro p{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  
}

img[src*="img.shields.io"]{
  width: auto;
  height: 30px; /* Standard shields.io badge height */
  min-height: 30px;
  max-height: 30px;
  vertical-align: middle;
  margin: 0.5rem 0.25rem;
    display: inline-block;
    background-color: inherit; /* Ensure background is transparent */
}

/* Container layout stability */
div :has(img[src*="img.shields.io"]) {
  min-height: 60px; /* Reserve space for badges */
}

a[href*="f-droid.org"], a[href*="play.google.com"]{
  text-decoration: none;
}

/* Font loading optimization - prevent FOIT/FOUT layout shifts */
@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: url('/assets/inter-roman-latin.Di8DUHzh.woff2') format('woff2');
}

/* Provide explicit font-family fallback chain */
body, html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
}


/* Image loading states */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.quick-nav a{
  margin: auto 0.3rem ;
}

/* Custom Elements Styles */
.custom-journey-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.journey-card {
  background: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.journey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.journey-card:hover::before {
  transform: scaleX(1);
}

.journey-card:hover {
  border-color: var(--vp-c-brand-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.journey-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--vp-c-text-1);
}

.journey-card p {
  color: var(--vp-c-text-2);
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.journey-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.journey-card li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--vp-c-text-2);
  display: flex;
  align-items: center;
}

.journey-card li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-size: contain;
  flex-shrink: 0;
}

.journey-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--vp-c-brand-3);
  color: var(--vp-c-white) !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none !important;
}

.journey-btn:hover {
  background: var(--vp-c-brand-2);
  transform: translateX(2px);
  box-shadow: 0 4px 12px -2px var(--vp-c-brand-3);
}

.journey-btn::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-size: contain;
  transition: transform 0.3s ease;
}

.journey-btn:hover::after {
  transform: translateX(4px);
}

/* Community Cards */
.community-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.community-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: var(--vp-c-brand-2);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.15);
}


.community-card strong {
  display: block;
  color: var(--vp-c-text-1);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.community-card span:last-child {
  font-size: 0.875rem;
  color: var(--vp-c-text-2);
  line-height: 1.5;
}
 
.community-card .icon {
font-size: x-large;
padding: 0.5rem;
margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-journey-selector {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .journey-card {
    padding: 1.75rem 1.25rem;
  }
  
  .community-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .community-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .community-cards {
    grid-template-columns: 1fr;
  }
  
  .journey-card h3 {
    font-size: 1.2rem;
  }
  
}

/* Dark mode enhancements */
.dark .journey-card {
  background: var(--vp-c-bg-soft);
  border-color: var(--vp-c-divider);
}

.dark .journey-card:hover {
  border-color: var(--vp-c-brand-1);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.3);
}

.dark .community-card {
  background: var(--vp-c-bg-soft);
  border-color: var(--vp-c-divider);
}

.dark .community-card:hover {
  border-color: var(--vp-c-brand-1);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.3);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .journey-card,
  .community-card,
  .journey-btn {
    transition: none;
  }
}

/* Focus states for keyboard navigation */
.journey-btn:focus-visible {
  outline: 2px solid var(--vp-c-brand-1);
  outline-offset: 2px;
}

.community-card:focus-visible {
  outline: 2px solid var(--vp-c-brand-1);
  outline-offset: 2px;
  border-color: var(--vp-c-brand-2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .journey-card,
  .community-card {
    border-width: 2px;
  }
}

/* offline */
.offline .online-only {
  display: none;
}

.offline::before {
  content: "You're currently offline";
  display: block;
  background: #ff6b6b;
  color: white;
  padding: 8px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vp-c-brand-3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vp-c-brand-2);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  z-index: 9998;
  backdrop-filter: blur(4px);
}

.back-to-top:hover {
  background: var(--vp-c-brand-2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

.back-to-top:active { transform: translateY(0); }

.back-to-top:focus-visible {
  outline: 3px solid var(--vp-c-brand-1);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .back-to-top { bottom: 1.25rem; right: 1rem; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}


/* Remove borders from inline code and badges */
.vp-doc code {
  border: none !important;
}

.vp-doc a code {
  border: none !important;
}

/* Clean styling for inline elements */
.vp-doc p code,
.vp-doc li code {
  border: none !important;
  box-shadow: none !important;
}

/* Inline SVG image sizing for icons in text */
.vp-doc img[src*="fdroid.svg"],
.vp-doc img[src*="playstore.svg"],
.vp-doc img[alt*="icon"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin: 0 2px;
}
