/* Printer list / brand page styles */
/* Componenti condivisi (banner wave, blur-text, particelle, marquee) sono in styles.css */

/* ── Printer wave cards & upgrade badge ──────────────────────────────────── */
/* From Uiverse.io by MikeAndrewDesigner - Animated Wave Cards */
.e-card {
    background: transparent;
    box-shadow: 0px 8px 28px -9px rgba(0, 0, 0, 0.45);
    position: relative;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s ease;
}

.e-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 35px -5px rgba(0, 0, 0, 0.5);
}

.wave {
    position: absolute;
    width: 540px;
    height: 700px;
    opacity: 0.6;
    left: 0;
    top: 0;
    margin-left: -50%;
    margin-top: -70%;
    background: linear-gradient(744deg, #105cdb, #3c89ef 60%, #00ddeb);
    z-index: 1;
}

/* Custom color variations for different cards */
.wave-color-1 {
    background: linear-gradient(744deg, #105cdb, #3c89ef 60%, #00ddeb);
}

.wave-color-2 {
    background: linear-gradient(744deg, #1e40af, #3b82f6 60%, #38bdf8);
}

.wave-color-3 {
    background: linear-gradient(744deg, #4338ca, #6366f1 60%, #93c5fd);
}

.printer-image {
    width: 90%;
    max-height: 220px;
    margin: 0 auto;
    padding: 1.5em 0;
    position: relative;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.upgrade-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #fef9c3;
    color: #854d0e;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.upgrade-badge svg {
    width: 0.9rem;
    height: 0.9rem;
}

.card-content {
    position: relative;
    z-index: 2;
    background: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    margin-top: -12px;
    height: calc(100% - 200px);
    display: flex;
    flex-direction: column;
}

.printer-tag {
    align-self: flex-start;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.card-desc {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-link {
    position: relative;
    font-weight: 600;
    color: #3b82f6;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #1d4ed8;
}

.card-link svg {
    margin-left: 0.35rem;
    width: 1rem;
    height: 1rem;
}

.wave:nth-child(2),
.wave:nth-child(3) {
    top: 210px;
}

.e-card .wave {
    border-radius: 40%;
    animation: wave 55s infinite linear;
}

.e-card .wave:nth-child(2) {
    animation-duration: 50s;
}

.e-card .wave:nth-child(3) {
    animation-duration: 45s;
}

@keyframes wave {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure the card maintains its hover effects inside the anchor tag */
a:hover .e-card {
    transform: translateY(-10px);
    box-shadow: 0px 15px 35px -5px rgba(0, 0, 0, 0.5);
}

/* Display a subtle visual indication that the whole card is clickable */
.e-card.cursor-pointer:hover {
    outline: 2px solid rgba(59, 130, 246, 0.3);
}

a:hover .card-link {
    color: #1d4ed8;
}

/* ── Back to top button ──────────────────────────────────────────────────── */
/* From Uiverse.io by vinodjangid07 */
.button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(20, 20, 20);
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px rgba(59, 130, 246, 0.25);
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
}

.svgIcon {
    width: 12px;
    transition-duration: 0.3s;
}

.svgIcon path {
    fill: white;
}

.button:hover {
    width: 140px;
    border-radius: 50px;
    transition-duration: 0.3s;
    background-color: rgb(59, 130, 246);
    align-items: center;
}

.button:hover .svgIcon {
    transition-duration: 0.3s;
    transform: translateY(-200%);
}

.button::before {
    position: absolute;
    bottom: -20px;
    content: "Back to Top";
    color: white;
    font-size: 0px;
}

.button:hover::before {
    font-size: 13px;
    opacity: 1;
    bottom: unset;
    transition-duration: 0.3s;
}

.button.visible {
    opacity: 1;
}

/* ── Mobile comparison tabs ──────────────────────────────────────────────── */
.model-tab {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.model-tab.active {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.model-card {
    transition: opacity 0.3s ease;
}

.model-card.active {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-dot {
    transition: all 0.3s ease;
}

.mobile-nav-dot.active {
    width: 12px;
}

/* Improved swipe indication */
.model-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(37, 99, 235, 0.3)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    opacity: 0.7;
    pointer-events: none;
}

@media (min-width: 768px) {
    .model-card::after {
        display: none;
    }
}
