/* 
 * =============================================================================
 * ACRYLIC PAGE STYLES
 * Premium card animations with shimmer and gloss effects
 * =============================================================================
 */

/* Acrylic Card Container */
.acrylic-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 with Shimmer */
.acrylic-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);
}

/* Dark Mode Card Styling */
.dark .acrylic-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark .acrylic-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* 
 * =============================================================================
 * SHIMMER EFFECT (For Sparkles/Gloss Cards)
 * =============================================================================
 */

.acrylic-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.acrylic-card:hover::after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* 
 * =============================================================================
 * CARD BUTTON ANIMATION
 * =============================================================================
 */

.acrylic-card-btn {
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.acrylic-card-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(93, 64, 55, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.acrylic-card-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* 
 * =============================================================================
 * IMAGE OVERLAY GRADIENT ENHANCEMENT
 * =============================================================================
 */

.acrylic-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;
}

.acrylic-card:hover .relative::after {
    opacity: 1;
}

/* 
 * =============================================================================
 * PREMIUM BADGES ANIMATION
 * =============================================================================
 */

.acrylic-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 */
.acrylic-card .absolute.top-4.bg-primary,
.acrylic-card .absolute.top-4.bg-gradient-to-r {
    box-shadow: 0 4px 10px rgba(93, 64, 55, 0.3);
}

.acrylic-card:hover .absolute.top-4.bg-primary,
.acrylic-card:hover .absolute.top-4.bg-gradient-to-r {
    box-shadow: 0 6px 15px rgba(93, 64, 55, 0.5);
}

/* 
 * =============================================================================
 * STAT ITEMS & ICONS ANIMATION
 * =============================================================================
 */

.acrylic-card .grid > div {
    transition: transform 0.3s ease;
}

.acrylic-card:hover .grid > div {
    transform: translateY(-2px);
}

/* Icon Badge Animation */
.acrylic-card .h-12.w-20 {
    transition: all 0.3s ease;
    position: relative;
}

.acrylic-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 */
.acrylic-card .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.acrylic-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);
    }
}

/* 
 * =============================================================================
 * GLOSS EFFECT (Acrylic Specific)
 * =============================================================================
 */

.acrylic-card .relative img {
    filter: brightness(0.95) contrast(1.05);
    transition: filter 0.4s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.acrylic-card:hover .relative img {
    filter: brightness(1.05) contrast(1.1);
}

/* 
 * =============================================================================
 * BORDER SHINE EFFECT
 * =============================================================================
 */

.acrylic-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    background-size: 200% 200%;
    animation: border-shine 3s linear infinite;
}

@keyframes border-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.acrylic-card:hover::before {
    opacity: 1;
}

/* Dark mode adjustment */
.dark .acrylic-card:hover::before {
    opacity: 0.5;
}

/* 
 * =============================================================================
 * FEATURED CARD (Full Width) SPECIFIC STYLES
 * =============================================================================
 */

.acrylic-card.lg\:grid .bg-white {
    transition: background-color 0.3s ease;
}

.acrylic-card.lg\:grid:hover .bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.dark .acrylic-card.lg\:grid:hover .bg-white {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
}

/* 
 * =============================================================================
 * RESPONSIVE ADJUSTMENTS
 * =============================================================================
 */

@media (max-width: 768px) {
    .acrylic-card {
        max-width: 100%;
    }
    
    .acrylic-card .text-2xl {
        font-size: 1.5rem;
    }
    
    .acrylic-card .text-3xl {
        font-size: 1.75rem;
    }
    
    .acrylic-card-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .acrylic-card {
        max-width: 100%;
    }
}

/* 
 * =============================================================================
 * LOADING SKELETON
 * =============================================================================
 */

.acrylic-card-skeleton {
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

@keyframes skeleton-loading {
    0% {
        background-color: rgba(234, 227, 217, 0.3);
    }
    50% {
        background-color: rgba(234, 227, 217, 0.5);
    }
    100% {
        background-color: rgba(234, 227, 217, 0.3);
    }
}

/* 
 * =============================================================================
 * ACCESSIBILITY ENHANCEMENTS
 * =============================================================================
 */

.acrylic-card:focus-within {
    outline: 2px solid #5D4037;
    outline-offset: 4px;
}

.acrylic-card-btn:focus-visible {
    outline: 2px solid #5D4037;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .acrylic-card {
        border: 2px solid currentColor;
    }
}

/* 
 * =============================================================================
 * PRINT STYLES
 * =============================================================================
 */

@media print {
    .acrylic-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .acrylic-card-btn {
        display: none;
    }
    
    .acrylic-card::before,
    .acrylic-card::after {
        display: none;
    }
}

/* 
 * =============================================================================
 * SPARKLE PARTICLE EFFECT (Optional Enhancement)
 * =============================================================================
 */

.acrylic-card[data-sparkle="true"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 2%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
    animation: sparkle-twinkle 2s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.acrylic-card[data-sparkle="true"]:hover::before {
    opacity: 0.6;
}

/* 
 * =============================================================================
 * SMOOTH SCROLL BEHAVIOR
 * =============================================================================
 */

@media (prefers-reduced-motion: no-preference) {
    .acrylic-card {
        scroll-margin-top: 100px;
    }
}