/* assets/css/style.css - Enhanced Animations */

/* --- Base & Reset --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll from entry animations */
}

/* --- Keyframes Definitions --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* --- Animation Utility Classes --- */
/* --- Animation Utility Classes (Progressive Enhancement) --- */
/* By default, elements are VISIBLE to prevent 'white screen' if JS fails or delays */
.animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* Only hide if the browser actually supports the observer and JS has loaded */
body.js-loaded .animate-on-scroll:not(.is-visible) {
    opacity: 0;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* Specific Entry Types */
.fade-up {
    transform: translateY(30px);
}

.fade-in {
    transform: scale(0.98);
}

.slide-right {
    transform: translateX(-30px);
}

/* Stagger Delays (for grids) */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* --- Component Specific Animations --- */

/* Hero Text Reveal */
.hero-title {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-meta {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
    /* Rose-500 glow */
}

/* Image Zoom Wrapper */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom-container:hover img {
    transform: scale(1.08);
}

/* Button Pulse */
.btn-pulse:hover {
    animation: float 2s ease-in-out infinite;
}

/* --- Prose Enhancements (Editor Content) --- */
.prose {
    color: #4a5568 !important;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prose h2,
.prose h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #1a202c;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h2 {
    font-size: 2rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.prose a {
    color: #e11d48;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.prose a:hover {
    color: #be123c;
}

.prose blockquote {
    border-left: 4px solid #f43f5e;
    padding-left: 1.5rem;
    font-style: italic;
    color: #718096;
    margin: 2rem 0;
    background: #fff1f2;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}