/* Number Cards Styles */

.number-card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.number-card-glass:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

.number-card-glass.premium-border {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.95));
}

.number-card-glass.sold {
    opacity: 0.6;
    filter: grayscale(50%);
}

/* Operator Badge */
.operator-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

/* Number Display */
.number-display-enhanced {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0; /* เพิ่มระยะห่างด้านบนเพื่อไม่ให้ทับกับ operator badge */
    letter-spacing: 1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Price Display */
.price-display-enhanced {
    font-size: 1.25rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 1rem;
}

.text-shimmer {
    background: linear-gradient(135deg, #28a745, #20c997, #28a745);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}



.operator-ais { background: #00a651 !important; }
.operator-dtac { background: #1e3a8a !important; }
.operator-true { background: #dc2626 !important; }
.operator-nt { background: #7c3aed !important; }

/* Sold Ribbon */
.sold-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #dc3545;
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

/* VIP Badge */
.neomorph {
    box-shadow: 
        inset 2px 2px 5px rgba(255, 255, 255, 0.7),
        inset -2px -2px 5px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Button Enhancements */
.btn-magnetic {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-magnetic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-magnetic:hover::before {
    width: 300px;
    height: 300px;
}

/* Focus Ring */
.focus-ring:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Will Change for Performance */
.will-change-transform {
    will-change: transform;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .number-card-glass {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .number-display-enhanced {
        font-size: 1.25rem;
    }
    
    .price-display-enhanced {
        font-size: 1.1rem;
    }
    
    .number-card-glass:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .number-card-glass {
        border: 2px solid #000;
        background: #fff;
    }
    
    .text-gradient,
    .number-display-enhanced {
        background: none;
        -webkit-text-fill-color: initial;
        color: #000;
    }
    
    .text-shimmer,
    .price-display-enhanced {
        background: none;
        -webkit-text-fill-color: initial;
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .number-card-glass,
    .btn-magnetic,
    .text-shimmer {
        transition: none;
        animation: none;
    }
    
    .number-card-glass:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .number-card-glass {
        background: white;
        border: 1px solid #000;
        box-shadow: none;
        break-inside: avoid;
    }
    
    .btn-magnetic {
        display: none;
    }
}