/* ===================================
   COMPONENTS.CSS - SLT GAMING
   Reusable Component Styles
   =================================== */

/* ===================================
   1. CARDS & PANELS
   =================================== */
.component-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.component-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--dark-border);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary-color);
}

/* Featured Card */
.featured-card {
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(0, 150, 255, 0.1) 100%);
    border: 2px solid var(--primary-color);
    position: relative;
}

.featured-card::before {
    content: 'HOT';
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--danger-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ===================================
   2. LOTTERY RESULT COMPONENTS
   =================================== */
.lottery-result-card {
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-base);
}

.lottery-result-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.lottery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lottery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.lottery-badge.sg { background: #FF5733; }
.lottery-badge.hk { background: #333333; }
.lottery-badge.au { background: #00B8FF; }

.lottery-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Number Display */
.number-display {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.number-ball {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.number-ball::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
}

.number-ball.special {
    background: var(--gradient-gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Prize Label */
.prize-label {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ===================================
   3. PREDICTION COMPONENTS
   =================================== */
.prediction-card {
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    border: 1px solid var(--dark-border);
    position: relative;
    overflow: hidden;
}

.prediction-header {
    margin-bottom: 20px;
}

.prediction-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
}

.prediction-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.prediction-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.prediction-number {
    background: var(--dark-card);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.prediction-number:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.prediction-confidence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.confidence-bar {
    flex: 1;
    height: 8px;
    background: var(--dark-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--gradient-success);
    transition: width 1s ease;
}

/* ===================================
   4. LIVE DRAW COMPONENTS
   =================================== */
.livedraw-container {
    background: var(--dark-secondary);
    border-radius: var(--radius-xl);
    padding: 30px;
    text-align: center;
    border: 2px solid var(--primary-color);
    position: relative;
}

.livedraw-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--danger-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.livedraw-status i {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.livedraw-pool {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.livedraw-numbers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.livedraw-ball {
    width: 80px;
    height: 80px;
    background: var(--dark-card);
    border: 3px solid var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.livedraw-ball.revealed {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    animation: revealBall 0.5s ease;
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.6);
}

@keyframes revealBall {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.livedraw-countdown {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin: 20px 0;
}

/* ===================================
   5. STATISTIC COMPONENTS
   =================================== */
.stat-card {
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(76, 205, 196, 0.1);
    color: var(--success-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-trend.down {
    background: rgba(255, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ===================================
   6. GAME MENU COMPONENTS
   =================================== */
.game-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.game-item {
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-item:hover::before {
    left: 100%;
}

.game-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.game-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.game-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.game-status {
    font-size: 0.8rem;
    color: var(--success-color);
}

.game-status.maintenance {
    color: var(--warning-color);
}

/* ===================================
   7. MODAL COMPONENTS
   =================================== */
.modal-custom {
    background: var(--dark-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--dark-border);
    overflow: hidden;
}

.modal-custom .modal-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 20px 25px;
}

.modal-custom .modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-custom .btn-close {
    color: white;
    opacity: 0.8;
}

.modal-custom .btn-close:hover {
    opacity: 1;
}

.modal-custom .modal-body {
    padding: 30px;
}

.modal-custom .modal-footer {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 20px 25px;
}

/* ===================================
   8. PROGRESS COMPONENTS
   =================================== */
.progress-custom {
    height: 25px;
    background: var(--dark-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-custom {
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===================================
   9. NOTIFICATION COMPONENTS
   =================================== */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 320px;
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.notification-toast.success {
    border-left: 4px solid var(--success-color);
}

.notification-toast.error {
    border-left: 4px solid var(--danger-color);
}

.notification-toast.warning {
    border-left: 4px solid var(--warning-color);
}

.notification-toast.info {
    border-left: 4px solid var(--info-color);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.notification-close:hover {
    background: var(--dark-border);
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================================
   10. TOOLTIP COMPONENTS
   =================================== */
.tooltip-custom {
    position: relative;
    display: inline-block;
}

.tooltip-custom .tooltip-text {
    visibility: hidden;
    background: var(--dark-secondary);
    color: var(--text-primary);
    text-align: center;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow-lg);
}

.tooltip-custom .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-secondary) transparent transparent transparent;
}

.tooltip-custom:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===================================
   11. COUNTDOWN TIMER
   =================================== */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.countdown-item {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 15px;
    min-width: 70px;
    text-align: center;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===================================
   12. SLIDER CONTROLS
   =================================== */
.slider-custom {
    position: relative;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 10;
}

.slider-nav:hover {
    background: var(--primary-color);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: var(--dark-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: var(--radius-full);
}

/* ===================================
   13. RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .component-card {
        padding: 20px;
    }
    
    .number-ball {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .livedraw-ball {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .game-menu {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 12px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .number-display {
        gap: 8px;
    }
    
    .number-ball {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .notification-toast {
        min-width: 280px;
        right: 10px;
        top: 80px;
    }
    
    .game-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   END OF COMPONENTS.CSS
   =================================== */