/* Additional Custom Styles for Wiseloaded Pro */

/* Posts Grid Enhancement */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

/* Category Navigation */
.category-nav {
    background: var(--secondary-color);
    padding: 10px 0;
}

.category-menu {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}

.category-menu li {
    margin-right: 20px;
}

.category-menu a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.category-menu a:hover {
    background: rgba(255,255,255,0.1);
}

/* Audio Player Styles */
.audio-player {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.audio-player audio {
    width: 100%;
    margin-bottom: 15px;
}

.download-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.download-button:hover {
    background: var(--secondary-color);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Social Share Buttons */
.post-share {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.share-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.share-button {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
}

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

/* Author Bio */
.author-bio {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

.author-bio .avatar {
    border-radius: 50%;
    margin-right: 20px;
}

/* Related Posts */
.related-posts {
    margin: 40px 0;
}

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

.related-post {
    text-align: center;
}

.related-post-thumbnail img {
    border-radius: 8px;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio .avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .post-card {
        background: #1e1e1e;
    }
    
    .audio-player,
    .post-share,
    .author-bio {
        background: #2d2d2d;
    }
}
