/**
 * Common CSS for SPC plugin
 * Shared styles used across multiple CSS files
 */

:root {
    --spc-primary-color: #ce2027;
    --spc-secondary-color: #ce2027;
    --spc-accent-color: #f59e0b;
    --spc-success-color: #11a925;
    --spc-error-color: #ef4444;
    --spc-text-color: #374151;
    --spc-light-text-color: #f9fafb;
    --spc-bg-color: #f8f9fa;
    --spc-font-family: 'Manrope', sans-serif;
    --spc-border-radius: 6px;
}

/* Popup styles */
.spc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.spc-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ticker styles - Dòng chữ chạy */
.spc-ticker-container {
    width: 100%;
    background-color: #f0f4f8;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    color: #333333;
}

.spc-ticker-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    padding-right: 50px;
}

.spc-ticker-icon {
    position: absolute;
    left: 15px;
    font-size: 16px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.spc-ticker-content {
    display: inline-block;
    padding-left: 55px;
    animation-name: ticker;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 30s;
}

.spc-ticker-speed-slow .spc-ticker-content {
    animation-duration: 50s;
}

.spc-ticker-speed-medium .spc-ticker-content {
    animation-duration: 30s;
}

.spc-ticker-speed-fast .spc-ticker-content {
    animation-duration: 20s;
}

.spc-ticker-text {
    display: inline-block;
    margin-right: 50px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.spc-ticker-text:hover {
    color: var(--spc-primary-color);
}

.spc-ticker-more {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background-color: var(--spc-primary-color);
    color: var(--spc-light-text-color);
    border-radius: var(--spc-border-radius);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

.spc-ticker-more:hover {
    background-color: var(--spc-secondary-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Media queries */
@media (max-width: 768px) {
    .spc-ticker-icon {
        left: 10px;
    }
    
    .spc-ticker-content {
        padding-left: 45px;
    }
    
    .spc-ticker-more {
        right: 10px;
    }
} 