/* Unsplash Images Styles for Blog */

/* Blog Card Images with Unsplash Photos */
.premium-blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    transition: all 0.4s ease;
}

.premium-blog-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    transition: opacity 0.3s ease;
}

.premium-blog-card:hover .premium-blog-image {
    transform: scale(1.05);
}

.premium-blog-card:hover .premium-blog-image::before {
    opacity: 0.8;
}

/* Featured Article Hero Image */
.premium-glass .premium-feature-icon {
    width: 250px;
    height: 180px;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    overflow: hidden;
}

.premium-glass .premium-feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
}

/* Article Cover Image Enhancement */
.article-cover {
    height: 500px;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

.article-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Inline Article Images */
.article-inline-image {
    margin: 48px -40px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.article-inline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.article-inline-image:hover img {
    transform: scale(1.02);
}

.article-inline-image p {
    background: #f9fafb;
    margin: 0;
    padding: 16px 40px;
    text-align: center;
    color: #78716c;
    font-size: 14px;
    font-style: italic;
    border-top: 1px solid #e5e7eb;
}

/* Lazy Loading Placeholder */
.image-loading {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image Credits */
.image-credit {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-blog-image:hover .image-credit,
.article-cover:hover .image-credit {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .premium-blog-image {
        height: 160px;
    }
    
    .article-cover {
        height: 300px;
    }
    
    .article-inline-image {
        margin: 32px -20px;
        border-radius: 0;
    }
    
    .premium-glass .premium-feature-icon {
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }
}

/* High Resolution Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .premium-blog-image,
    .article-cover,
    .article-inline-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .article-inline-image p {
        background: #1c1917;
        color: #a8a29e;
        border-top-color: #44403c;
    }
}

/* Pagination Visual Enhancement */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 60px 0;
    padding: 32px 0;
    border-top: 1px solid #e5e7eb;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pagination.hidden {
    display: none !important;
}

.pagination-btn {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 42px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #10b981, #34d399);
    border-color: #10b981;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reading Progress Bar Enhancement */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 100%);
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    transition: width 0.2s ease;
}

/* Article Outline Enhancement */
.outline-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: sticky;
    top: 80px;
}

.outline-link {
    display: block;
    padding: 10px 16px;
    color: #57534e;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.outline-link:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    border-left-color: #10b981;
    padding-left: 20px;
}

.outline-link.active {
    color: #10b981;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    border-left-color: #10b981;
}

/* Recommended Articles Enhancement */
.recommended-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.recommended-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.recommended-card-image {
    height: 160px;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    overflow: hidden;
}

.recommended-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
}