/**
 * Chief Editor Block - Frontend Styles
 * Using specific selectors to avoid conflicts with theme styles
 */

.wp-block-zoxpress-chief-editor.zox-chief-editor {
    padding: 40px 0;
    background: transparent;
    clear: both;
}

.wp-block-zoxpress-chief-editor .zox-body-width {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Editor Info Section */
.wp-block-zoxpress-chief-editor .zox-editor-info-section {
    margin-bottom: 40px;
}

.wp-block-zoxpress-chief-editor .zox-editor-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding: 0;
    color: #1a1a1a !important;
}

.wp-block-zoxpress-chief-editor .zox-editor-info-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.wp-block-zoxpress-chief-editor .zox-editor-photo {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 250px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.wp-block-zoxpress-chief-editor .zox-editor-photo img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.wp-block-zoxpress-chief-editor .zox-editor-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.wp-block-zoxpress-chief-editor .zox-editor-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #1a1a1a !important;
}

.wp-block-zoxpress-chief-editor .zox-editor-bio {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.wp-block-zoxpress-chief-editor .zox-editor-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
}

.wp-block-zoxpress-chief-editor .zox-editor-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.wp-block-zoxpress-chief-editor .zox-editor-link:hover {
    opacity: 0.7;
}

/* Editor Posts Section */
.wp-block-zoxpress-chief-editor .zox-editor-posts-section {
    margin-top: 40px;
}

.wp-block-zoxpress-chief-editor .zox-editor-posts-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 25px;
}

.wp-block-zoxpress-chief-editor .zox-editor-posts-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    color: #1a1a1a !important;
}

/* Navigation Buttons */
.wp-block-zoxpress-chief-editor .zox-editor-posts-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.wp-block-zoxpress-chief-editor .zox-editor-nav-prev,
.wp-block-zoxpress-chief-editor .zox-editor-nav-next {
    width: 40px;
    height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.wp-block-zoxpress-chief-editor .zox-editor-nav-prev:hover,
.wp-block-zoxpress-chief-editor .zox-editor-nav-next:hover {
    background: #1a1a1a;
    color: #ffffff;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.wp-block-zoxpress-chief-editor .zox-editor-nav-prev:disabled,
.wp-block-zoxpress-chief-editor .zox-editor-nav-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Posts Carousel */
.wp-block-zoxpress-chief-editor .zox-editor-posts-carousel {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wp-block-zoxpress-chief-editor .zox-editor-posts-carousel::-webkit-scrollbar {
    display: none;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-item {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: calc(25% - 15px);
    margin: 0;
    padding: 0;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-item {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-item:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Post Image */
.wp-block-zoxpress-chief-editor .zox-editor-post-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-image-link:hover img {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* Category Badge */
.wp-block-zoxpress-chief-editor .zox-editor-post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    z-index: 2;
    color: #999999 !important;
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-category:hover {
    opacity: 0.8;
}

/* Post Content */
.wp-block-zoxpress-chief-editor .zox-editor-post-content {
    padding: 18px;
    min-height: 120px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* Post Meta */
.wp-block-zoxpress-chief-editor .zox-editor-post-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #999999;
    margin-bottom: 10px;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-author,
.wp-block-zoxpress-chief-editor .zox-editor-post-date {
    display: inline-block;
    color: #999999;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-author {
    font-weight: 600;
    text-decoration: none;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-author:hover {
    opacity: 0.7;
}

/* Post Title */
.wp-block-zoxpress-chief-editor .zox-editor-post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a !important;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-title a {
    color: inherit;
    text-decoration: none;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.wp-block-zoxpress-chief-editor .zox-editor-post-title a:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .wp-block-zoxpress-chief-editor .zox-body-width {
        padding: 0 20px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-post-item {
        width: calc(33.333% - 14px);
    }
}

@media screen and (max-width: 1024px) {
    .wp-block-zoxpress-chief-editor .zox-editor-info-container {
        gap: 25px;
        padding: 25px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-photo {
        width: 200px;
        height: 240px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-post-item {
        width: calc(50% - 10px);
    }
}

@media screen and (max-width: 768px) {
    .wp-block-zoxpress-chief-editor .zox-body-width {
        padding: 0 15px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-info-container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-photo {
        width: 100%;
        max-width: 250px;
        height: 300px;
        margin: 0 auto;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-posts-title {
        font-size: 16px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-post-item {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .wp-block-zoxpress-chief-editor.zox-chief-editor {
        padding: 25px 0;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-section-title {
        font-size: 18px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-name {
        font-size: 16px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-bio {
        font-size: 14px;
    }
    
    .wp-block-zoxpress-chief-editor .zox-editor-nav-prev,
    .wp-block-zoxpress-chief-editor .zox-editor-nav-next {
        width: 36px;
        height: 36px;
    }
}

