/* ==========================================================================
   RSS Feed Page Styles
   Navy Blue (#1a1a2e) & Red (#dc3545) Theme
   ========================================================================== */

/* Hero Section */
.rss-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.rss-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.rss-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.rss-icon-large i {
    font-size: 40px;
    color: #ffffff;
}

.rss-hero-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rss-hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.5);
    color: #ffffff;
}

/* Feed Section */
.rss-feed-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(220, 53, 69, 0.2);
    border-top-color: #dc3545;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Error State */
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-container i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.error-container h3 {
    color: #1a1a2e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.error-container p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

.error-container a {
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
}

.error-container a:hover {
    text-decoration: underline;
}

/* Feed Grid */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Feed Card */
.feed-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 26, 46, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feed-card:hover::before {
    transform: scaleX(1);
}

.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 53, 69, 0.2);
}

/* Feed Card Header */
.feed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feed-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-date {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Feed Title */
.feed-title {
    color: #1a1a2e;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Feed Description */
.feed-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Feed Link */
.feed-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feed-link i {
    transition: transform 0.3s ease;
}

.feed-link:hover {
    color: #c82333;
}

.feed-link:hover i {
    transform: translateX(5px);
}

/* Responsive Design */

/* Tablets */
@media (max-width: 991.98px) {
    .feed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .rss-hero-title {
        font-size: 2.5rem;
    }

    .rss-hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .feed-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rss-hero {
        padding: 3rem 0 2rem;
    }

    .rss-hero-title {
        font-size: 2rem;
    }

    .rss-hero-subtitle {
        font-size: 1rem;
    }

    .rss-icon-large {
        width: 60px;
        height: 60px;
    }

    .rss-icon-large i {
        font-size: 30px;
    }

    .btn-subscribe {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .feed-card {
        padding: 1.5rem;
    }

    .feed-title {
        font-size: 1.2rem;
    }

    .feed-description {
        font-size: 0.9rem;
    }

    .rss-feed-section {
        padding: 2.5rem 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .rss-hero-title {
        font-size: 1.75rem;
    }

    .feed-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feed-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}