/* Chaiicekool Custom Styles */

/* Font families */
body {
    font-family: 'Sarabun', sans-serif;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'Kanit', sans-serif;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
                transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Float keyframe */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
.animate-float {
    animation: float 3.5s ease-in-out infinite;
}

/* Hero gradient */
.gradient-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #0ea5e9 100%);
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #60a5fa; }

/* Prose content in articles */
.prose h2 { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.5rem; color: #1e3a8a; margin: 1.5rem 0 0.75rem; }
.prose h3 { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 1.2rem; color: #1d4ed8; margin: 1.25rem 0 0.5rem; }
.prose p  { margin-bottom: 1rem; line-height: 1.8; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { list-style: disc; margin-bottom: 0.4rem; }
.prose strong { color: #1e40af; }
.prose a  { color: #2563eb; text-decoration: underline; }

/* Smooth page transitions */
main { animation: pageFadeIn 0.3s ease-out; }
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    transform: scale(0);
    border-radius: inherit;
    transition: transform 0.4s ease;
}
.btn-ripple:active::after { transform: scale(1); }

/* Admin sidebar active link */
.sidebar-link.active {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}

/* Image zoom on hover */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.img-zoom:hover img {
    transform: scale(1.06);
}
