/* ==========================================================================
   DEVPEGS - Organic Handwritten Notes, Sketchbook & Paper Aesthetics
   ========================================================================== */

:root {
  --font-hand: 'Caveat', 'Kalam', cursive;
  --font-serif: 'Newsreader', 'Lora', Georgia, serif;
  
  /* Highlighter Markers */
  --highlight-yellow: rgba(250, 204, 21, 0.38);
  --highlight-cyan: rgba(34, 211, 238, 0.35);
  --highlight-pink: rgba(244, 114, 182, 0.35);
  --highlight-green: rgba(74, 222, 128, 0.35);

  /* Sticky Note Papers */
  --sticky-yellow: #fef08a;
  --sticky-yellow-dark: #2a2610;
  --sticky-cyan: #bae6fd;
  --sticky-cyan-dark: #0c2738;
  --sticky-pink: #fbcfe8;
  --sticky-pink-dark: #331322;
  --sticky-green: #bbf7d0;
  --sticky-green-dark: #102e1c;
}

/* Paper Textures & Canvas */
.paper-notebook {
  position: relative;
  background-color: var(--bg-card);
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.paper-lined {
  background-image: repeating-linear-gradient(
    transparent,
    transparent 29px,
    rgba(255, 255, 255, 0.05) 30px
  );
  line-height: 30px;
}

.paper-margin-line {
  position: relative;
}
.paper-margin-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48px;
  width: 2px;
  background: rgba(244, 63, 94, 0.25);
  pointer-events: none;
}

/* Handwriting Typography & Sketch Doodles */
.handwritten {
  font-family: var(--font-hand);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.handwritten-annotation {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--accent-amber);
  line-height: 1.2;
  transform: rotate(-2deg);
  display: inline-block;
}

.handwritten-arrow {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--accent-cyan);
  vertical-align: middle;
  display: inline-block;
  transform: rotate(-5deg);
}

/* Highlighters */
.marker-highlight {
  position: relative;
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: linear-gradient(104deg, var(--highlight-yellow) 0%, rgba(250, 204, 21, 0.55) 98%);
  color: #fff;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.marker-cyan {
  background: linear-gradient(104deg, var(--highlight-cyan) 0%, rgba(34, 211, 238, 0.55) 98%);
}
.marker-pink {
  background: linear-gradient(104deg, var(--highlight-pink) 0%, rgba(244, 114, 182, 0.55) 98%);
}
.marker-green {
  background: linear-gradient(104deg, var(--highlight-green) 0%, rgba(74, 222, 128, 0.55) 98%);
}

/* Wobbly Hand-Drawn Sketch Borders */
.sketch-border {
  border: 2px solid var(--border-accent);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  transition: all 0.25s ease;
}

.sketch-border:hover {
  border-radius: 15px 225px 15px 255px/255px 15px 225px 15px;
  transform: translateY(-2px);
}

/* Realistic Sticky Notes (Post-it Memos) */
.sticky-note {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 3px 3px 14px 3px;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.45;
  color: #1e293b;
  margin: 1rem 0;
  max-width: 440px;
}

.sticky-note:hover {
  transform: scale(1.02) rotate(0deg) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* Washi Tape Strip on Top of Sticky Note */
.sticky-note::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 90px;
  height: 22px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  border-left: 2px dashed rgba(0, 0, 0, 0.1);
  border-right: 2px dashed rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
}

/* Sticky Note Variations */
.sticky-yellow {
  background: linear-gradient(145deg, #fef08a 0%, #fde047 100%);
  transform: rotate(-1.5deg);
}

.sticky-cyan {
  background: linear-gradient(145deg, #bae6fd 0%, #7dd3fc 100%);
  transform: rotate(1deg);
}

.sticky-pink {
  background: linear-gradient(145deg, #fbcfe8 0%, #f472b6 100%);
  transform: rotate(-1deg);
}

.sticky-green {
  background: linear-gradient(145deg, #bbf7d0 0%, #86efac 100%);
  transform: rotate(1.5deg);
}

.sticky-dark-mode-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.4rem;
  display: block;
}

/* Organic Doodle Callout Box */
.doodle-box {
  background: rgba(15, 23, 42, 0.7);
  border: 2px dashed var(--accent-indigo);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  position: relative;
}

.doodle-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-indigo);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-indigo);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Margin Sketch Notes (Right aligned annotations) */
.margin-note {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--accent-amber);
  border-left: 2px solid var(--accent-amber);
  padding-left: 0.75rem;
  margin: 0.75rem 0;
  font-style: italic;
}
