/* File: /var/www/nblock.net/frontend/css/lucky-node.css */
/* Directory: /var/www/nblock.net/frontend/css/ */

/* Lucky Node Modal - Proper modular CSS approach */

#lucky-node-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    backdrop-filter: blur(4px) !important;
}

#lucky-node-modal.hidden {
    display: none !important;
}

/* Modal Content Container */
.lucky-modal-content {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Header */
.lucky-modal-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.lucky-modal-title {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.lucky-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.lucky-modal-close:hover {
    color: #f8fafc;
}

/* Modal Body */
.lucky-modal-body {
    padding: 1rem;
}

/* Pool Balance Section */
.lucky-pool-section {
    text-align: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.lucky-pool-balance {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lucky-pool-status {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.lucky-pool-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Eligibility Sections */
.lucky-eligible {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.lucky-eligible-title {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lucky-eligible-text {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.lucky-not-eligible {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.lucky-not-eligible-title {
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lucky-not-eligible-text {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.lucky-not-eligible-help {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Stats Grid */
.lucky-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lucky-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.lucky-stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.lucky-stat-value {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Next Draw Section */
.lucky-countdown-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.lucky-countdown-label {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.lucky-countdown-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f59e0b;
}

/* Recent Winners Section */
.lucky-winners-section {
    margin-bottom: 1rem;
}

.lucky-winners-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    text-align: center;
}

.lucky-winners-list {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 0.5rem;
}

.lucky-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lucky-winner-item:last-child {
    border-bottom: none;
}

.lucky-winner-info {
    flex: 1;
}

.lucky-winner-username {
    font-weight: 600;
    color: #e2e8f0;
}

.lucky-winner-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

.lucky-winner-prize {
    text-align: right;
}

.lucky-winner-amount {
    color: #f59e0b;
    font-weight: 600;
}

.lucky-winner-type {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
}

.lucky-no-winners {
    text-align: center;
    color: #666;
    padding: 1rem;
    font-style: italic;
}

/* Information Box */
.lucky-info-box {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.4;
}

.lucky-info-title {
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

/* Loading State */
.lucky-loading {
    text-align: center;
    padding: 2rem;
}

.lucky-loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.lucky-loading-text {
    color: #e2e8f0;
}

/* Error State */
.lucky-error {
    text-align: center;
    padding: 2rem;
}

.lucky-error-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ef4444;
}

.lucky-error-text {
    color: #ef4444;
}

.lucky-retry-button {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.lucky-retry-button:hover {
    background: #d97706;
}

/* Button States for Lucky Node Button */
.lucky-node-stat {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.lucky-node-stat::before {
    content: "💰";
    margin-right: 0.5rem;
    font-size: 0.9em;
    color: #f59e0b;
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.5));
}

.lucky-node-stat.has-balance {
    background: transparent !important;
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    font-weight: 600;
}

.lucky-node-stat.empty-pool {
    background: transparent !important;
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.3);
}

.lucky-node-stat.empty-pool::before {
    color: #9ca3af;
    filter: none;
}

.lucky-node-stat.draw-imminent {
    animation: luckyPulse 2s infinite;
}

.lucky-node-stat:hover {
    background: rgba(245, 158, 11, 0.1) !important;
    transform: translateY(-1px);
}

@keyframes luckyPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(245, 158, 11, 0.6);
    }
}
