/* Principles Journal Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: linear-gradient(135deg, #F5F0E8 0%, #E8DFD4 50%, #DDD5C8 100%);
  min-height: 100vh;
  color: #2C2416;
}

/* Form elements */
textarea, input, button {
  font-family: 'Crimson Pro', Georgia, serif;
}

textarea:focus, input:focus, button:focus {
  outline: 2px solid #B8860B;
  outline-offset: 2px;
}

::placeholder {
  color: #8B7355;
  opacity: 0.7;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #E8DFD4;
}

::-webkit-scrollbar-thumb {
  background: #B8860B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #996F00;
}

/* Save indicator animations */
@keyframes saveIndicatorIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes saveIndicatorOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes checkmark {
  0% {
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.save-indicator {
  animation: saveIndicatorIn 0.3s ease forwards;
}

.save-indicator.hiding {
  animation: saveIndicatorOut 0.3s ease forwards;
}

.saving-pulse {
  animation: pulse 1s ease-in-out infinite;
}

/* Card hover effects */
.card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(44, 36, 22, 0.12);
}

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

/* Tab underline animation */
.tab-button {
  position: relative;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #B8860B;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab-button.active::after {
  transform: scaleX(1);
}

/* 5-Step card animations */
.step-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Pain point card */
.pain-card {
  transition: all 0.2s ease;
}

.pain-card:hover {
  border-left-width: 6px;
}

/* Tooltip styles */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: #2C2416;
  color: #F5F0E8;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tooltip:hover::before {
  opacity: 1;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Drag handle for window (macOS style) */
.drag-region {
  -webkit-app-region: drag;
}

.no-drag {
  -webkit-app-region: no-drag;
}

/* Print styles */
@media print {
  body {
    background: white;
  }
  
  header, .tab-button, button {
    display: none !important;
  }
  
  main {
    padding: 20px !important;
  }
}
