/* assets/css/free-scratch-modal.css */

.free-scratch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.free-scratch-overlay.show {
    opacity: 1;
    visibility: visible;
}

.free-scratch-modal {
    background: linear-gradient(135deg, #1a2332 0%, #2a3441 100%);
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.free-scratch-overlay.show .free-scratch-modal {
    transform: scale(1) translateY(0);
}

.free-scratch-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.free-scratch-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.free-scratch-header {
    text-align: center;
    padding: 25px 25px 15px;
    color: white;
}

.free-scratch-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #4CAF50;
}

.free-scratch-subtitle {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}

.scratch-container {
    padding: 0 25px;
    position: relative;
}

.scratch-game-area {
    position: relative;
    background: #f0f0f0;
    border-radius: 12px;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid #4CAF50;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.scratch-canvas-free {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 2;
}

.prize-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    z-index: 1;
}

.prize-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.prize-amount {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-emoji {
    font-size: 24px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.scratch-instruction {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.scratch-instruction::before {
    content: "👆";
}

.scratch-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.scratch-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.scratch-status {
    text-align: center;
    margin-bottom: 20px;
}

.status-text {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
}

.status-percentage {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
}

.claim-prize-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
    margin-bottom: 25px;
    display: none; /* Inicialmente oculto */
}

.claim-prize-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.claim-prize-btn.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

.action-buttons {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.action-buttons.show {
    display: flex !important;
    animation: slideUp 0.5s ease-out;
}

.play-now-btn, .withdraw-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.play-now-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.play-now-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.withdraw-btn {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.withdraw-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

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

.celebration-message {
    text-align: center;
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
}

.celebration-message.show {
    display: block;
    animation: celebrationFade 0.5s ease-out;
}

@keyframes celebrationFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.celebration-title {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 8px;
}

.celebration-text {
    font-size: 14px;
    color: #ccc;
}

/* Efeito de confete */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(odd) {
    background: #FFC107;
    animation-delay: 0.5s;
}

.confetti:nth-child(3n) {
    background: #f44336;
    animation-delay: 1s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .free-scratch-modal {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .free-scratch-header {
        padding: 20px 20px 15px;
    }
    
    .scratch-container {
        padding: 0 20px;
    }
    
    .scratch-game-area {
        height: 180px;
    }
    
    .prize-amount {
        font-size: 28px;
    }
    
    .free-scratch-title {
        font-size: 18px;
    }
}