/* WallShoot Lotto - Modern CSS Styles */

/* Reset and Base Styles */
.ws-lotto-wrap {
    max-width: 800px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.ws-lotto-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ws-lotto-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.ws-lotto-logo {
    margin-bottom: 20px;
}

.ws-lotto-logo img {
    max-width: 120px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.ws-lotto-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.ws-jackpot-display {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.ws-jackpot-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.ws-jackpot-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Info Section */
.ws-lotto-info {
    background: white;
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.ws-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.ws-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ws-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ws-icon-numbers::before { content: "🎲"; }
.ws-icon-price::before { content: "💰"; }
.ws-icon-time::before { content: "⏰"; }
.ws-icon-lock::before { content: "🔒"; }
.ws-icon-warning::before { content: "⚠️"; }
.ws-icon-random::before { content: "🎲"; }
.ws-icon-pay::before { content: "💳"; }

/* Login Required */
.ws-login-required {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.ws-login-required i {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 20px;
    display: block;
}

.ws-login-required p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 25px;
}

/* Limit Reached */
.ws-limit-reached {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.ws-limit-reached i {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 20px;
    display: block;
}

.ws-limit-reached p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

/* Form Section */
.ws-lotto-form {
    background: white;
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.ws-selected-wrap {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.ws-selected-wrap:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.ws-selected-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ws-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: 50px;
    align-items: center;
}

.ws-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: ballAppear 0.3s ease-out;
}

@keyframes ballAppear {
    from {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.ws-ticket-count {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 10px;
}

/* Number Grid */
.ws-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 12px;
    margin: 25px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ws-num {
    aspect-ratio: 1;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ws-num::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.ws-num:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.ws-num:hover::before {
    opacity: 0.1;
}

.ws-num.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: numberSelect 0.3s ease-out;
    position: relative;
    z-index: 1;
}

.ws-num.selected::before {
    opacity: 0;
}

@keyframes numberSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Form Actions */
.ws-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.ws-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.ws-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.ws-btn:hover::before {
    left: 100%;
}

.ws-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.ws-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.ws-btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.ws-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.ws-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Feedback */
.ws-feedback {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}

.ws-feedback.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ws-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ws-feedback.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Statistics Section */
.ws-lotto-stats {
    background: white;
    padding: 30px;
    border-radius: 0 0 20px 20px;
}

.ws-lotto-stats h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 25px;
}

.ws-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.ws-stat-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ws-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ws-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.ws-stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Stats Widget */
.ws-stats-widget {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 30px 0;
}

.ws-stats-widget h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    margin: 0;
    text-align: center;
    font-size: 1.3rem;
}

.ws-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
}

.ws-stat-card {
    text-align: center;
    padding: 25px;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ws-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ws-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.ws-stat-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ws-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

.ws-stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* History Widget */
.ws-history-widget {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 30px 0;
}

.ws-history-widget h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    margin: 0;
    text-align: center;
    font-size: 1.3rem;
}

.ws-draws-list {
    padding: 20px;
}

.ws-draw-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ws-draw-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ws-draw-date {
    font-weight: 600;
    color: #374151;
    min-width: 100px;
}

.ws-draw-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ws-draw-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.ws-draw-winners {
    text-align: right;
    min-width: 120px;
}

.ws-winners-count {
    color: #10b981;
    font-weight: 600;
}

.ws-no-winners {
    color: #6b7280;
    font-style: italic;
}

/* Winners Widget */
.ws-winners-widget {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 30px 0;
}

.ws-winners-widget h3 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    margin: 0;
    text-align: center;
    font-size: 1.3rem;
}

.ws-winners-list {
    padding: 20px;
}

.ws-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    transition: all 0.3s ease;
}

.ws-winner-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.ws-winner-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ws-winner-name {
    font-weight: 600;
    color: #374151;
}

.ws-winner-date {
    font-size: 0.9rem;
    color: #6b7280;
}

.ws-winner-amount {
    font-weight: 700;
    color: #10b981;
    font-size: 1.1rem;
}

/* Maintenance Mode */
.ws-lotto-maintenance {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.ws-lotto-maintenance p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ws-lotto-wrap {
        margin: 15px;
        border-radius: 15px;
    }
    
    .ws-lotto-header {
        padding: 30px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .ws-lotto-header h2 {
        font-size: 2rem;
    }
    
    .ws-jackpot-amount {
        font-size: 1.5rem;
    }
    
    .ws-lotto-info {
        padding: 20px;
    }
    
    .ws-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .ws-info-item {
        justify-content: center;
    }
    
    .ws-lotto-form {
        padding: 20px;
    }
    
    .ws-number-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 8px;
    }
    
    .ws-num {
        font-size: 1rem;
    }
    
    .ws-form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .ws-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .ws-lotto-stats {
        padding: 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .ws-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ws-stats-summary {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .ws-draw-item,
    .ws-winner-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ws-draw-date,
    .ws-draw-winners {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ws-number-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    
    .ws-num {
        font-size: 0.9rem;
    }
    
    .ws-ball {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .ws-jackpot-amount {
        font-size: 1.3rem;
    }
}

/* Loading Animation */
.ws-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.ws-success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Error Animation */
.ws-error-animation {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Print Styles */
@media print {
    .ws-lotto-wrap {
        max-width: none;
        margin: 0;
        box-shadow: none;
    }
    
    .ws-form-actions,
    .ws-btn {
        display: none;
    }
}

/* Additional lottery ball color fixes */
.ws-lotto-wrap .ws-num {
    background-color: #ffffff !important;
    color: #374151 !important;
    border-color: #e2e8f0 !important;
}

.ws-lotto-wrap .ws-num:hover {
    border-color: #667eea !important;
    background-color: #ffffff !important;
    color: #374151 !important;
}

.ws-lotto-wrap .ws-num.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: #667eea !important;
}

/* Ensure selected balls have proper contrast */
.ws-lotto-wrap .ws-num.selected,
.ws-lotto-wrap .ws-num.selected:hover {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Ball display in selected numbers area */
.ws-lotto-wrap .ws-ball {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.ws-lotto-wrap .ws-ball.winning {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}
