/* Kathyz.net Custom Styles - Production Ready Tailwind CSS */

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Layout utilities */
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.mt-20 { margin-top: 5rem; }
.mt-12 { margin-top: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }

/* Color utilities */
.text-red-500 { color: #ef4444; }
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-white { color: #ffffff; }
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }

/* Border utilities */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Focus utilities */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #f97316; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }

/* Flex utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0px; }
.right-0 { right: 0px; }
.z-50 { z-index: 50; }

/* Width utilities */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }

/* Cursor utilities */
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

/* Hidden utility */
.hidden { display: none; }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease-in; }
.animate-bounce { animation: bounce 2s infinite; }

/* Custom components */
.search-suggestions { 
  position: absolute; 
  background: white; 
  border: 1px solid #cbd5e1; 
  border-radius: 0.375rem; 
  width: 100%; 
  max-width: 400px; 
  margin-top: 0.25rem; 
  z-index: 50; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.search-suggestion { 
  padding: 0.5rem 1rem; 
  cursor: pointer; 
}

.search-suggestion:hover { 
  background-color: #fef3c7; 
}

/* Material Design card hover effects */
md-outlined-card:hover {
  transform: translateY(-4px);
  transition: transform 0.3s;
  cursor: pointer;
}

/* Duck container styles */
.duck-container {
  margin: 30px auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
  animation: bounce 2s infinite;
}

.duck-img {
  width: 80%;
  filter: brightness(0) invert(1) drop-shadow(0 5px 15px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.duck-img:hover {
  transform: rotate(10deg) scale(1.1);
}

/* Technical details */
.tech-details {
  background: rgba(0,0,0,0.05);
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  text-align: left;
  max-width: 800px;
  margin: 20px auto;
  word-break: break-all;
}

.tech-details p {
  margin: 5px 0;
}

/* Input styles */
input[type="text"] {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #f97316;
}

/* Button styles for Material Design compatibility */
md-filled-button, md-outlined-button {
  margin: 0.25rem;
}

/* Additional utility classes */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.p-8 { padding: 2rem; }
.p-3 { padding: 0.75rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.bg-orange-50 { background-color: #fff7ed; }
.border-orange-200 { border-color: #fed7aa; }
.text-orange-800 { color: #9a3412; }
.bg-slate-50 { background-color: #f8fafc; }

/* Topbar specific classes */
.w-36 { width: 9rem; }
.mt-10 { margin-top: 2.5rem; }
.flex-col { flex-direction: column; }
.text-slate-900 { color: #0f172a; }
.no-underline { text-decoration: none; }
.gap-3 { gap: 0.75rem; }

/* Grid responsive utilities */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Additional spacing and layout utilities */
.gap-8 { gap: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.space-y-1 > * + * { margin-top: 0.25rem; }

/* Responsive design improvements */
@media (max-width: 768px) {
  .text-8xl { font-size: 4rem; }
  .text-5xl { font-size: 2.5rem; }
  .text-4xl { font-size: 2rem; }
  .text-3xl { font-size: 1.5rem; }
  .px-6 { padding-left: 1rem; padding-right: 1rem; }
  .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
  .duck-container {
    width: 250px;
    height: 250px;
  }
  .mb-16 { margin-bottom: 2rem; }
  .mb-12 { margin-bottom: 2rem; }
}
