/* RSR Frontend Styles V3 */
.rsr-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.rsr-controls {
    text-align: right;
    margin-bottom: 20px;
}

#rsr-raspar-tudo {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #2575fc;
    color: white;
    transition: background-color 0.3s ease;
}

#rsr-raspar-tudo:hover {
    background-color: #6a11cb;
}

#rsr-raspar-tudo:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.rsr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.rsr-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rsr-card:hover {
    transform: translateY(-5px);
}

.rsr-card-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
}

.rsr-scratch-area {
    position: relative;
    height: 150px;
    cursor: grab;
    background-color: var(--rsr-prize-bg-color, #ffffff);
}

.rsr-scratch-area:active {
    cursor: grabbing;
}

.rsr-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.rsr-prize-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1;
}

.rsr-card.winner .rsr-prize-content {
    background-color: var(--rsr-winner-bg-color, #fff9c4);
}

.rsr-prize-image {
    max-height: 70%;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: 8px;
}

.rsr-prize-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--rsr-prize-font-color, #2575fc);
    text-align: center;
    margin: 0;
}

.rsr-card.winner .rsr-prize-text {
    color: var(--rsr-winner-font-color, #d50000);
}

.rsr-card-footer {
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    background-color: #f5f5f5;
    color: #666;
    margin-top: auto;
}

.rsr-card-footer.revealed {
    background-color: #e0e0e0;
    font-weight: bold;
}

.rsr-card-footer.revealed.winner {
    background-color: #ffd600;
    color: #333;
}

@media (max-width: 480px) {
    .rsr-grid {
        grid-template-columns: 1fr;
    }
}
