/* KeepNotes for Nextcloud - Custom CSS */

:root {
  --color-nc-blue: #0082c9;
  --color-nc-dark-blue: #006fa8;
  --color-nc-light-blue: #e8f4fb;
  --color-nc-glow: rgba(0, 130, 201, 0.25);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism surfaces */
.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #0082c9 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Phone Mockup Frame */
.phone-mockup {
  position: relative;
  border-radius: 44px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 0 10px #1e293b,
              0 0 0 12px #334155;
  background: #0f172a;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.dark .phone-mockup {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 0 10px #020617,
              0 0 0 12px #1e293b;
}

.phone-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(0, 130, 201, 0.3),
              0 0 0 10px #1e293b,
              0 0 0 12px #0082c9;
}

/* Phone Notch / Camera */
.phone-camera-punch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 18px;
  background: #090d16;
  border-radius: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-camera-punch::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #1e293b;
  border-radius: 50%;
  box-shadow: inset 0 0 2px #38bdf8;
}

/* Gallery card preview */
.screenshot-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover {
  transform: translateY(-6px);
}

/* Lightbox Modal */
.lightbox-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

/* FAQ Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.open .faq-content {
  max-height: 500px;
  transition: max-height 0.35s cubic-bezier(0.9, 0, 0.8, 0.2);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Pulsing accent glow */
.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 130, 201, 0.4), rgba(56, 189, 248, 0.1));
  z-index: -1;
  opacity: 0.7;
  filter: blur(10px);
}
