/* 
 * =============================================================================
 * LOUVERS PAGE STYLES
 * Premium card animations with focus on texture and shadow
 * =============================================================================
 */

/* Louver Card Container */
.louver-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Card Hover Effect - Lift, Shadow, and Subtle Gradient Shift */
.louver-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

/* Dark Mode Card Styling */
.dark .louver-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark .louver-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
}

/* 
 * =============================================================================
 * CARD BUTTON ANIMATION
 * =============================================================================
 */

.louver-card-btn {
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.louver-card-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(93, 64, 55, 0.1); /* Using a color from your theme */
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.louver-card-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* 
 * =============================================================================
 * IMAGE OVERLAY GRADIENT ENHANCEMENT
 * =============================================================================
 */

.louver-card .relative::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.louver-card:hover .relative::after {
    opacity: 1;
}

/* 
 * =============================================================================
 * PREMIUM BADGES ANIMATION
 * =============================================================================
 */

.louver-card .absolute.top-4 {
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Badge Glow Effect */
.louver-card .absolute.top-4.bg-primary,
.louver-card .absolute.top-4.bg-gradient-to-r {
    box-shadow: 0 4px 10px rgba(93, 64, 55, 0.3);
}

.louver-card:hover .absolute.top-4.bg-primary,
.louver-card:hover .absolute.top-4.bg-gradient-to-r {
    box-shadow: 0 6px 15px rgba(93, 64, 55, 0.5);
}

/* 
 * =============================================================================
 * STAT ITEMS & ICONS ANIMATION
 * =============================================================================
 */

.louver-card .grid > div {
    transition: transform 0.3s ease;
}

.louver-card:hover .grid > div {
    transform: translateY(-2px);
}

/* Icon Badge Animation */
.louver-card .h-12.w-20 {
    transition: all 0.3s ease;
    position: relative;
}

.louver-card:hover .h-12.w-20 {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 4px 6px -1px rgba(93, 64, 55, 0.2);
}

/* Icon Pulse Effect */
.louver-card .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.louver-card:hover .h-12.w-20 .material-symbols-outlined {
    animation: icon-pulse 1s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 
 * =============================================================================
 * IMAGE ZOOM ON HOVER
 * =============================================================================
 */

.louver-card .relative img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
 * =============================================================================
 * ACCESSIBILITY & RESPONSIVE
 * =============================================================================
 */

.louver-card:focus-within {
    outline: 2px solid #5D4037;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .louver-card { max-width: 100%; }
    .louver-card .text-2xl { font-size: 1.5rem; }
    .louver-card .text-3xl { font-size: 1.75rem; }
    .louver-card-btn { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
}