/* Custom properties for Eldora brand colors - Green Theme */
:root {
  --eldora-50: #f0fdf4;
  --eldora-100: #dcfce7;
  --eldora-200: #bbf7d0;
  --eldora-300: #86efac;
  --eldora-400: #4ade80;
  --eldora-500: #22c55e;
  --eldora-600: #16a34a;
  --eldora-700: #15803d;
  --eldora-800: #166534;
  --eldora-900: #14532d;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --ring: 0 0 0 3px rgba(22, 195, 94, 0.25);
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--slate-800);
  background-color: #ffffff;
  accent-color: var(--eldora-600);
  cursor: default;
}

/* Cursor styles */
* {
  cursor: default;
}

a, button, input, select, textarea, [role="button"], [tabindex] {
  cursor: pointer;
}

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

input[type="submit"], input[type="button"], button {
  cursor: pointer;
}

a:hover, button:hover {
  cursor: pointer;
}

/* Allow text selection for content */
p, h1, h2, h3, h4, h5, h6, span, div, li, ul, ol, section, article, main {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* Prevent text cursor on non-input elements but allow selection */
div, span, p, h1, h2, h3, h4, h5, h6, section, article, header, footer, main, nav, li, ul, ol {
  caret-color: transparent;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Glass effect */
.glass {
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, white 70%, transparent);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: none;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Custom prose styles for privacy page */
.prose {
  color: var(--slate-600);
}

.prose h2 {
  color: var(--slate-800);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

/* Custom shadow for soft effect */
.shadow-soft {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

/* Hover effects */
.hover\:text-eldora-600:hover {
  color: var(--eldora-600);
}

.hover\:bg-eldora-700:hover {
  background-color: var(--eldora-700);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Transitions */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Form elements */
input, select, textarea {
  border: 1px solid var(--slate-300);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--eldora-600);
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print styles */
@media print {
  .glass {
    backdrop-filter: none;
    background: white;
  }
  
  .shadow-soft {
    box-shadow: none;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --ring: 0 0 0 3px rgba(0, 0, 0, 0.8);
  }
  
  .glass {
    background: white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
  }
  
  .transition,
  .transition-shadow {
    transition: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}