/**
 * GenZ News - SEO Improvements
 * Additional CSS for better SEO and user experience
 */

/* ============================================
   IMAGE OPTIMIZATION
   ============================================ */

/* Lazy loading placeholder */
img[data-src] {
    background-color: #f0f0f0;
    min-height: 100px;
}

/* Image hover effects */
.item-thumbnail img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Alt text styling for accessibility */
img[alt] {
    /* Ensures alt text is readable if image fails to load */
    font-family: var(--primary-font);
    color: #666;
}

/* ============================================
   READABILITY IMPROVEMENTS
   ============================================ */

/* Improve text readability */
.post-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Better heading hierarchy */
.post-content h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.post-content h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    margin-top: 1.5em;
}

.post-content h3 {
    font-size: 1.25em;
    margin-bottom: 0.5em;
    margin-top: 1.25em;
}

/* Link styling for better visibility */
.post-content a {
    color: var(--color-1st);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    text-decoration: none;
}

/* ============================================
   BREADCRUMB STYLING
   ============================================ */

.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    list-style: none;
    background: none;
    border-radius: 0;
}

.breadcrumb li {
    display: inline-block;
    font-size: 14px;
}

.breadcrumb li + li:before {
    content: "/";
    padding: 0 8px;
    color: #999;
}

.breadcrumb a {
    color: var(--color-1st);
}

.breadcrumb .active {
    color: #666;
}

/* ============================================
   PAGINATION IMPROVEMENTS
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    list-style: none;
}

.pagination li {
    margin: 0 3px;
}

.pagination a,
.pagination span {
    display: block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--color-1st);
    color: #fff;
}

.pagination .active span {
    background: var(--color-1st);
    color: #fff;
}

/* ============================================
   SOCIAL SHARING BUTTONS
   ============================================ */

.social-sharing {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.social-sharing span {
    font-weight: 600;
    margin-right: 10px;
}

.social-sharing a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: #eee;
    color: #333;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-sharing a:hover {
    background: var(--color-1st);
    color: #fff;
}

/* ============================================
   AUTHOR BOX STYLING
   ============================================ */

.author-box {
    background: #f9f9f9;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 10px;
    font-size: 18px;
}

.author-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* ============================================
   RELATED POSTS
   ============================================ */

.related-posts {
    margin: 30px 0;
}

.related-posts h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-1st);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media screen and (max-width: 890px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 590px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .footer,
    .sidebar,
    .social-sharing,
    .related-posts,
    .comments,
    .ads,
    .search-btn,
    .collap-main-nav {
        display: none !important;
    }
    
    .primary {
        width: 100% !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-1st);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-1st);
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .post-content a {
        text-decoration: underline;
        font-weight: 600;
    }
}
/* ============================================
   VIDEO WATCH PAGE STYLES
   ============================================ */

.video-watch-page {
    padding: 30px 0;
}

.video-player-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.video-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.video-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.video-meta a {
    color: var(--color-1st);
}

.video-watch-player {
    margin: 0;
    background: #000;
}

.video-watch-player iframe {
    min-height: 500px;
}

@media screen and (max-width: 890px) {
    .video-watch-player iframe {
        min-height: 400px;
    }
    
    .video-title {
        font-size: 22px;
    }
}

@media screen and (max-width: 590px) {
    .video-watch-player iframe {
        min-height: 250px;
    }
    
    .video-title {
        font-size: 18px;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 5px;
    }
}

.video-description {
    padding: 20px;
    font-size: 16px;
    line-height: 1.7;
}

.video-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.video-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-share a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: #333;
    color: #fff;
    transition: all 0.3s ease;
}

.video-share a:hover {
    background: var(--color-1st);
    transform: translateY(-2px);
}

.video-share .share-facebook { background: #3b5998; }
.video-share .share-twitter { background: #1da1f2; }
.video-share .share-whatsapp { background: #25d366; }

/* Related Videos Section */
.related-videos {
    margin-top: 40px;
}

.related-videos h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-1st);
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media screen and (max-width: 1190px) {
    .related-videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 890px) {
    .related-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 590px) {
    .related-videos-grid {
        grid-template-columns: 1fr;
    }
}

.related-video-item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-video-item:hover {
    transform: translateY(-5px);
}

.related-video-item .video-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-video-item .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

.related-video-item h3 {
    padding: 15px;
    font-size: 16px;
    margin: 0;
}

.related-video-item h3 a {
    color: #333;
    text-decoration: none;
}

.related-video-item h3 a:hover {
    color: var(--color-1st);
}
