/* EZ RSS - Front End Display Styles */
.ezrss-wrapper, .ezrss-feed {
    margin: 20px 0;
    font-family: inherit;
}

.ezrss-list ul {
    padding-left: 20px;
    padding-bottom: 60px;
}

/* Item Titles */
.ezrss-title {
    margin: 10px 0 0 0 !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

.ezrss-title a {
    text-decoration: none;
    color: #2271b1;
    transition: color 0.2s ease;
}

.ezrss-title a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Meta Data (Source, Author, Date) */
.ezrss-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0;
}

.ezrss-author {
    font-weight: 500;
    color: #444;
}

.ezrss-feed-name {
    font-weight: 600;
    color: #444;
}

/* Pagination Styling */
.ezrss-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
    margin:25px 0px 20px 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ezrss-pagination .button {
    display: inline-block;
    padding: 6px 14px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3338;
    font-size: 13px;
    transition: all 0.2s ease;
}

.ezrss-pagination .button:hover {
    background: #f0f0f1;
    border-color: #c3c4c7;
    color: #2271b1;
}

.ezrss-pagination .page-numbers {
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* Media/Card Layouts (Optional prep) */
.ezrss-media .ezrss-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.ezrss-thumb img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

/* Fade-in animation for new page loads */
.ezrss-feed {
    animation: ezrssFadeIn 0.6s ease-out;
}

@keyframes ezrssFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure the anchor has some "breathing room" at the top of the screen */
#results-top {
    scroll-margin-top: 50px; /* Adjust this based on your site's header height */
}

/* --- MOBILE RESPONSIVE OVERRIDES --- */
@media screen and (max-width: 600px) {
    
    /* 1. Make the pagination flexible and centered */
    .ezrss-pagination {
        flex-direction: column; /* Stack buttons on top of each other */
        gap: 12px;
        text-align: center;
        padding: 20px 10px;
    }

    .ezrss-pagination .button {
        width: 100%; /* Full width buttons for easier tapping */
        padding: 12px;
        font-size: 15px; /* Larger tap target */
        text-align: center;
    }

    .ezrss-pagination .ezrss-page-count {
        order: -1; /* Move "Page X of Y" to the top */
        margin-bottom: 5px;
        font-weight: bold;
    }

    /* 2. Fix the Media layout for small screens */
    .ezrss-media .ezrss-item {
        flex-direction: column; /* Stack image above text */
    }

    .ezrss-media .ezrss-thumb img {
        max-width: 100%;
        width: 100%; /* Make image span full width */
        height: auto;
    }

    /* 3. Adjust Title size for better readability on phones */
    .ezrss-title {
        font-size: 1.1rem;
    }

    /* 4. Increase spacing between list items so they are easier to tap */
    .ezrss-list .ezrss-item {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Remove the bullet separator if there's only one meta item visible */
    .ezrss-meta {
        line-height: 1.6;
    }
}