/* ========== CARD CARPE DIEM - VERSÃO VERMELHA ========== */
.card-carpe {
    --angle: 0deg;
    --mx: 50%;
    --my: 50%;
    --bar-color: rgba(214, 46, 46, 0.6);
    --bar-bg: rgb(10, 10, 10);

    background: linear-gradient(135deg, #1a0a0ae0, #2a0f0ff0, #331111ec);
    border: 1px solid rgba(214, 46, 46, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(214, 46, 46, 0.15),
        0 0 30px rgba(214, 46, 46, 0.25);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: carpePulse 4s ease-in-out infinite;
    border-radius: 16px;
}

.card-carpe__shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx) var(--my),
            rgba(230, 126, 126, 0.3) 0%,
            rgba(214, 46, 46, 0.15) 40%,
            transparent 80%);
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.card-carpe__glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
    background-image: radial-gradient(farthest-corner circle at var(--mx) var(--my),
            rgba(230, 126, 126, 0.4) 10%,
            rgba(214, 46, 46, 0.2) 30%,
            rgba(0, 0, 0, 0.8) 90%);
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.card-carpe__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCI+CjxmaWx0ZXIgaWQ9Im4iPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIuNyIgbnVtT2N0YXZlcz0iMTAiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgZmlsbD0iIzAwMCIvPjxyZWN0IHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIiBmaWx0ZXI9InVybCgjbikiIG9wYWNpdHk9IjAuMDMiLz4KPC9zdmc+");
    background-size: 300px;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.card-carpe-interactive {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: auto;
    border-radius: inherit;
}

.card-carpe-content {
    position: relative;
    z-index: 4;
    padding: 1rem;
}

/* ========== TÍTULO CARPE ========== */
.carpe-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.carpe-title-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #e67e7e, #d62e2e, #a02020, #d62e2e, #e67e7e, #ffffff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: carpeShimmer 4s linear infinite;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.carpe-title-glow {
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(12px);
    animation: carpeShimmer 4s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes carpeShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

@keyframes carpePulse {

    0%,
    100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8),
            inset 0 1px 0 rgba(214, 46, 46, 0.15),
            0 0 30px rgba(214, 46, 46, 0.2);
    }

    50% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8),
            inset 0 1px 0 rgba(214, 46, 46, 0.15),
            0 0 50px rgba(214, 46, 46, 0.4),
            0 0 70px rgba(160, 32, 32, 0.3);
    }
}

/* ========== BOTÃO CARPE ========== */


.btnCarpeHolo {
    border-style: solid;
    border-width: 0 0 7px 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2a0f0fe6, #1a0a0ae6);
    cursor: pointer;
    border-color: rgba(246, 59, 59, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.btnCarpeHolo:hover {
    border-color: rgb(255, 255, 255);
}

.fill-container-carpe {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    padding-bottom: 100%;
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}



.btnCarpeHolo:hover .fill-container-carpe {
    transform: translateY(-50%) rotate(0);
}

.btnCarpeHolo:hover .fill-container-carpe::after {
    transform: translateY(0);
}

.btn-carpe-reflex {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            transparent 30%,
            rgba(214, 46, 46, 0.15) 50%,
            transparent 70%);
    transform: rotate(30deg);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btnCarpeHolo:hover .btn-carpe-reflex {
    opacity: 1;
    animation: carpeReflex 3s linear infinite;
}

@keyframes carpeReflex {
    0% {
        transform: rotate(30deg) translateX(-10%);
    }

    100% {
        transform: rotate(30deg) translateX(10%);
    }
}

.carpe-btn-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff, #e67e7e, #d62e2e, #a02020, #d62e2e, #e67e7e);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: carpeShimmer 3s linear infinite;
    display: block;
    text-decoration: none;
    border-bottom: none;
}

.btnCarpeHolo:hover .carpe-btn-text {
    background: white;
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: carpeShimmer 2s linear infinite;
}


/* ========== CONTEÚDO CARPE ========== */
.carpe-content {
    background: linear-gradient(to right, #1a0a0ab3, #2a0f0f80, #0000);
    border-left: 4px solid #d62e2e;
    border-radius: 0 16px 16px 0;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
}

.carpe-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #0000, rgba(214, 46, 46, 0.05) 50%, #0000);
    z-index: 1;
    pointer-events: none;
}

.carpe-content-inner {
    position: relative;
    z-index: 2;
}

.carpe-icon-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.carpe-icon-title h3 {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin: 0;
}

.carpe-title-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #e67e7e, #e67e7e);
    background-size: 200% 100%;
    animation: holoShimmer 3s linear infinite;
    transform-origin: left;
}

.carpe-content p {
    line-height: 1.6;
    color: #c0c0c0;
    margin: 0.75rem 0;
    position: relative;
    z-index: 2;
}

.carpe-highlight {
    font-weight: 600;
    color: #e67e7e;
    text-decoration: underline;
    text-decoration-color: rgba(214, 46, 46, 0.3);
    text-decoration-style: wavy;
    text-underline-offset: 4px;
}

.holo-avatar-carp {
    filter: hue-rotate(0deg) drop-shadow(0 0 5px rgba(246, 59, 59, 0.5)) brightness(1.1) contrast(1.2);
    transition: filter 0.5s ease;
}

@keyframes holoHueCarpRotate {
    0% {
        filter: hue-rotate(0deg) drop-shadow(0 0 8px rgba(246, 59, 59, 0.6));
    }

    100% {
        filter: hue-rotate(360deg) drop-shadow(0 0 8px rgba(246, 59, 59, 0.6));
    }
}

.carpe-card-btn:hover .holo-avatar-carp {
    filter: drop-shadow(0 0 10px rgba(246, 59, 59, 0.6)) brightness(1.3) contrast(1.3);
    animation: holoHueCarpRotate 4s linear infinite;
}

.carpe-site {
    font-weight: 700;
    color: #d62e2e;
    text-shadow: 0 0 10px rgba(214, 46, 46, 0.4);
}

/* ========== FEATURES CARPE ========== */
.carpe-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carpe-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(214, 46, 46, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(214, 46, 46, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.carpe-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(214, 46, 46, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.carpe-feature:hover {
    background: rgba(214, 46, 46, 0.15);
    border-color: rgba(214, 46, 46, 0.3);
    transform: translateY(-2px);
}

.carpe-feature:hover::before {
    left: 100%;
}

.carpe-feature i {
    font-size: 1rem;
    color: #e67e7e;
    filter: drop-shadow(0 0 4px rgba(214, 46, 46, 0.4));
}

.carpe-feature span {
    font-size: 0.9rem;
    color: #d0d0d0;
    font-weight: 500;
}

/* ========== EFEITO RIPPLE CARPE ========== */
.carpe-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(214, 46, 46, 0.6),
            rgba(214, 46, 46, 0.4) 40%,
            transparent 70%);
    transform: scale(0);
    animation: carpeRipple 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
}

@keyframes carpeRipple {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    70% {
        opacity: 0.4;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== HOVER DO CARD PRINCIPAL ========== */
.card-carpe:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(214, 46, 46, 0.2),
        0 0 50px rgba(214, 46, 46, 0.3),
        0 0 80px rgba(160, 32, 32, 0.2);
    transform: translateY(-4px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: rgba(214, 46, 46, 0.4);
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 768px) {
    .carpe-title-text {
        font-size: 1rem;
    }

    .carpe-features {
        gap: 0.75rem;
    }

    .carpe-feature {
        padding: 0.4rem 0.8rem;
    }

    .carpe-feature span {
        font-size: 0.8rem;
    }

    .carpe-content {
        padding: 1rem;
    }

    .carpe-icon-title h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carpe-feature {
        width: 100%;
        justify-content: center;
    }
}