/* Modern Category Cards - Horizontal Image Layout */

/* Category Section Styling */
.gi-category-horizontal {
    position: relative;
}

/* Category Item Styling */
.gi-cat-item {
    position: relative;
    transition: all 0.3s ease;
}

/* Category Inner Container */
.gi-cat-inner {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    height: 200px;
}

.gi-cat-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Category Image Styling */
.category-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.category-image img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.gi-cat-inner:hover .category-image img {
    transform: scale(1.05);
}

/* Overlay Effects */
.gi-cat-inner .bg-black {
    transition: all 0.4s ease;
}

/* Text Overlay Styling */
.gi-cat-inner h4 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.gi-cat-inner:hover h4 {
    transform: translateY(-2px);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8);
}

.gi-cat-inner p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.gi-cat-inner:hover p {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .gi-category-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .gi-category-horizontal {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gi-cat-inner {
        height: 180px;
    }
    
    .gi-cat-inner h4 {
        font-size: 20px !important;
    }
    
    .gi-cat-inner p {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .gi-cat-inner {
        height: 160px;
    }
    
    .gi-cat-inner h4 {
        font-size: 18px !important;
    }
    
    .gi-cat-inner .absolute.bottom-\[20px\].left-\[20px\] {
        bottom: 15px;
        left: 15px;
    }
}

/* Animation for Card Entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gi-cat-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation delays */
.gi-cat-item:nth-child(1) { animation-delay: 0.1s; }
.gi-cat-item:nth-child(2) { animation-delay: 0.2s; }
.gi-cat-item:nth-child(3) { animation-delay: 0.3s; }
.gi-cat-item:nth-child(4) { animation-delay: 0.4s; }

/* Loading state */
.gi-cat-item[data-loading="true"] .gi-cat-inner {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Special effects for category cards */
.gi-cat-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
    z-index: 1;
}

.gi-cat-inner:hover::before {
    left: 100%;
}
