/*
Plugin Name: 777 Slot Machine with History
Description: Complete slot machine with history tracking
Version: 1.0.0
*/

/* Simple Slot Machine Styling - Transparent Background */
.slot-machine-simple {
    text-align: center;
    padding: 0;
    margin: 20px 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-block;
    width: 100%;
}

.slot-digits-simple {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.slot-digit-simple {
    width: 70px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slot-info-simple {
    margin-top: 20px;
    padding: 0;
    background: transparent;
}

.slot-number-simple,
.slot-date-simple {
    font-size: 16px;
    color: #ffffff;
    margin: 8px 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.current-number {
    font-weight: bold;
    color: #ffffff;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.current-date {
    font-weight: normal;
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* History Section */
.slot-history-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-history-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.history-item.history-old {
    background: rgba(255, 234, 167, 0.2);
    border-left-color: #f39c12;
}

.history-number {
    font-weight: bold;
    color: #ffffff;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.history-date {
    color: #bdc3c7;
    font-size: 12px;
}

.history-expired {
    color: #e74c3c;
    font-size: 11px;
    font-weight: bold;
}

.history-loading,
.history-empty,
.history-error {
    text-align: center;
    color: #bdc3c7;
    font-style: italic;
    padding: 20px;
}

/* Animation */
.slot-digit-simple.animating {
    animation: digitSpin 0.1s infinite;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes digitSpin {
    0% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(5px);
        opacity: 1;
    }
    100% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
}

/* Hide number and date during animation */
.slot-machine-simple.animating .slot-info-simple {
    display: none;
}

/* Show number and date after animation */
.slot-machine-simple:not(.animating) .slot-info-simple {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Styling */
#slot-machine-preview {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

#slot-machine-preview p {
    margin: 8px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slot-digit-simple {
        width: 60px;
        height: 80px;
        font-size: 36px;
    }
    
    .slot-number-simple,
    .slot-date-simple {
        font-size: 14px;
    }
    
    .current-number {
        font-size: 16px;
    }
    
    .current-date {
        font-size: 13px;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .history-date {
        font-size: 11px;
    }
    
    .history-expired {
        font-size: 10px;
    }
}