/**
 * Enhanced Lottery Winners CSS
 * Rolling animation and visual enhancements
 */


/* Rolling Winners Styles */
.pta-rolling-winners-container {
    position: relative;
    margin: 40px 0;
    padding: 30px;
    background: #121212;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.pta-product-rolling-section {
    margin: 50px 0;
}

/* Countdown Section */
.pta-countdown-section {
    text-align: center;
    padding: 40px 20px;
}

.pta-countdown-section h3 {
    color: #E0E0E0;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.pta-countdown-timer {
    font-size: 120px;
    font-weight: bold;
    color: #FF6B6B;
    text-shadow: 0 0 30px rgba(255,107,107,0.8);
    margin: 20px 0;
    transition: all 0.3s ease;
}

.pta-countdown-pulse {
    transform: scale(1.2);
    color: #00A676 !important;
    text-shadow: 0 0 40px rgba(0,166,118,0.9) !important;
}

/* Rolling Section */
.pta-rolling-section {
    text-align: center;
    padding: 20px;
}

.pta-rolling-title {
    color: #E0E0E0;
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Slot Machine */
.pta-slot-machine {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    background: #1A1A1A;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.pta-slot-reel {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.pta-slot-items {
    display: flex;
    flex-direction: column;
    transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pta-slot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 2px solid #1E1E1E;
    background: #1A1A1A;
    min-height: 80px;
}

.pta-slot-item:last-child {
    border-bottom: none;
    background: linear-gradient(135deg, #00FFD1, #1E1E1E);
    color: #121212;
    font-weight: bold;
    transform: scale(1.05);
}

.pta-participant-name {
    font-size: 18px;
    font-weight: 600;
    color: #E0E0E0;
}

.pta-slot-item:last-child .pta-participant-name {
    color: #121212;
    font-size: 20px;
}

.pta-ticket-number {
    background: #1E1E1E;
    color: #E0E0E0;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
}

.pta-slot-item:last-child .pta-ticket-number {
    background: #121212;
    color: #00FFD1;
    font-size: 16px;
}

.pta-winner-celebration {
    text-align: center;
}

.pta-winner-trophy {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    filter: drop-shadow(2px 2px 4px rgba(28,28,60,0.4));
}

.pta-winner-title {
    color: #00FFD1;
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pta-winner-name {
    color: #E0E0E0;
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.pta-winner-ticket {
    margin-top: 25px;
}

.pta-ticket-label {
    color: #E0E0E0;
    font-size: 16px;
    font-weight: 500;
}

.pta-winner-ticket .pta-ticket-number {
    background: #FF2A6D;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    margin-left: 10px;
}

/* Next Winner Button */
.pta-next-winner-btn {
    background: linear-gradient(135deg, #00FFD1, #1E1E1E);
    color: #121212;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pta-next-winner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,255,209,0.4);
}

/* Confetti Animation */
.pta-confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.pta-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF6B6B;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pta-rolling-winners-container {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .pta-countdown-timer {
        font-size: 80px;
    }
    
    .pta-countdown-section h3 {
        font-size: 22px;
    }
    
    .pta-rolling-title {
        font-size: 20px;
    }
    
    .pta-slot-item {
        padding: 15px 20px;
        min-height: 60px;
        flex-direction: column;
        gap: 10px;
    }
    
    .pta-participant-name {
        font-size: 16px;
    }
    
    .pta-winner-name {
        font-size: 28px;
    }
    
    .pta-winner-trophy {
        font-size: 60px;
    }
    
    .pta-next-winner-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}
div#tab-mt_random_ticket_picker #chooser button:hover {
    background: #1E1E1E;
}
div#tab-mt_random_ticket_picker #chooser button:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none;
}

/* Final Results Display Styles */
.pta-all-winners-list {
    text-align: center;
    margin-top: 30px;
}

.pta-all-winners-title {
    color: #E0E0E0;
    font-size: 32px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.pta-final-winner-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 15px auto;
    max-width: 400px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pta-final-winner-item:nth-child(1) {
    background: linear-gradient(135deg, #00FFD1, #1E1E1E);
    border-color: #00FFD1;
    box-shadow: 0 6px 20px rgba(0, 255, 209, 0.4);
}

.pta-final-winner-item:nth-child(2) {
    background: linear-gradient(135deg, #FF2A6D, #1E1E1E);
    border-color: #FF2A6D;
    box-shadow: 0 6px 20px rgba(255, 42, 109, 0.4);
}

.pta-final-winner-item:nth-child(3) {
    background: linear-gradient(135deg, #FFAE00, #1E1E1E);
    border-color: #FFAE00;
    box-shadow: 0 6px 20px rgba(255, 174, 0, 0.4);
}

.pta-final-winner-position {
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pta-final-winner-name {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.pta-final-winner-ticket {
    font-size: 16px;
    color: #E0E0E0;
    font-weight: 500;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced winner celebration animations */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.pta-winner-celebration > * {
    animation: slideInFromTop 0.6s ease-out;
}

.pta-winner-celebration > *:nth-child(2) {
    animation-delay: 0.1s;
}

.pta-winner-celebration > *:nth-child(3) {
    animation-delay: 0.2s;
}

.pta-winner-celebration > *:nth-child(4) {
    animation-delay: 0.3s;
}

/* Pulsing effect for countdown */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


/* Glowing effect for winner name */
@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(0,255,209,0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0,255,209,0.8), 0 0 30px rgba(255,42,109,0.6);
    }
    100% {
        text-shadow: 0 0 5px rgba(0,255,209,0.5);
    }
}

.pta-winner-name {
    animation: glow 2s ease-in-out infinite;
}

/* Rotating trophy */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Enhanced confetti variations */
.pta-confetti-piece:nth-child(odd) {
    width: 8px;
    height: 12px;
    border-radius: 2px;
}

.pta-confetti-piece:nth-child(even) {
    width: 12px;
    height: 8px;
    border-radius: 50%;
}

.pta-confetti-piece:nth-child(3n) {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00FFD1, #FF2A6D);
}

/* Loading state for slot machine */
.pta-slot-machine.loading .pta-slot-items {
    animation: loading-pulse 1s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Focus states for accessibility */
.pta-next-winner-btn:focus {
    outline: 3px solid #00A676;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pta-rolling-winners-container {
        background: #000000;
        border: 2px solid #FFFFFF;
    }
    
    .pta-countdown-section h3,
    .pta-rolling-title {
        color: #FFFFFF;
        text-shadow: none;
    }
    
    .pta-slot-item {
        border: 1px solid #FFFFFF;
    }
    
    .pta-winner-name {
        color: #FFFFFF;
        text-shadow: none;
        animation: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pta-slot-items {
        transition: transform 1s ease-out;
    }
    
    .pta-countdown-pulse,
    .pta-winner-trophy,
    .pta-winner-name,
    .pta-rolling-section {
        animation: none;
    }
    
    .pta-confetti-piece {
        animation-duration: 1s;
    }
}