/* 
 * =============================================================================
 * HDFMR & MDF BOARDS PAGE STYLES
 * Clean, professional styles for engineered boards.
 * =============================================================================
 */

/* Main Card Container */
.engineered-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);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Card Hover Effect */
.engineered-card:hover {
    transform: translateY(-8px);
    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 .engineered-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.1);
}

.dark .engineered-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* 
 * =============================================================================
 * ICON BADGE ANIMATION
 * =============================================================================
 */

.engineered-card .h-12.w-20 {
    transition: all 0.3s ease;
}

.engineered-card:hover .h-12.w-20 {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 6px -1px rgba(93, 64, 55, 0.2);
}

/* Icon Pulse Effect */
.engineered-card .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.engineered-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 & BADGE STYLING
 * =============================================================================
 */

.engineered-card .relative img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.engineered-card .absolute.top-4 {
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

/* 
 * =============================================================================
 * ACCESSIBILITY & RESPONSIVE
 * =============================================================================
 */

.engineered-card:focus-within {
    outline: 2px solid #5D4037;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .engineered-card .text-xl {
        font-size: 1.125rem; /* Slightly smaller for mobile */
    }
}