/**
 * Custom Tailwind CSS Classes for Pokhari Cottage
 * This file contains all the custom classes we need
 * 
 * @package PokhariCottage
 * @since 1.0.0
 */

/* Tailwind base/components/utilities are provided by the CDN script; do not import CSS URLs here */

/* Custom Color Variables */
:root {
  --earth-50: #faf8f5;
  --earth-100: #f3f0e8;
  --earth-200: #e6ddd0;
  --earth-300: #d4c4a8;
  --earth-400: #c2ab80;
  --earth-500: #b09258;
  --earth-600: #9e7a40;
  --earth-700: #8b6232;
  --earth-800: #7a4a24;
  --earth-900: #693216;
  
  --forest-50: #f0f9f4;
  --forest-100: #dcf2e4;
  --forest-200: #bce5cd;
  --forest-300: #8dd1ab;
  --forest-400: #56b882;
  --forest-500: #2d9a5c;
  --forest-600: #237a4a;
  --forest-700: #1e613c;
  --forest-800: #1c4d32;
  --forest-900: #19402b;
  
  --nepali-50: #fefce8;
  --nepali-100: #fef9c3;
  --nepali-200: #fef08a;
  --nepali-300: #fde047;
  --nepali-400: #facc15;
  --nepali-500: #d4af37;
  --nepali-600: #ca8a04;
  --nepali-700: #a16207;
  --nepali-800: #854d0e;
  --nepali-900: #713f12;
}

/* Earth Colors */
.bg-earth-50 { background-color: var(--earth-50); }
.bg-earth-100 { background-color: var(--earth-100); }
.bg-earth-200 { background-color: var(--earth-200); }
.bg-earth-300 { background-color: var(--earth-300); }
.bg-earth-400 { background-color: var(--earth-400); }
.bg-earth-500 { background-color: var(--earth-500); }
.bg-earth-600 { background-color: var(--earth-600); }
.bg-earth-700 { background-color: var(--earth-700); }
.bg-earth-800 { background-color: var(--earth-800); }
.bg-earth-900 { background-color: var(--earth-900); }

.text-earth-50 { color: var(--earth-50); }
.text-earth-100 { color: var(--earth-100); }
.text-earth-200 { color: var(--earth-200); }
.text-earth-300 { color: var(--earth-300); }
.text-earth-400 { color: var(--earth-400); }
.text-earth-500 { color: var(--earth-500); }
.text-earth-600 { color: var(--earth-600); }
.text-earth-700 { color: var(--earth-700); }
.text-earth-800 { color: var(--earth-800); }
.text-earth-900 { color: var(--earth-900); }

.border-earth-200 { border-color: var(--earth-200); }
.border-earth-300 { border-color: var(--earth-300); }
.border-earth-500 { border-color: var(--earth-500); }

/* Forest Colors */
.bg-forest-50 { background-color: var(--forest-50); }
.bg-forest-100 { background-color: var(--forest-100); }
.bg-forest-200 { background-color: var(--forest-200); }
.bg-forest-300 { background-color: var(--forest-300); }
.bg-forest-400 { background-color: var(--forest-400); }
.bg-forest-500 { background-color: var(--forest-500); }
.bg-forest-600 { background-color: var(--forest-600); }
.bg-forest-700 { background-color: var(--forest-700); }
.bg-forest-800 { background-color: var(--forest-800); }
.bg-forest-900 { background-color: var(--forest-900); }

.text-forest-50 { color: var(--forest-50); }
.text-forest-100 { color: var(--forest-100); }
.text-forest-200 { color: var(--forest-200); }
.text-forest-300 { color: var(--forest-300); }
.text-forest-400 { color: var(--forest-400); }
.text-forest-500 { color: var(--forest-500); }
.text-forest-600 { color: var(--forest-600); }
.text-forest-700 { color: var(--forest-700); }
.text-forest-800 { color: var(--forest-800); }
.text-forest-900 { color: var(--forest-900); }

.border-forest-200 { border-color: var(--forest-200); }
.border-forest-300 { border-color: var(--forest-300); }
.border-forest-500 { border-color: var(--forest-500); }

/* Nepali Colors */
.bg-nepali-50 { background-color: var(--nepali-50); }
.bg-nepali-100 { background-color: var(--nepali-100); }
.bg-nepali-200 { background-color: var(--nepali-200); }
.bg-nepali-300 { background-color: var(--nepali-300); }
.bg-nepali-400 { background-color: var(--nepali-400); }
.bg-nepali-500 { background-color: var(--nepali-500); }
.bg-nepali-600 { background-color: var(--nepali-600); }
.bg-nepali-700 { background-color: var(--nepali-700); }
.bg-nepali-800 { background-color: var(--nepali-800); }
.bg-nepali-900 { background-color: var(--nepali-900); }

.text-nepali-50 { color: var(--nepali-50); }
.text-nepali-100 { color: var(--nepali-100); }
.text-nepali-200 { color: var(--nepali-200); }
.text-nepali-300 { color: var(--nepali-300); }
.text-nepali-400 { color: var(--nepali-400); }
.text-nepali-500 { color: var(--nepali-500); }
.text-nepali-600 { color: var(--nepali-600); }
.text-nepali-700 { color: var(--nepali-700); }
.text-nepali-800 { color: var(--nepali-800); }
.text-nepali-900 { color: var(--nepali-900); }

.border-nepali-200 { border-color: var(--nepali-200); }
.border-nepali-300 { border-color: var(--nepali-300); }
.border-nepali-500 { border-color: var(--nepali-500); }

/* Custom Fonts */
.font-heading { font-family: 'Poppins', sans-serif; }
.font-display { font-family: 'Dancing Script', cursive; }
.font-body { font-family: 'Open Sans', sans-serif; }

.heading-font { font-family: 'Poppins', sans-serif; }
.display-font { font-family: 'Dancing Script', cursive; }

/* Custom Shadows */
.shadow-warm {
  box-shadow: 0 10px 15px -3px rgba(139, 98, 50, 0.1), 0 4px 6px -2px rgba(139, 98, 50, 0.05);
}

.shadow-nepali {
  box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.2), 0 4px 6px -2px rgba(212, 175, 55, 0.1);
}

/* Custom Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--forest-700), var(--forest-800));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 154, 92, 0.3);
  color: white;
  text-decoration: none;
}

.btn-outline {
  border: 2px solid var(--forest-600);
  color: var(--forest-600);
  background: transparent;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: var(--forest-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 154, 92, 0.2);
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--earth-700), var(--earth-800));
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.btn-ghost {
  color: var(--forest-600);
  background: transparent;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost:hover {
  background: var(--forest-100);
  color: var(--forest-700);
  text-decoration: none;
}

/* Form Elements */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--earth-300);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  color: var(--earth-800);
}

.form-input:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(45, 154, 92, 0.1);
}

.form-input::placeholder {
  color: var(--earth-500);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--earth-300);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  color: var(--earth-800);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232d9a5c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-size: 1.5em 1.5em;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.form-select:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(45, 154, 92, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--earth-300);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  color: var(--earth-800);
  resize: vertical;
  min-height: 100px;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(45, 154, 92, 0.1);
}

.form-textarea::placeholder {
  color: var(--earth-500);
}

.form-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--earth-300);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-checkbox:checked {
  background: var(--forest-500);
  border-color: var(--forest-500);
}

.form-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 154, 92, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cartBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-in-out; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease-out; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-out; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-gold { animation: pulse-gold 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-cart-bounce { animation: cartBounce 0.6s ease-in-out; }

.fade-in-down { animation: fadeInDown 0.5s ease-out; }
.fade-in-up { animation: fadeInUp 0.5s ease-out; }

/* Transitions */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.transition-shadow { transition: box-shadow 0.3s ease; }

/* Hover Effects */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\:-translate-y-2:hover { transform: translateY(-8px); }

/* Focus States */
.focus\:ring-forest:focus { box-shadow: 0 0 0 3px rgba(45, 154, 92, 0.1); }
.focus\:ring-nepali:focus { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.focus\:border-forest:focus { border-color: var(--forest-500); }
.focus\:border-nepali:focus { border-color: var(--nepali-500); }

/* Responsive Utilities */
@media (max-width: 768px) {
  .mobile\:text-sm { font-size: 0.875rem; }
  .mobile\:text-base { font-size: 1rem; }
  .mobile\:p-4 { padding: 1rem; }
  .mobile\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .mobile\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}

/* Print Styles */
@media print {
  .no-print { display: none !important; }
  .btn-primary, .btn-outline, .btn-secondary, .btn-ghost {
    background: white !important;
    color: black !important;
    border: 1px solid black !important;
  }
}

/* Accessibility */
.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;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-primary, .btn-outline, .btn-secondary {
    border: 2px solid currentColor;
  }
}
