/* EWD RSS Retriver Timeline Styles */
.ewd-rss-retriever {
    margin: 20px 0;
}

/* Timeline Layout */
.ewd-rss-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.ewd-rss-timeline .ewd-rss-item {
    display: flex;
    position: relative;
}

.ewd-rss-timeline-left {
    flex: 0 0 120px;
    padding-right: 20px;
    text-align: right;
    position: relative;
    margin-right: 15px;
}

.ewd-rss-date {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ewd-rss-timeline-marker {
    position: absolute;
    right: -1px;
    top: 0;
    width: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ewd-rss-timeline-line {
    flex: 1;
    width: 2px;
    background: #e0e0e0;
    margin: 0 auto;
}

.ewd-rss-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #701d0f;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #701d0f;
    margin: 4px 0;
    z-index: 2;
    position: relative;
}

.ewd-rss-timeline-content {
    flex: 1;
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    padding-bottom: 30px;
}

.ewd-rss-timeline-content:hover {
    transform: translateY(-2px);
}

.ewd-rss-thumbnail {
    flex: 0 0 300px;
    overflow: hidden;
}

.ewd-rss-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    max-height: 235px;
    aspect-ratio: 3/2;
}

.ewd-rss-timeline-content:hover .ewd-rss-thumbnail img {
    transform: scale(1.05);
}

.ewd-rss-text-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.ewd-rss-title {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    line-height: 1.3;
    font-weight: 700;
}

.ewd-rss-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ewd-rss-title a:hover {
    color: #3498db;
}

.ewd-rss-source {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 500;
}

.ewd-rss-excerpt {
    flex: 1;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.ewd-rss-read-more {
    margin-top: auto;
}

.ewd-rss-read-more a {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ewd-rss-read-more a:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.ewd-rss-credits {
    margin-top: 40px;
    padding: 15px;
    text-align: center;
    font-size: 0.8em;
    color: #95a5a6;
    border-top: 1px solid #ecf0f1;
}

.ewd-rss-error,
.ewd-rss-empty {
    padding: 30px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    text-align: center;
    margin: 20px 0;
}

.ewd-rss-error {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #c53030;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ewd-rss-thumbnail {
        flex: 0 0 250px;
    }
    
    .ewd-rss-text-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .ewd-rss-timeline .ewd-rss-item {
        flex-direction: column;
    }
    
    .ewd-rss-timeline-left {
        flex: none;
        padding-right: 0;
        text-align: left;
        margin-bottom: 15px;
        padding-left: 40px;
    }
    
    .ewd-rss-timeline-marker {
        right: auto;
        left: 0;
        width: 30px;
        height: 30px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .ewd-rss-timeline-line {
        display: none;
    }
    
    .ewd-rss-timeline-content {
        flex-direction: column;
    }
    
    .ewd-rss-thumbnail {
        flex: none;
        height: 200px;
    }
    
    .ewd-rss-text-content {
        padding: 20px;
    }
    
    .ewd-rss-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .ewd-rss-timeline {
        margin: 10px;
    }
    
    .ewd-rss-timeline-left {
        padding-left: 30px;
    }
    
    .ewd-rss-timeline-marker {
        width: 20px;
        height: 20px;
    }
    
    .ewd-rss-timeline-dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
        box-shadow: 0 0 0 2px #3498db;
    }
    
    .ewd-rss-thumbnail {
        height: 150px;
    }
    
    .ewd-rss-text-content {
        padding: 15px;
    }
    
    .ewd-rss-title {
        font-size: 1.1em;
    }
    
    .ewd-rss-excerpt {
        font-size: 0.9em;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .ewd-rss-timeline-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .ewd-rss-date {
        color: #e2e8f0;
    }
    
    .ewd-rss-timeline-line {
        background: #4a5568;
    }
    
    .ewd-rss-timeline-dot {
        background: #63b3ed;
        box-shadow: 0 0 0 2px #63b3ed;
    }
    
    .ewd-rss-title a {
        color: #e2e8f0;
    }
    
    .ewd-rss-title a:hover {
        color: #63b3ed;
    }
    
    .ewd-rss-source {
        color: #a0aec0;
    }
    
    .ewd-rss-excerpt {
        color: #cbd5e0;
    }
    
    .ewd-rss-credits {
        color: #718096;
        border-color: #4a5568;
    }
    
    .ewd-rss-error,
    .ewd-rss-empty {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .ewd-rss-error {
        background: #2d1b1b;
        border-color: #5c2c2c;
        color: #fc8181;
    }
}

/* Alternative Layout Options */
.ewd-rss-retriever.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.ewd-rss-retriever.grid .ewd-rss-item {
    flex-direction: column;
    margin-bottom: 0;
}

.ewd-rss-retriever.grid .ewd-rss-timeline-left {
    display: none;
}

.ewd-rss-retriever.grid .ewd-rss-timeline-content {
    flex-direction: column;
}

.ewd-rss-retriever.grid .ewd-rss-thumbnail {
    height: 200px;
    flex: none;
}

/* Compact Layout */
.ewd-rss-retriever.compact .ewd-rss-item {
    margin-bottom: 20px;
}

.ewd-rss-retriever.compact .ewd-rss-text-content {
    padding: 15px 20px;
}

.ewd-rss-retriever.compact .ewd-rss-title {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.ewd-rss-retriever.compact .ewd-rss-excerpt {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.ewd-rss-retriever.compact .ewd-rss-read-more a {
    padding: 6px 12px;
    font-size: 0.9em;
}
