/*
 * Dedicații Ticker - Bandă de știri stil TV
 * Breaking news style ticker pentru dedicații
 */

/* Container principal ticker */
.drs-ticker-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 3px solid #FFD700;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Header ticker cu logo */
.drs-ticker-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 12px 20px;
    min-height: 60px;
    position: relative;
}

.drs-ticker-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #1a1a2e;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    padding-right: 20px;
    border-right: 2px solid #1a1a2e;
    margin-right: 20px;
}

.drs-ticker-logo-icon {
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

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

.drs-ticker-label {
    background: #1a1a2e;
    color: #FFD700;
    padding: 6px 15px;
    border-radius: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Container pentru conținutul care se derulează */
.drs-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Track pentru animație */
.drs-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll linear infinite;
    will-change: transform;
}

/* Viteza se setează dinamic prin JS, dar avem un default */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Item individual dedicație */
.drs-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    color: #ffffff;
    font-size: 16px;
    position: relative;
}

.drs-ticker-item::after {
    content: '🎵';
    margin: 0 20px;
    font-size: 20px;
    opacity: 0.6;
}

.drs-ticker-item:last-child::after {
    display: none;
}

/* Stiluri pentru diferite părți ale dedicației */
.drs-ticker-from {
    color: #FFD700;
    font-weight: bold;
    margin-right: 8px;
}

.drs-ticker-to {
    color: #FFA500;
    font-weight: bold;
    margin: 0 8px;
}

.drs-ticker-message {
    color: #ffffff;
    font-style: italic;
    margin: 0 8px;
}

.drs-ticker-song {
    color: #00ff88;
    margin-left: 8px;
}

.drs-ticker-separator {
    color: #666;
    margin: 0 8px;
}

/* Buton de închidere */
.drs-ticker-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.drs-ticker-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* State când ticker-ul este ascuns */
.drs-ticker-wrapper.hidden {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

/* Gradient fade la margini pentru efect smooth */
.drs-ticker-content::before,
.drs-ticker-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 2;
}

.drs-ticker-content::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.8), transparent);
}

.drs-ticker-content::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 215, 0, 0.8), transparent);
}

/* Responsive pentru mobile */
@media (max-width: 768px) {
    .drs-ticker-header {
        padding: 10px 15px;
        min-height: 50px;
    }
    
    .drs-ticker-logo {
        font-size: 14px;
        padding-right: 10px;
        margin-right: 10px;
    }
    
    .drs-ticker-logo-icon {
        font-size: 24px;
    }
    
    .drs-ticker-label {
        font-size: 11px;
        padding: 4px 10px;
        margin-right: 10px;
    }
    
    .drs-ticker-item {
        font-size: 14px;
        padding: 0 20px;
    }
    
    .drs-ticker-close {
        width: 25px;
        height: 25px;
        font-size: 16px;
        line-height: 25px;
    }
}

/* Variante de culori pentru diferite statusuri */
.drs-ticker-wrapper.live {
    border-top-color: #ff0000;
}

.drs-ticker-wrapper.live .drs-ticker-label {
    background: #ff0000;
    color: #ffffff;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Loading state */
.drs-ticker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #FFD700;
}

.drs-ticker-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print - ascunde ticker-ul */
@media print {
    .drs-ticker-wrapper {
        display: none !important;
    }
}
