/* Note view page - inherits main.css theme */

/* Override body for note page (no custom cursor, allow text selection) */
body.note-page {
  cursor: auto;
  user-select: text;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.note-page .cursor,
body.note-page .cursor-follower,
body.note-page .ambient-light {
  display: none !important;
}

/* GPS Overlay */
.gps-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gps-overlay-content {
  text-align: center;
  max-width: 420px;
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gps-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: gpsIconPulse 2s ease-in-out infinite;
}

@keyframes gpsIconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

#gps-status {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-retry {
  background: var(--gradient-2);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-retry:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

.gps-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* Note Content */
.note-article {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.note-card-wrapper {
  background: var(--glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: noteCardEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.note-card-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 24px;
  z-index: -1;
}

.note-card-wrapper:hover::before {
  opacity: 0.05;
}

@keyframes noteCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.note-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  position: relative;
}

.note-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient-3);
  border-radius: 1px;
}

.note-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  background: var(--gradient-4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientAnimation 4s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.note-header time {
  font-size: 0.9rem;
  color: rgba(255, 215, 0, 0.6);
  font-weight: 300;
}

.note-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 600px) {
  .note-article {
    padding: 30px 15px;
  }

  .note-card-wrapper {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .gps-overlay-content {
    margin: 0 15px;
    padding: 2rem;
  }
}

/* RTL support */
[dir="rtl"] .note-header::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .note-body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

[dir="rtl"] .note-header h1 {
  font-family: 'Amiri', serif;
}
