/* Custom styles for Code & Kopi */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom prose styles for blog content */
.prose {
  color: #374151;
  max-width: 65ch;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #1f2937;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h1 {
  font-size: 2.25em;
}

.prose h2 {
  font-size: 1.875em;
}

.prose h3 {
  font-size: 1.5em;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose a {
  color: #d97706;
  text-decoration: none;
  font-weight: 500;
}

.prose a:hover {
  color: #b45309;
  text-decoration: underline;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #dc2626;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875em;
}

.prose ul,
.prose ol {
  margin: 1.25em 0;
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose blockquote {
  border-left: 4px solid #d97706;
  padding-left: 1em;
  font-style: italic;
  color: #6b7280;
  margin: 1.5em 0;
}

.prose img {
  border-radius: 0.5rem;
  margin: 2em 0;
}

.prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2em 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Coffee steam animation */
@keyframes steam {
  0% {
    opacity: 0.6;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1.1);
  }
}

.steam {
  animation: steam 2s ease-in-out infinite;
}

/* Ketupat weave shimmer animation */
@keyframes weaveShimmer {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.15;
  }
}

.ketupat-pattern {
  animation: weaveShimmer 3s ease-in-out infinite;
}

/* Pandan green accent colors */
.text-pandan {
  color: #059669; /* emerald-600 */
}

.bg-pandan {
  background-color: #10b981; /* emerald-500 */
}

.border-pandan {
  border-color: #059669;
}

/* Cultural icon hover effect */
.cultural-icon {
  transition: all 0.3s ease;
}

.cultural-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav,
  footer {
    display: none;
  }
  
  .prose {
    max-width: none;
  }
}

