/* SFC News Plugin - Stili moderni */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.sfc-news-container {
    max-width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    font-family: 'Arial', sans-serif;
    margin: 20px 0;
}

.sfc-news-header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sfc-news-header h3 {
    color: white;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfc-icon-news::before {
    content: "\f1ea";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sfc-news-controls {
    display: flex;
    gap: 10px;
}

.sfc-control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sfc-control-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.sfc-icon-pause::before,
.sfc-icon-play::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sfc-icon-pause::before {
    content: "\f04c";
}

.sfc-icon-play::before {
    content: "\f04b";
}

.sfc-news-scroll-container {
    overflow: hidden;
    position: relative;
    height: calc(100% - 120px);
}

.sfc-news-list {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
}

.sfc-news-item {
    min-height: 100px;
    padding: 25px;
    background: rgba(255,255,255,0.95);
    margin: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sfc-news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    transition: width 0.3s ease;
}

.sfc-news-item:hover::before {
    width: 100%;
}

.sfc-news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.sfc-news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.sfc-news-date,
.sfc-news-time {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(102,126,234,0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.sfc-icon-calendar::before {
    content: "\f073";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sfc-icon-clock::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sfc-news-content {
    position: relative;
    z-index: 2;
}

.sfc-news-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.sfc-news-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.sfc-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfc-indicator.active {
    background: white;
    transform: scale(1.3);
}

.sfc-indicator:hover {
    background: rgba(255,255,255,0.7);
}

/* Animazioni */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.sfc-news-item.slide-in {
    animation: slideInRight 0.5s ease-out;
}

.sfc-news-item.slide-out {
    animation: slideOutLeft 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sfc-news-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .sfc-news-header h3 {
        font-size: 18px;
    }
    
    .sfc-news-item {
        margin: 8px 10px;
        padding: 20px;
    }
    
    .sfc-news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .sfc-news-date,
    .sfc-news-time {
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .sfc-news-container {
        border-radius: 10px;
        margin: 15px 0;
    }
    
    .sfc-news-header h3 {
        font-size: 16px;
    }
    
    .sfc-news-item {
        padding: 15px;
        margin: 5px 8px;
    }
    
    .sfc-control-btn {
        width: 35px;
        height: 35px;
    }
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    .sfc-news-item,
    .sfc-news-list,
    .sfc-indicator,
    .sfc-control-btn {
        transition: none;
    }
    
    .sfc-news-item.slide-in,
    .sfc-news-item.slide-out {
        animation: none;
    }
}

/* Tema scuro */
@media (prefers-color-scheme: dark) {
    .sfc-news-item {
        background: rgba(40, 40, 40, 0.95);
        color: #e0e0e0;
    }
    
    .sfc-news-content p {
        color: #e0e0e0;
    }
    
    .sfc-news-date,
    .sfc-news-time {
        color: #b0b0b0;
        background: rgba(102,126,234,0.2);
    }
}