/* Reddit Feed Styles */

.reddit-feed-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.reddit-feed-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reddit-feed-header h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.reddit-feed-header .reddit-logo {
    width: 32px;
    height: 32px;
    color: #ff4500;
}

.reddit-feed-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

#reddit-feed {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.reddit-post {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.reddit-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left-color: #ff4500;
}

.reddit-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.reddit-flair {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reddit-time {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-left: auto;
}

.reddit-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.reddit-post:hover .reddit-title {
    color: #1e3a8a;
}

.reddit-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.reddit-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.reddit-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
}

.reddit-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
}

.reddit-icon {
    width: 16px;
    height: 16px;
}

/* Loading State */
.reddit-loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Error State */
.reddit-error {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.reddit-error i {
    width: 48px;
    height: 48px;
    color: #ef4444;
    margin-bottom: 1rem;
}

/* View All Link */
.reddit-view-all {
    text-align: center;
    margin-top: 2rem;
}

.reddit-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #ff4500;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.reddit-view-all a:hover {
    background: #e03d00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.reddit-view-all i {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .reddit-feed-section {
        padding: 3rem 0;
    }

    .reddit-feed-header h2 {
        font-size: 1.5rem;
    }

    .reddit-post {
        padding: 1.25rem;
    }

    .reddit-title {
        font-size: 1rem;
    }

    .reddit-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .reddit-author {
        margin-left: 0;
        width: 100%;
    }
}
