/* 
 * Design Bilete Tombola - Stil Lozuri Premium
 * Inspirat din bilete de loterie și cazinouri
 */

.drs-bilete-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Bilet Individual - Design Loz */
.drs-bilet-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.drs-bilet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF6347);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.drs-bilet-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
}

/* Header Bilet */
.drs-bilet-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.drs-bilet-header::before {
    content: '🎰';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.drs-bilet-logo {
    font-size: 36px;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.drs-bilet-title {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a2e;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.drs-bilet-subtitle {
    font-size: 12px;
    color: #1a1a2e;
    margin: 5px 0 0 0;
    opacity: 0.8;
}

/* Număr Bilet - Secțiunea principală */
.drs-bilet-number {
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.drs-bilet-number-label {
    font-size: 12px;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 600;
}

.drs-bilet-number-value {
    font-size: 42px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* Detalii Bilet */
.drs-bilet-details {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.drs-bilet-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drs-bilet-detail-row:last-child {
    border-bottom: none;
}

.drs-bilet-detail-label {
    font-size: 13px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.drs-bilet-detail-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
}

/* Status Badge */
.drs-bilet-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drs-bilet-status.active {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.drs-bilet-status.winner {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: winnerPulse 1s ease-in-out infinite;
}

.drs-bilet-status.used {
    background: #555;
    color: #999;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 0, 0.8); }
}

@keyframes winnerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

/* Perforații stil bilet lozuri */
.drs-bilet-perforation {
    position: absolute;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.drs-bilet-perforation.top {
    top: 0;
}

.drs-bilet-perforation.bottom {
    bottom: 0;
}

.drs-bilet-perforation::before {
    content: '';
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 5px,
        rgba(255, 255, 255, 0.2) 5px,
        rgba(255, 255, 255, 0.2) 10px
    );
}

/* Footer Bilet */
.drs-bilet-footer {
    padding: 15px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.drs-bilet-qr {
    width: 80px;
    height: 80px;
    margin: 10px auto;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

.drs-bilet-footer-text {
    font-size: 11px;
    color: #888;
    margin: 5px 0;
    font-style: italic;
}

/* Winner Banner */
.drs-bilet-winner-banner {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: winnerBanner 2s ease-in-out infinite;
}

@keyframes winnerBanner {
    0%, 100% { background: linear-gradient(135deg, #FFD700, #FFA500); }
    50% { background: linear-gradient(135deg, #FFA500, #FF6347); }
}

/* Responsive */
@media (max-width: 768px) {
    .drs-bilete-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .drs-bilet-number-value {
        font-size: 32px;
    }
    
    .drs-bilet-title {
        font-size: 18px;
    }
}

/* Empty State */
.drs-bilete-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

.drs-bilete-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.drs-bilete-empty-text {
    font-size: 18px;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.drs-bilete-empty-subtext {
    font-size: 14px;
    color: #666;
}

/* Print Styles */
@media print {
    .drs-bilet-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
    }
    
    .drs-bilet-card::before {
        display: none;
    }
}
