/* BerimbolosPay - Estilos Adicionais */

/* Estilos do Cartão de Crédito */
.credit-card-container {
    perspective: 1000px;
}

.credit-card {
    aspect-ratio: 1.586; /* Proporção padrão de cartão de crédito */
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #000000 100%);
    border: 1px solid rgba(61, 153, 112, 0.2);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.credit-card:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

.credit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 153, 112, 0.1) 0%,
        transparent 50%,
        rgba(45, 122, 90, 0.1) 100%
    );
    border-radius: inherit;
    pointer-events: none;
}

/* Animação de brilho no cartão */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

.animate-shimmer {
    animation: shimmer 3s infinite;
}

/* Efeito 3D para o chip */
.credit-card .chip {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e  50%, #fbbf24 100%);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Estilo para números do cartão */
.credit-card .card-number {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Efeito de perspectiva */
.perspective-1000 {
    perspective: 1000px;
}

/* Logos das bandeiras */
.mastercard-logo {
    position: relative;
}

.mastercard-logo::before,
.mastercard-logo::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    top: 0;
}

.mastercard-logo::before {
    background: #eb001b;
    left: 0;
    z-index: 1;
}

.mastercard-logo::after {
    background: #ff5f00;
    left: 16px;
    z-index: 2;
}

/* Efeito de holografia no cartão */
.holographic-effect {
    background: linear-gradient(
        45deg,
        #1a1a1a 0%,
        #2d2d2d 25%,
        #1a1a1a 50%,
        #2d2d2d 75%,
        #1a1a1a 100%
    );
    background-size: 200% 200%;
    animation: holographic 4s ease-in-out infinite;
}

@keyframes holographic {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Efeito de reflexo no cartão */
.card-reflection {
    position: relative;
    overflow: hidden;
}

.card-reflection::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.card-reflection:hover::after {
    left: 100%;
}

/* Estilo para o contactless */
.contactless-symbol {
    position: relative;
    width: 24px;
    height: 24px;
}

.contactless-symbol::before,
.contactless-symbol::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    border-right: transparent;
    border-bottom: transparent;
    transform: rotate(45deg);
}

.contactless-symbol::before {
    width: 16px;
    height: 16px;
    top: 4px;
    left: 4px;
}

.contactless-symbol::after {
    width: 12px;
    height: 12px;
    top: 6px;
    left: 6px;
    border-width: 1.5px;
}

/* Animações personalizadas */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Efeitos de hover avançados */
.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(61, 153, 112, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.card-hover-effect:hover::before {
    left: 100%;
}

.card-hover-effect:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(61, 153, 112, 0.2);
}

/* Botões com efeitos especiais */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3d9970, #2d7a5a);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(61, 153, 112, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Efeito de loading shimmer */
.shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Gradientes personalizados */
.gradient-bg-primary {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d7a5a 50%, #3d9970 100%);
}

.gradient-bg-secondary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* Efeitos de texto */
.text-glow {
    text-shadow: 0 0 10px rgba(61, 153, 112, 0.5);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Bordas animadas */
.animated-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1e293b, #334155) padding-box,
                linear-gradient(135deg, #3d9970, #2d7a5a) border-box;
    border-radius: 12px;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #3d9970, #2d7a5a);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: pulse 2s infinite;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3d9970, #2d7a5a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2d7a5a, #1a5f3f);
}

/* Efeitos de partículas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(61, 153, 112, 0.3);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.particle:nth-child(odd) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.particle:nth-child(even) {
    animation-delay: -4s;
    animation-duration: 10s;
}

/* Responsividade avançada */
@media (max-width: 768px) {
    .card-hover-effect:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .glass-effect {
        backdrop-filter: blur(5px);
    }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(30, 41, 59, 0.9);
        border: 2px solid #3d9970;
    }
    
    .gradient-text {
        color: #3d9970;
        background: none;
        -webkit-text-fill-color: unset;
    }
}

/* Modo de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .floating-animation,
    .particle,
    .shimmer,
    .animated-border::before {
        animation: none;
    }
    
    .card-hover-effect,
    .btn-primary {
        transition: none;
    }
}

/* Efeitos de foco para acessibilidade */
button:focus,
a:focus {
    outline: 2px solid #3d9970;
    outline-offset: 2px;
}

/* Indicador de carregamento */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(61, 153, 112, 0.3);
    border-top: 4px solid #3d9970;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Tooltip personalizado */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(30, 41, 59, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}
