/**
 * Wexoe Nyhetsrulle - Modern Redesign
 * Clean, readable, professional design
 */

.wexoe-news-ticker-compact {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e8edf2;
}

/* Container */
.wexoe-news-container {
    position: relative;
}

/* News List */
.wexoe-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Featured News Item - Hero Card */
.wexoe-news-item.featured {
    background: linear-gradient(135deg, #11325D 0%, #1a4a7a 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wexoe-news-item.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wexoe-news-item.featured:hover::before {
    opacity: 1;
}

.wexoe-news-item.featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(17, 50, 93, 0.2);
}

/* Featured Date */
.wexoe-news-item.featured .wexoe-news-date {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
    font-weight: 600;
}

.wexoe-news-item.featured .wexoe-news-date .day {
    font-size: 28px;
    color: #ffffff;
    line-height: 1;
    font-weight: 700;
}

.wexoe-news-item.featured .wexoe-news-date .month {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Featured Title */
.wexoe-news-item.featured .wexoe-news-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.wexoe-news-item.featured .wexoe-news-title a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.wexoe-news-item.featured .wexoe-news-title a:hover {
    opacity: 0.9;
}

/* Standard News Items */
.wexoe-news-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f0f3f7;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wexoe-news-item:last-child {
    border-bottom: none;
}

.wexoe-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #11325D;
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wexoe-news-item:hover {
    background: #f8fafc;
    padding-left: 28px;
}

.wexoe-news-item:hover::before {
    transform: scaleY(1);
}

/* Standard Date Block */
.wexoe-news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    margin-right: 18px;
    text-align: center;
}

.wexoe-news-date .day {
    font-size: 24px;
    font-weight: 700;
    color: #11325D;
    line-height: 1;
}

.wexoe-news-date .month {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7785;
    margin-top: 4px;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Content */
.wexoe-news-content {
    flex: 1;
    min-width: 0;
}

/* Standard Title */
.wexoe-news-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.wexoe-news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.wexoe-news-title a:hover {
    color: #11325D;
}

/* Hide excerpt by default */
.wexoe-news-excerpt {
    display: none;
}

/* Empty State */
.wexoe-news-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7785;
    font-size: 14px;
}

/* Animations */
.wexoe-news-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.wexoe-news-item:nth-child(1) {
    animation-delay: 0s;
}

.wexoe-news-item:nth-child(2) {
    animation-delay: 0.1s;
}

.wexoe-news-item:nth-child(3) {
    animation-delay: 0.2s;
}

.wexoe-news-item:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Accessibility */
.wexoe-news-item:focus {
    outline: 2px solid #11325D;
    outline-offset: -2px;
}

.wexoe-news-title a:focus {
    outline: 2px solid #11325D;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .wexoe-news-ticker-compact {
        border-radius: 12px;
        max-width: 100%;
    }
    
    .wexoe-news-item.featured {
        padding: 20px;
    }
    
    .wexoe-news-item.featured .wexoe-news-date .day {
        font-size: 24px;
    }
    
    .wexoe-news-item.featured .wexoe-news-date .month {
        font-size: 12px;
    }
    
    .wexoe-news-item.featured .wexoe-news-title {
        font-size: 16px;
    }
    
    .wexoe-news-item {
        padding: 14px 20px;
    }
    
    .wexoe-news-item:hover {
        padding-left: 24px;
    }
    
    .wexoe-news-date {
        min-width: 48px;
        margin-right: 14px;
    }
    
    .wexoe-news-date .day {
        font-size: 20px;
    }
    
    .wexoe-news-date .month {
        font-size: 10px;
    }
    
    .wexoe-news-title {
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wexoe-news-ticker-compact {
        background: #1a1f2e;
        border-color: #2d3748;
    }
    
    .wexoe-news-item {
        background: #1a1f2e;
        border-bottom-color: #2d3748;
    }
    
    .wexoe-news-item:hover {
        background: #252b3d;
    }
    
    .wexoe-news-date .day {
        color: #f7fafc;
    }
    
    .wexoe-news-date .month {
        color: #a0aec0;
    }
    
    .wexoe-news-title a {
        color: #e2e8f0;
    }
    
    .wexoe-news-title a:hover {
        color: #ffffff;
    }
    
    .wexoe-news-item.featured {
        background: linear-gradient(135deg, #11325D 0%, #1a4a7a 100%);
    }
}