/* OSD Blog Pro - Frontend Styles */

/* Container */
.osd-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #0F0F0F;
    min-height: 100vh;
}



/* Posts Grid */
.osd-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Post Card */
.osd-post-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(27, 101, 154, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.osd-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 101, 154, 0.3);
}

/* Post Image */
.osd-post-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1B659A, #0F0F0F);
    display: flex;
    align-items: center;
    justify-content: center;
}

.osd-post-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(27, 101, 154, 0.1);
    will-change: transform;
}

.osd-post-card:hover .osd-post-image img {
    transform: scale(1.05);
}

.osd-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B659A, #0F0F0F);
    color: rgba(255, 255, 255, 0.7);
}

.osd-post-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
}

/* Post Content */
.osd-post-content {
    padding: 30px;
}

.osd-post-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B659A;
    line-height: 1.3;
}

.osd-post-excerpt {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.osd-post-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.osd-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.9rem;
}

.osd-meta-icon {
    color: #1B659A;
    font-size: 16px;
}

/* YouTube Video Embed */
.osd-post-video {
    margin: 20px 0;
}

.osd-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(27, 101, 154, 0.2);
}

.osd-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Audio Embed */
.osd-post-audio {
    margin: 20px 0;
}

.osd-audio-wrapper {
    position: relative;
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(27, 101, 154, 0.2);
}

.osd-audio-wrapper iframe {
    width: 100%;
    border: none;
    border-radius: 12px;
    display: block;
}



/* No Posts */
.osd-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.osd-no-posts h2 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: #1B659A;
}

.osd-no-posts p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .osd-blog-container {
        padding: 15px;
    }



    .osd-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .osd-post-card {
        margin: 0;
    }

    .osd-post-content {
        padding: 20px;
    }

    .osd-post-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {

    .osd-post-content {
        padding: 15px;
    }

    .osd-post-title {
        font-size: 1.2rem;
    }

    .osd-video-wrapper {
        margin: 15px 0;
    }

    .osd-audio-wrapper {
        margin: 15px 0;
    }

    .osd-audio-wrapper iframe {
        height: 120px; /* Smaller height on mobile */
    }
}

/* Loading Animation */
.osd-post-card.loading {
    opacity: 0.7;
}

.osd-post-card.loading .osd-post-image img {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Pagination Styles */
.osd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(27, 101, 154, 0.1);
    backdrop-filter: blur(10px);
}

.osd-pagination-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #1B659A;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.osd-pagination-link:hover {
    background: #1B659A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 101, 154, 0.3);
}

.osd-pagination-link.osd-pagination-current {
    background: #1B659A;
    color: #fff;
    border-color: #1B659A;
    pointer-events: none;
}

.osd-pagination-link.osd-pagination-prev,
.osd-pagination-link.osd-pagination-next {
    font-weight: 700;
}

.osd-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.osd-pagination-dots {
    color: #666;
    padding: 0 8px;
    font-weight: 600;
}

.osd-pagination-link .dashicons {
    font-size: 14px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .osd-pagination {
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px;
    }

    .osd-pagination-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .osd-pagination-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .osd-pagination-link.osd-pagination-prev {
        order: 1;
    }

    .osd-pagination-link.osd-pagination-next {
        order: 3;
    }
}

@media (max-width: 480px) {
    .osd-pagination-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .osd-pagination-link .dashicons {
        font-size: 12px;
    }
}
