/* RSS Feed Custom Element Styles */

rss-feed {
    display: block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

rss-feed .feed-container {
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

rss-feed .feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

rss-feed .feed-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

rss-feed .feed-title-link {
    text-decoration: none;
    color: inherit;
}

rss-feed .feed-title-link:hover .feed-title {
    color: #feca57;
}

rss-feed .feed-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    transition: color 0.2s;
}

rss-feed .feed-subtitle {
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 0;
}

rss-feed .feed-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

rss-feed .feed-items::-webkit-scrollbar {
    width: 6px;
}

rss-feed .feed-items::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

rss-feed .feed-items::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

rss-feed .feed-item {
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
    word-break: break-word;
    overflow-wrap: break-word;
}

rss-feed .feed-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

rss-feed .feed-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #48dbfb;
}

rss-feed .feed-item-title a {
    color: inherit;
    text-decoration: none;
}

rss-feed .feed-item-title a:hover {
    text-decoration: underline;
}

rss-feed .feed-item-content {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

rss-feed .feed-item-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.75rem;
    opacity: 0.7;
}

rss-feed .feed-item-meta a {
    color: #feca57;
    text-decoration: none;
    opacity: 1;
}

rss-feed .feed-item-meta a:hover {
    text-decoration: underline;
}

rss-feed .feed-item-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

rss-feed .feed-loading {
    text-align: center;
    padding: 30px;
    opacity: 0.6;
}

rss-feed .feed-error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
}

rss-feed .feed-empty {
    text-align: center;
    padding: 20px;
    opacity: 0.5;
}

/* Mastodon-specific styles */
rss-feed[type="mastodon"] .feed-icon {
    background: linear-gradient(135deg, #6364ff, #563acc);
}

rss-feed[type="mastodon"] .feed-item-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
}

rss-feed[type="mastodon"] .feed-item-meta a {
    color: #feca57;
    font-weight: 500;
}

/* Blog-specific styles */
rss-feed[type="blog"] .feed-icon {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

rss-feed[type="blog"] .feed-item-title {
    color: #feca57;
}

/* Compact mode */
rss-feed[compact] .feed-container {
    padding: 15px;
}

rss-feed[compact] .feed-items {
    max-height: 250px;
}

rss-feed[compact] .feed-item {
    padding: 8px;
}

rss-feed[compact] .feed-item-content {
    -webkit-line-clamp: 2;
}
