/**
 * Custom Blog Styles - Media Planet
 * Improved blog post card design
 */

/* CSS Variables */
:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Blog Area Improvements */
.poket-blog-area {
    padding: 1.5rem 0 3rem 0;
    background: var(--bg-light);
}

/* Reduce top padding on blog page */
.blog .poket-blog-area,
.archive .poket-blog-area {
    padding-top: 1rem;
}

/* Blog Post Card - Glassmorphism Style */
.poket-single-blog {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.poket-single-blog:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(124, 58, 237, 0.2);
}

/* Blog Thumbnail */
.poket-blog-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 16/9;
}

.poket-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.poket-single-blog:hover .poket-blog-thumb img {
    transform: scale(1.1);
}

.poket-blog-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.poket-single-blog:hover .poket-blog-thumb::after {
    opacity: 1;
}

/* Blog Content Area */
.em-blog-content-area {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Title */
.blog-page-title {
    margin-bottom: 1rem;
}

.blog-page-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--text-dark);
}

.blog-page-title h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-page-title h2 a:hover {
    color: var(--primary-color);
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-meta a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-meta a:hover {
    color: var(--primary-color);
}

/* Blog Content */
.blog-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Button */
.blog-btn,
.blog-button,
.poket-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.blog-btn:hover,
.blog-button:hover,
.poket-blog-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white) !important;
}

/* Grid Layout Improvements */
.blog-messonary,
.row.blog-messonary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .blog-messonary,
    .row.blog-messonary {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0;
    }
}

@media (min-width: 992px) {
    .blog-messonary,
    .row.blog-messonary {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grid Item */
.grid-item {
    margin-bottom: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Pagination Improvements */
.poket-pagination,
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.poket-pagination a,
.poket-pagination span,
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.poket-pagination a:hover,
.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.poket-pagination .current,
.pagination .current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* Category Badge */
.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.blog-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--white);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item {
    animation: fadeInUp 0.5s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }
.grid-item:nth-child(7) { animation-delay: 0.7s; }
.grid-item:nth-child(8) { animation-delay: 0.8s; }
.grid-item:nth-child(9) { animation-delay: 0.9s; }
.grid-item:nth-child(10) { animation-delay: 1s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .poket-blog-area {
        padding: 2rem 0;
        overflow-x: hidden;
    }

    .blog-messonary,
    .row.blog-messonary {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    .grid-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .em-blog-content-area {
        padding: 1.25rem;
    }

    .blog-page-title h2 {
        font-size: 1rem;
    }

    .em-blog-thumb img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .container,
    .custom-container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-posts-found h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Article Content Headings - Mobile Responsive */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-content h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.875rem;
}

.entry-content h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Desktop - slightly larger but still reasonable */
@media (min-width: 768px) {
    .entry-content h1 {
        font-size: 1.75rem;
    }

    .entry-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
    }
}

