/* =====================================================
   FOCUS MODE — "The app pursues you"
   ===================================================== */

/* Focus overlay - takes over when there's a priority task */
.focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.focus-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.focus-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.focus-overlay.active .focus-card {
  transform: scale(1);
}

.focus-header {
  background: linear-gradient(135deg, var(--mad-red) 0%, #C62828 100%);
  color: white;
  padding: 16px 20px;
  text-align: center;
  border-bottom: 3px solid var(--ink);
}

.focus-label {
  font-family: 'Bangers', cursive;
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.9;
}

.focus-urgency {
  font-family: 'Bangers', cursive;
  font-size: 28px;
  letter-spacing: 2px;
  margin-top: 4px;
}

.focus-body {
  padding: 24px;
  text-align: center;
}

.focus-task-name {
  font-family: 'Bangers', cursive;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.focus-tag {
  padding: 6px 12px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  font-size: 14px;
  font-weight: bold;
}

.focus-tag.category {
  background: var(--mad-blue);
  color: white;
}

.focus-tag.points {
  background: var(--mad-yellow);
  color: var(--ink);
}

.focus-tag.stakes {
  background: var(--mad-red);
  color: white;
}

.focus-tag.overdue {
  background: #C62828;
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.focus-stakes {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  font-style: italic;
}

.focus-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-btn {
  padding: 16px 24px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-family: 'Bangers', cursive;
  font-size: 24px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 4px 4px 0 var(--ink);
}

.focus-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.focus-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.focus-btn.done {
  background: linear-gradient(135deg, var(--green) 0%, #2E7D32 100%);
  color: white;
}

.focus-btn.snooze {
  background: white;
  color: var(--ink);
  font-size: 18px;
}

.focus-skip {
  margin-top: 16px;
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.focus-skip:hover {
  color: #666;
}

/* Molt's message */
.focus-molt {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 12px;
  font-size: 14px;
  color: #666;
}

.focus-molt::before {
  content: '🦎 ';
}

/* =====================================================
   CELEBRATION MODE — Variable Intensity
   ===================================================== */

.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Intensity levels change the vibe */
.celebration-overlay.intensity-quick {
  background: rgba(0, 0, 0, 0.3);
}

.celebration-overlay.intensity-medium {
  background: rgba(0, 0, 0, 0.5);
}

.celebration-overlay.intensity-hard {
  background: rgba(0, 0, 0, 0.7);
}

.celebration-overlay.intensity-boss {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.celebration-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.celebration-card {
  text-align: center;
  color: white;
  transform: scale(0.5);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.celebration-overlay.active .celebration-card {
  transform: scale(1);
}

/* Quick: subtle check animation */
.celebration-overlay.intensity-quick .celebration-card {
  transition: transform 0.2s ease-out;
}

.celebration-emoji {
  font-size: 80px;
}

/* Only bounce for hard+ */
.celebration-overlay.intensity-hard .celebration-emoji,
.celebration-overlay.intensity-boss .celebration-emoji {
  animation: bounce 0.6s ease infinite;
}

.celebration-overlay.intensity-quick .celebration-emoji {
  font-size: 48px;
  animation: none;
}

.celebration-overlay.intensity-medium .celebration-emoji {
  font-size: 60px;
  animation: pop 0.4s ease-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  50% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.celebration-points {
  font-family: 'Bangers', cursive;
  color: var(--mad-yellow);
  text-shadow: 4px 4px 0 var(--ink);
  margin: 20px 0;
  animation: countUp 0.6s ease-out;
}

/* Scale points text by intensity */
.celebration-overlay.intensity-quick .celebration-points {
  font-size: 36px;
  text-shadow: 2px 2px 0 var(--ink);
}

.celebration-overlay.intensity-medium .celebration-points {
  font-size: 48px;
}

.celebration-overlay.intensity-hard .celebration-points {
  font-size: 64px;
}

.celebration-overlay.intensity-boss .celebration-points {
  font-size: 80px;
  animation: countUp 0.6s ease-out, glow 1s ease-in-out infinite;
}

@keyframes countUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px var(--mad-yellow)); }
  50% { filter: drop-shadow(0 0 30px var(--mad-yellow)); }
}

.celebration-bonus {
  font-family: 'Comic Neue', cursive;
  font-size: 24px;
  color: var(--mad-yellow);
  margin-bottom: 10px;
  animation: pop 0.4s ease-out 0.3s both;
}

.celebration-message {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.celebration-overlay.intensity-quick .celebration-message {
  font-size: 18px;
  font-family: 'Comic Neue', cursive;
  letter-spacing: 0;
}

.celebration-overlay.intensity-medium .celebration-message {
  font-size: 22px;
}

.celebration-overlay.intensity-hard .celebration-message {
  font-size: 28px;
}

.celebration-overlay.intensity-boss .celebration-message {
  font-size: 36px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  75% { transform: translateX(5px) rotate(1deg); }
}

.celebration-streak {
  font-size: 18px;
  opacity: 0.8;
}

.celebration-continue {
  margin-top: 30px;
  padding: 16px 40px;
  background: var(--mad-yellow);
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-family: 'Bangers', cursive;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.celebration-continue:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* Hide continue button for quick completions (auto-dismiss) */
.celebration-overlay.intensity-quick .celebration-continue {
  display: none;
}

/* Molt avatar for boss battles */
.celebration-molt-avatar {
  font-size: 100px;
  margin-bottom: 10px;
  animation: moltDance 0.8s ease-in-out infinite;
}

@keyframes moltDance {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 401;
  pointer-events: none;
}

/* =====================================================
   SNOOZE MODAL
   ===================================================== */

.snooze-modal {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.snooze-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
  box-shadow: 6px 6px 0 var(--ink);
}

.snooze-title {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.snooze-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snooze-option {
  padding: 12px 16px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.snooze-option:hover {
  background: var(--mad-yellow);
  transform: translateX(4px);
}

.snooze-cancel {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: none;
  border: 2px dashed #999;
  border-radius: 8px;
  color: #666;
  cursor: pointer;
}

/* Blocker input in snooze */
.snooze-blocker {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #ccc;
}

.snooze-blocker-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.snooze-blocker-input {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Comic Neue', cursive;
}
