/**
 * Simplified Animations CSS
 * Dr. Amit Khandelwal Theme - Traditional Design
 *
 * @package Dr_Amit_Theme
 */

/* ==========================================
   ESSENTIAL ANIMATIONS ONLY
   ========================================== */

/* Simple Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

.success-checkmark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 0.5s ease forwards 0.3s;
}

/* Animation Classes */
.fade-in { animation: fadeIn 0.4s ease forwards; }
.fade-in-up { animation: fadeInUp 0.4s ease forwards; }
.fade-in-left { animation: fadeInLeft 0.4s ease forwards; }
.fade-in-right { animation: fadeInRight 0.4s ease forwards; }

/* Simple slide classes */
.slide-in-left { animation: fadeInLeft 0.5s ease forwards; }
.slide-in-right { animation: fadeInRight 0.5s ease forwards; }
.slide-in-top { animation: fadeInUp 0.5s ease forwards; }
.slide-in-bottom { animation: fadeInUp 0.5s ease forwards; }

/* ==========================================
   HOVER EFFECTS (Simplified)
   ========================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   REDUCED MOTION SUPPORT
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   MOBILE OPTIMIZATIONS
   ========================================== */
@media screen and (max-width: 768px) {
    /* Disable animations on mobile for performance */
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
    }

    .hover-lift:hover {
        transform: none;
    }
}

/* ==========================================
   POSTS & PAGE STYLES
   ========================================== */

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 25px;
}

.post-card .post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.post-card .post-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.post-card .post-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.post-card .post-title a {
    color: var(--black);
}

.post-card .post-title a:hover {
    color: var(--primary-color);
}

.post-card .post-excerpt {
    color: var(--medium-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Single Post Styles */
.single-post .post-meta,
.single-service .service-header {
    margin-bottom: 30px;
}

.single-post .post-meta span {
    margin-right: 20px;
    color: var(--medium-gray);
}

.single-post .post-meta i,
.single-service .service-icon-large i {
    color: var(--primary-color);
    margin-right: 8px;
}

.single-post .post-featured-image,
.single-service .service-featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-post .post-body,
.single-service .service-body,
.page-content .page-body {
    font-size: 1.1rem;
    line-height: 1.9;
}

.single-post .post-body h2,
.single-post .post-body h3,
.single-service .service-body h2,
.single-service .service-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post .post-body ul,
.single-post .post-body ol,
.single-service .service-body ul,
.single-service .service-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

/* ==========================================
   MOBILE RESPONSIVE POSTS
   ========================================== */
@media screen and (max-width: 576px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card .post-thumbnail img {
        height: 180px;
    }

    .post-card .post-content {
        padding: 20px;
    }
}
