/* RSS Reader Dynamic Styles - All Styles in One */

/* RSS Style Switcher */
.rss-style-switcher {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
}

.rss-style-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.rss-style-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    position: relative;
}

.rss-style-btn:hover {
    border-color: #3498db;
    color: #3498db;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.rss-style-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.rss-style-btn i {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Fallback icons if Font Awesome doesn't load */
.rss-style-btn .fas.fa-th-large::before {
    content: "⊞";
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rss-style-btn .fas.fa-list::before {
    content: "☰";
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rss-style-btn .fas.fa-bars::before {
    content: "≡";
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rss-style-btn .fas.fa-star::before {
    content: "★";
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rss-style-btn span {
    display: none;
}

/* Tooltip for buttons */
.rss-style-btn {
    position: relative;
}

.rss-style-btn:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.rss-style-btn:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    pointer-events: none;
}

/* Content Container */
.rss-content-container {
    position: relative;
    min-height: 200px;
}

.rss-style-content {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rss-style-content.active {
    display: block !important;
    opacity: 1;
}

/* Loading State */
.rss-content-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.rss-content-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Base Styles */
.rss-reader-dynamic {
    margin: 2rem 0;
}

.rss-reader-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Cards Style */
.rss-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rss-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 420px;
    display: flex;
    flex-direction: column;
}

.rss-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rss-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.rss-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rss-card:hover .rss-card-image img {
    transform: scale(1.05);
}

.rss-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.rss-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.rss-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    height: 4.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.rss-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.rss-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.rss-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rss-card-link:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Default List Style */
.rss-feed-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rss-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rss-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.rss-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

.rss-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rss-item-content {
    flex: 1;
}

.rss-item-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

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

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

.rss-item-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.rss-item-meta i {
    margin-right: 0.25rem;
}

.rss-item-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rss-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.rss-item-link:hover {
    color: #2980b9;
}

/* Minimal Style */
.rss-minimal-list {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.rss-minimal-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e8ed;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.rss-minimal-item:last-child {
    border-bottom: none;
}

.rss-minimal-item:hover {
    background-color: #f8f9fa;
}

.rss-minimal-content {
    flex: 1;
}

.rss-minimal-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

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

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

.rss-minimal-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.rss-minimal-arrow {
    color: #bdc3c7;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.rss-minimal-item:hover .rss-minimal-arrow {
    color: #3498db;
    transform: translateX(3px);
}

/* Featured Style */
.rss-featured-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.rss-featured-main {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.rss-featured-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.rss-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rss-featured-main:hover .rss-featured-image img {
    transform: scale(1.05);
}

.rss-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.rss-featured-content {
    padding: 2rem;
    position: relative;
}

.rss-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f39c12;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rss-featured-title {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

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

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

.rss-featured-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.rss-featured-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.rss-featured-meta i {
    margin-right: 0.5rem;
}

.rss-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rss-featured-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.rss-featured-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
}

.rss-sidebar-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.rss-sidebar-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e8ed;
}

.rss-sidebar-item:last-child {
    border-bottom: none;
}

.rss-sidebar-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.rss-sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rss-sidebar-content {
    flex: 1;
}

.rss-sidebar-item-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

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

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

.rss-sidebar-date {
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rss-item {
        flex-direction: column;
    }
    
    .rss-item-image {
        width: 100%;
        height: 150px;
    }
    
    .rss-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .rss-card {
        height: 400px;
    }
    
    .rss-card-image {
        height: 180px;
    }
    
    .rss-minimal-item {
        padding: 0.75rem 1rem;
    }
    
    .rss-minimal-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .rss-featured-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rss-featured-image {
        height: 200px;
    }
    
    .rss-featured-content {
        padding: 1.5rem;
    }
    
    .rss-featured-title {
        font-size: 1.2rem;
    }
    
    .rss-style-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .rss-style-btn {
        width: 40px;
        height: 40px;
        padding: 0;
    }
    
    .rss-style-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .rss-style-switcher {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .rss-style-buttons {
        gap: 0.5rem;
    }
    
    .rss-style-btn {
        width: 36px;
        height: 36px;
        padding: 0;
    }
    
    .rss-style-btn i {
        font-size: 0.9rem;
    }
}