/*
 * R4 Pets Elementor Widgets Custom CSS
 * Focus: Soft UI, Creative, Pet-friendly, Animated
 */

:root {
    --r4-primary: #ff9f43;
    --r4-secondary: #fca311;
    --r4-bg: #fff;
    --r4-shadow: 0 10px 20px rgba(0,0,0,0.05);
    --r4-shadow-hover: 0 20px 40px rgba(0,0,0,0.1);
    --r4-radius: 24px;
}

/* Animations */
@keyframes r4-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes r4-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section Widget */
.r4-hero-wrapper {
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 100%);
    border-radius: var(--r4-radius);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--r4-shadow);
}

.r4-hero-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,159,67,0.1) 0%, rgba(255,159,67,0) 70%);
    border-radius: 50%;
}

.r4-hero-content {
    flex: 1;
    animation: r4-fade-in-up 1s ease-out;
}

.r4-hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #2b2d42;
    margin-bottom: 20px;
    line-height: 1.2;
}

.r4-hero-content p {
    font-size: 1.2rem;
    color: #8d99ae;
    margin-bottom: 30px;
}

.r4-hero-btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--r4-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 159, 67, 0.4);
}

.r4-hero-btn:hover {
    background: var(--r4-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 159, 67, 0.6);
    color: #fff;
}

.r4-hero-image {
    flex: 1;
    text-align: right;
}

.r4-hero-image img {
    max-width: 100%;
    height: auto;
    animation: r4-float 4s ease-in-out infinite;
}

/* Category Widget */
.r4-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.r4-category-card {
    background: var(--r4-bg);
    border-radius: var(--r4-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--r4-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
}

.r4-category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--r4-shadow-hover);
    border-color: var(--r4-primary);
}

.r4-category-icon {
    font-size: 3rem;
    color: var(--r4-primary);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.r4-category-card:hover .r4-category-icon {
    transform: scale(1.1) rotate(5deg);
}

.r4-category-card h3 {
    color: #2b2d42;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .r4-hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .r4-hero-image {
        text-align: center;
    }
}
