/* Анимации для INTA PROD - WordPress */

/* Base transitions */
article, .widget, .entry, .post, .card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover effects for all clickable elements */
article:hover, .widget:hover, .entry:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Images zoom */
article img, .entry-content img, .post-thumbnail img, .wp-post-image {
    transition: transform 0.5s ease !important;
}

article img:hover, .entry-content img:hover {
    transform: scale(1.08);
}

/* Links hover with color */
a {
    transition: all 0.3s ease !important;
}

a:hover {
    color: #D4AF37 !important;
    text-decoration: none !important;
}

/* Links with underline animation */
.content a:not([class*="button"]):not(.btn) {
    position: relative;
    text-decoration: none !important;
}

.content a:not([class*="button"]):not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.content a:not([class*="button"]):not(.btn):hover::after {
    width: 100%;
}

/* Buttons pulse */
button, .button, input[type="submit"], .btn, a.btn {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

button:hover, .button:hover, input[type="submit"]:hover, .btn:hover, a.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Menu items slide */
.main-navigation li, .nav-menu li {
    transition: all 0.3s ease;
}

.main-navigation li:hover, .nav-menu li:hover {
    transform: translateX(5px);
}

/* Widgets bounce */
.widget:hover {
    border-left: 3px solid #D4AF37;
}

/* Posts grid stagger */
.archive .entry, .blog .entry, .posts .entry {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.archive .entry:nth-child(1), .blog .entry:nth-child(1) { animation-delay: 0.1s; }
.archive .entry:nth-child(2), .blog .entry:nth-child(2) { animation-delay: 0.15s; }
.archive .entry:nth-child(3), .blog .entry:nth-child(3) { animation-delay: 0.2s; }
.archive .entry:nth-child(4), .blog .entry:nth-child(4) { animation-delay: 0.25s; }
.archive .entry:nth-child(5), .blog .entry:nth-child(5) { animation-delay: 0.3s; }
.archive .entry:nth-child(6), .blog .entry:nth-child(6) { animation-delay: 0.35s; }

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

/* Hero section entrance */
.site-header, .header, #masthead {
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo pulse */
.site-title, .logo {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

/* Scroll indicator */
.scroll-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Mobile disable */
@media (max-width: 768px) {
    .archive .entry, .blog .entry, .posts .entry {
        opacity: 1 !important;
        animation: none !important;
    }
    
    article:hover, .widget:hover, .entry:hover {
        transform: none !important;
    }
}
