/* Blog Styles - Modern Design */

/* ==========================================================================
   Single Blog Post - 2 Columns Layout Like Girls Page
   ========================================================================== */

/* 2 Columns Layout */
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Gallery Section (Right Column - Like Girls Page) */
.blog-post-gallery-section {
    position: sticky;
    top: 20px;
    align-self: start;
    order: 2;
}

/* Content Section (Left Column - Like Girls Page) */
.blog-post-content-section {
    background: linear-gradient(135deg, 
        rgba(30, 25, 39, 0.95) 0%, 
        rgba(24, 19, 33, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    order: 1;
}

/* Responsive - Stack on mobile */
@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-post-gallery-section {
        position: relative;
        top: 0;
    }
}

/* ==========================================================================
   Blog Archive - Grid Layout
   ========================================================================== */

/* Archive Title Styling */
.page-title span {
    color: #fff;
    font-weight: 700;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (min-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* ==========================================================================
   Blog Post Card (Archive View)
   ========================================================================== */

.blog-post-card {
    background: linear-gradient(135deg, rgba(30, 25, 39, 0.95), rgba(24, 19, 33, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 115, 0.3);
    box-shadow: 0 12px 40px rgba(255, 0, 115, 0.15);
}

/* Card Thumbnail */
.blog-post-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: block;
}

.blog-post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .blog-post-card-thumbnail img {
    transform: scale(1.05);
}

/* Card Content */
.blog-post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category Badge */
.blog-post-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--color-pink-100));
    background: rgba(255, 0, 115, 0.12);
    border: 1px solid rgba(255, 0, 115, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Title */
.blog-post-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.blog-post-card-title a {
    color: hsl(var(--color-white-50));
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card-title a:hover {
    color: hsl(var(--color-pink-100));
}

/* Card Excerpt */
.blog-post-card-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* Card Meta */
.blog-post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-card-meta svg {
    opacity: 0.6;
}

/* Card Button */
.blog-post-card-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Single Blog Post
   ========================================================================== */

.blog-single-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Post Navigation (Previous/Next) */
.post-navigation {
    margin: 40px auto;
    max-width: 850px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    display: block;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 25, 39, 0.95), rgba(24, 19, 33, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.post-navigation a:hover {
    border-color: rgba(255, 0, 115, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 115, 0.12);
}

.post-navigation .nav-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsl(var(--color-pink-100));
}

.post-navigation .nav-title {
    font-size: 16px;
    font-weight: 600;
    color: hsl(var(--color-white-50));
    line-height: 1.4;
}

@media (max-width: 767px) {
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}

.blog-post-single {
    background: linear-gradient(135deg, rgba(30, 25, 39, 0.95), rgba(24, 19, 33, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Post Header - Like Girls Page */
.blog-post-header {
    padding: 40px 40px 24px;
    background: rgba(255, 0, 115, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-post-header .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .blog-post-header .page-title {
        font-size: 22px;
    }
    
    .blog-post-header {
        padding: 30px 24px 20px;
    }
}

/* Post Meta - Like Girls Page */
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-meta svg {
    opacity: 0.7;
    color: rgba(255, 158, 253, 0.7);
}

.blog-post-category a {
    color: rgba(255, 158, 253, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-category a:hover {
    color: #ff0074;
}

/* Featured Image for Single Image Posts */
.blog-post-thumbnail {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 3/4;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Post Body */
.blog-post-body {
    padding: 40px;
}

.blog-post-body .text-content {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Post Stats (Like, Views, Comments) - Like Girls Page */
.blog-post-stats-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.blog-like-button {
    background: linear-gradient(135deg, rgba(52, 45, 62, 0.9) 0%, rgba(74, 55, 99, 0.7) 100%);
    border: 2px solid rgba(255, 0, 116, 0.5);
    border-radius: 25px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 0, 116, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.blog-like-button:hover {
    background: linear-gradient(135deg, rgba(52, 45, 62, 1) 0%, rgba(74, 55, 99, 0.9) 100%);
    border-color: rgba(255, 0, 116, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 0, 116, 0.4);
}

.blog-like-button:hover .like-icon {
    transform: scale(1.2);
}

.blog-like-button .like-icon {
    color: #ff9efd;
    transition: all 0.3s ease;
    font-size: 18px;
}

.blog-like-button.liked {
    background: linear-gradient(135deg, rgba(255, 0, 116, 0.2) 0%, rgba(255, 158, 253, 0.1) 100%);
    border-color: rgba(255, 0, 116, 0.8);
}

.blog-like-button.liked .like-icon svg {
    fill: #ff0074;
    stroke: #ff0074;
}

.blog-like-button.liked .like-text {
    color: #ff9efd;
}

.blog-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.blog-stat-item svg {
    color: #ff9efd;
}

.blog-stat-item:hover {
    color: #fff;
}

.blog-stat-item:hover svg {
    color: #ff0074;
}

.blog-post-content .text-content p {
    margin-bottom: 24px;
}

.blog-post-content .text-content p:first-of-type {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

.blog-post-content .text-content h2,
.blog-post-content .text-content h3,
.blog-post-content .text-content h4 {
    color: hsl(var(--color-white-50));
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.blog-post-content .text-content h2::after,
.blog-post-content .text-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--color-pink-100)), transparent);
}

.blog-post-content .text-content h2 {
    font-size: 32px;
}

.blog-post-content .text-content h3 {
    font-size: 26px;
}

.blog-post-content .text-content h4 {
    font-size: 22px;
}

@media (max-width: 767px) {
    .blog-post-content {
        padding: 30px;
    }
    
    .blog-post-content .text-content {
        font-size: 16px;
    }
    
    .blog-post-content .text-content h2 {
        font-size: 24px;
    }
    
    .blog-post-content .text-content h3 {
        font-size: 20px;
    }
}

.blog-post-content .text-content ul,
.blog-post-content .text-content ol {
    margin-bottom: 20px;
    padding-right: 24px;
}

.blog-post-content .text-content li {
    margin-bottom: 8px;
}

.blog-post-content .text-content a {
    color: hsl(var(--color-pink-100));
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-post-content .text-content a:hover {
    color: hsl(var(--color-pink-50));
}

.blog-post-content .text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.blog-post-content .text-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(255, 0, 115, 0.05);
    border-right: 4px solid hsl(var(--color-pink-100));
    border-radius: 8px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* Post Footer (Tags) */
.blog-post-footer {
    padding: 30px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.blog-post-tags svg {
    color: hsl(var(--color-pink-50));
    flex-shrink: 0;
}

.blog-post-tags a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.blog-post-tags a:hover {
    color: hsl(var(--color-pink-100));
    background: rgba(255, 0, 115, 0.12);
    border-color: rgba(255, 0, 115, 0.3);
}

/* ==========================================================================
   Blog Pagination
   ========================================================================== */

.blog-pagination {
    margin: 50px 0 30px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(30, 25, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    color: hsl(var(--color-pink-100));
    background: rgba(255, 0, 115, 0.12);
    border-color: rgba(255, 0, 115, 0.3);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    color: hsl(var(--color-white-50));
    background: hsl(var(--color-pink-100));
    border-color: hsl(var(--color-pink-100));
    box-shadow: 0 8px 22px rgba(255, 0, 115, 0.32);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.pagination .page-numbers.dots:hover {
    transform: none;
    background: transparent;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 767px) {
    .blog-post-header,
    .blog-post-content,
    .blog-post-footer {
        padding: 24px;
    }
    
    .blog-post-content .text-content {
        font-size: 15px;
    }
    
    .blog-post-card-content {
        padding: 20px;
    }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

/* Comments Section - Exactly Like Girls Page */
.blog-post-body .comments-section {
    margin-top: 40px;
}

.blog-post-body .comments-area .comments-title,
.blog-post-single .comments-area .comments-title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-body .comments-area .comment-list,
.blog-post-single .comments-area .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.blog-post-body .comments-area .comment,
.blog-post-single .comments-area .comment {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.blog-post-body .comments-area .comment-author,
.blog-post-single .comments-area .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-post-body .comments-area .comment-author img,
.blog-post-single .comments-area .comment-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.blog-post-body .comments-area .comment-metadata,
.blog-post-single .comments-area .comment-metadata {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.blog-post-body .comments-area .comment-content,
.blog-post-single .comments-area .comment-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.blog-post-body .comments-area .comment-reply-link,
.blog-post-single .comments-area .comment-reply-link {
    color: #ff9efd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-post-body .comments-area .comment-reply-link:hover,
.blog-post-single .comments-area .comment-reply-link:hover {
    color: #ff0074;
}

/* Comment Form */
.blog-post-body .comment-respond,
.blog-post-single .comment-respond {
    margin-top: 30px;
}

.blog-post-single .comment-respond .comment-reply-title {
    font-size: 22px;
    font-weight: 700;
    color: hsl(var(--color-white-50));
    margin: 0 0 24px 0;
}

.blog-post-single .comment-respond .comment-form {
    display: grid;
    gap: 16px;
}

.blog-post-single .comment-respond .comment-form-comment {
    grid-column: 1 / -1;
}

.blog-post-single .comment-respond label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.blog-post-single .comment-respond input[type="text"],
.blog-post-single .comment-respond input[type="email"],
.blog-post-single .comment-respond input[type="url"],
.blog-post-single .comment-respond textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: hsl(var(--color-white-50));
    font-size: 15px;
    transition: all 0.3s ease;
}

.blog-post-single .comment-respond input[type="text"]:focus,
.blog-post-single .comment-respond input[type="email"]:focus,
.blog-post-single .comment-respond input[type="url"]:focus,
.blog-post-single .comment-respond textarea:focus {
    outline: none;
    border-color: hsl(var(--color-pink-100));
    background: rgba(255, 255, 255, 0.08);
}

.blog-post-single .comment-respond textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 767px) {
    .blog-post-single .comments-area {
        padding: 24px;
    }
}

/* ==========================================================================
   WordPress Gallery Support - Like Girls Page
   ========================================================================== */

/* Blog Gallery Slider - Like Girls Page */
.blog-post-content .blog-gallery-slider {
    margin: 40px 0;
    width: 100%;
}

/* Main Image Container - Bigger Like Girls Page */
.blog-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-gallery-main-image {
    width: 100%;
    height: 100%;
}

.blog-gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Navigation Arrows */
.blog-gallery-prev,
.blog-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 115, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #fff;
}

.blog-gallery-prev:hover,
.blog-gallery-next:hover {
    background: rgba(255, 0, 115, 1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.blog-gallery-prev {
    left: 20px;
}

.blog-gallery-next {
    right: 20px;
}

/* Thumbnails */
.blog-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 115, 0.5) rgba(255, 255, 255, 0.1);
}

.blog-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.blog-gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.blog-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 115, 0.5);
    border-radius: 3px;
}

.blog-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 115, 0.8);
}

.blog-gallery-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-gallery-thumb:hover {
    border-color: rgba(255, 0, 115, 0.5);
}

.blog-gallery-thumb.active {
    border-color: hsl(var(--color-pink-100));
    box-shadow: 0 0 0 2px rgba(255, 0, 115, 0.2);
}

.blog-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .blog-gallery-prev,
    .blog-gallery-next {
        width: 40px;
        height: 40px;
    }
    
    .blog-gallery-prev {
        left: 10px;
    }
    
    .blog-gallery-next {
        right: 10px;
    }
    
    .blog-gallery-thumb {
        width: 80px;
        height: 80px;
    }
}

/* Gutenberg Gallery - Keep as grid for Gutenberg blocks */
.blog-post-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 0;
    list-style: none;
}

.blog-post-content .gallery-item,
.blog-post-content .wp-block-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 25, 39, 0.9), rgba(24, 19, 33, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 4/3;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-content .gallery-item:hover,
.blog-post-content .wp-block-image:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 115, 0.3);
    box-shadow: 0 16px 40px rgba(255, 0, 115, 0.2);
}

.blog-post-content .gallery-item::before,
.blog-post-content .wp-block-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 115, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.blog-post-content .gallery-item:hover::before,
.blog-post-content .wp-block-image:hover::before {
    opacity: 1;
}

.blog-post-content .gallery-item img,
.blog-post-content .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.blog-post-content .gallery-item:hover img,
.blog-post-content .wp-block-image:hover img {
    transform: scale(1.15);
}

/* Gallery Icon Overlay */
.blog-post-content .gallery-item a::after,
.blog-post-content .wp-block-image a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 115, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='1 1 12 12 23 1'%3E%3C/polyline%3E%3Cpath d='M12 12v10'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.blog-post-content .gallery-item:hover a::after,
.blog-post-content .wp-block-image:hover a::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.blog-post-content .gallery-caption,
.blog-post-content .wp-block-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.blog-post-content .gallery-item:hover .gallery-caption,
.blog-post-content .wp-block-image:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Columns - Classic & Gutenberg */
.blog-post-content .gallery-columns-1,
.blog-post-content .columns-1 {
    grid-template-columns: 1fr;
}

.blog-post-content .gallery-columns-2,
.blog-post-content .columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blog-post-content .gallery-columns-3,
.blog-post-content .columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-post-content .gallery-columns-4,
.blog-post-content .columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blog-post-content .gallery-columns-5,
.blog-post-content .columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.blog-post-content .gallery-columns-6,
.blog-post-content .columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .blog-post-content .gallery-columns-4,
    .blog-post-content .gallery-columns-5,
    .blog-post-content .gallery-columns-6,
    .blog-post-content .columns-4,
    .blog-post-content .columns-5,
    .blog-post-content .columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-post-content .gallery-columns-3,
    .blog-post-content .gallery-columns-4,
    .blog-post-content .gallery-columns-5,
    .blog-post-content .gallery-columns-6,
    .blog-post-content .columns-3,
    .blog-post-content .columns-4,
    .blog-post-content .columns-5,
    .blog-post-content .columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .blog-post-content .gallery,
    .blog-post-content .wp-block-gallery {
        grid-template-columns: 1fr;
    }
}

/* Gallery Lightbox */
.blog-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.blog-gallery-lightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.blog-gallery-lightbox .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.blog-gallery-lightbox .lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.blog-gallery-lightbox .lightbox-caption {
    color: #fff;
    font-size: 16px;
    margin-top: 16px;
    text-align: center;
    max-width: 600px;
}

.blog-gallery-lightbox .lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-gallery-lightbox .lightbox-close:hover {
    background: rgba(255, 0, 115, 0.3);
    border-color: hsl(var(--color-pink-100));
    transform: rotate(90deg);
}

.blog-gallery-lightbox .lightbox-prev,
.blog-gallery-lightbox .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-gallery-lightbox .lightbox-prev {
    left: 20px;
}

.blog-gallery-lightbox .lightbox-next {
    right: 20px;
}

.blog-gallery-lightbox .lightbox-prev:hover,
.blog-gallery-lightbox .lightbox-next:hover {
    background: rgba(255, 0, 115, 0.3);
    border-color: hsl(var(--color-pink-100));
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .blog-gallery-lightbox .lightbox-prev,
    .blog-gallery-lightbox .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .blog-gallery-lightbox .lightbox-prev {
        left: 10px;
    }
    
    .blog-gallery-lightbox .lightbox-next {
        right: 10px;
    }
    
    .blog-gallery-lightbox .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* ==========================================================================
   No Results Page
   ========================================================================== */

.blog-no-results {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.blog-no-results-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(255, 0, 115, 0.1), rgba(255, 0, 115, 0.05));
    border: 2px solid rgba(255, 0, 115, 0.2);
    border-radius: 50%;
    margin-bottom: 30px;
}

.blog-no-results-icon svg {
    color: hsl(var(--color-pink-100));
}

.blog-no-results-title {
    font-size: 32px;
    font-weight: 700;
    color: hsl(var(--color-white-50));
    margin: 0 0 16px 0;
}

.blog-no-results-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    line-height: 1.6;
}

.blog-no-results .btn {
    min-width: 200px;
}

@media (max-width: 767px) {
    .blog-no-results {
        padding: 60px 20px;
    }
    
    .blog-no-results-icon {
        width: 100px;
        height: 100px;
    }
    
    .blog-no-results-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .blog-no-results-title {
        font-size: 24px;
    }
}
