/* ==========================================================================
   styles.css - DIGIBOXO Universal Component UI Library, Cards & Animations
   ========================================================================== */

/* ==========================================================================
   Cards & Tool Grid Components
   ========================================================================== */
.tool-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 8px 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tool-card h6 {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2px !important;
    color: #0f172a;
}

.tool-card small {
    font-size: 0.58rem;
    line-height: 1.1;
    display: block;
    opacity: 0.8;
}

.tool-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.55rem !important;
    padding: 2px 5px !important;
    border-radius: 99px;
    font-weight: 800;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #4f46e5;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.12);
    color: inherit;
}

.tool-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .tool-card {
        padding: 14px 10px;
        border-radius: 20px;
    }
    .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
        margin-bottom: 10px;
    }
    .tool-card h6 {
        font-size: 0.82rem;
    }
    .tool-card small {
        font-size: 0.68rem;
    }
    .tool-badge {
        top: 6px;
        right: 6px;
        font-size: 0.62rem !important;
        padding: 3px 7px !important;
    }
}



/* Gradients for Tool Icons */
.bg-gradient-purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #7c3aed; }
.bg-gradient-green { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #16a34a; }
.bg-gradient-rose { background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%); color: #e11d48; }
.bg-gradient-blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #2563eb; }
.bg-gradient-orange { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); color: #ea580c; }

/* ==========================================================================
   Pricing Section Cards
   ========================================================================== */
.price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.price-card ul li {
    margin-bottom: 14px !important;
    font-size: 0.88rem;
    line-height: 1.35;
    display: flex;
    align-items: center;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.price-card.featured {
    border: 2px solid #4f46e5;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn-animated-upload {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
    background-size: 200% 200%;
    color: #ffffff !important;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    animation: gradientShift 4s ease infinite, pulseGlow 2s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-animated-upload:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45) !important;
    color: #ffffff !important;
}

.btn-gradient-ai {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
    transition: all 0.25s ease;
}

.btn-gradient-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5) !important;
    color: #ffffff !important;
}

.animated-cloud-icon {
    display: inline-block;
    animation: bounceCloud 1.6s ease-in-out infinite alternate;
}

.dropzone-box {
    border: 2.5px dashed #c7d2fe;
    background-color: #eef2ff;
    border-radius: 20px;
    padding: 45px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone-box:hover {
    border-color: #4f46e5;
    background-color: #e0e7ff;
}

/* ==========================================================================
   Modal & Stage Styles
   ========================================================================== */
.cropper-stage-wrapper,
.cropper-modal-stage {
    width: 100%;
    height: clamp(360px, 60vh, 550px);
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-stage-wrapper img,
.cropper-modal-stage img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35); }
    50% { box-shadow: 0 8px 25px rgba(124, 58, 237, 0.65); }
}

@keyframes bounceCloud {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

@keyframes scanLaserMove {
    0% { top: 0%; }
    100% { top: 96%; }
}
