/**
 * e-SHRAM Card to PVC Suite Stylesheet
 * Incorporates high-contrast emerald, teal, and crisp CR80 3D card mockup styling.
 */

/* 3D Card Mockup Perspective */
.card-perspective-container {
    perspective: 1200px;
}

.cr80-card-mockup {
    aspect-ratio: 1012 / 638;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(5, 150, 105, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    background: #064e3b;
}

.cr80-card-mockup:hover {
    transform: translateY(-4px) rotateX(2deg);
    box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

/* Rounded CR80 corner simulation */
.cr80-card-mockup img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Glassmorphism styling */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(30, 41, 59, 0.8);
}

/* Pulse animation for progress bar */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-shimmer {
    background: linear-gradient(90deg, #059669 0%, #10b981 30%, #f59e0b 70%, #d97706 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* Canvas Crosshair */
#recrop-canvas {
    cursor: crosshair;
    touch-action: none;
}

/* Modal animation */
.modal-enter {
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
