/**
 * Public styles for MX Post Split
 */

/* Pagination styling */
.mx-post-split-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.mx-post-split-pagination li {
    display: inline-block;
    margin: 0 5px;
}

.mx-post-split-pagination a,
.mx-post-split-pagination span.current {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mx-post-split-pagination a {
    background-color: #f5f5f5;
    color: #4e73df; /* Will be overridden by inline style */
}

.mx-post-split-pagination a:hover {
    background-color: #e9e9e9;
}

.mx-post-split-pagination span.current {
    background-color: #4e73df; /* Will be overridden by inline style */
    color: #fff;
}

/* Navigation buttons styling */
.mx-post-split-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.mx-post-split-nav-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mx-post-split-nav-button:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    opacity: 0.9;
}

.mx-post-split-nav-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
}

.mx-post-split-nav-button:hover:before {
    left: 100%;
}

.mx-post-split-nav-button.prev:before {
    left: 100%;
}

.mx-post-split-nav-button.prev:hover:before {
    left: -100%;
}

.mx-post-split-nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ads containers */
.mx-post-split-before-pagination-ads,
.mx-post-split-after-pagination-ads {
    margin: 20px 0;
    text-align: center;
}

/* Popup styling */
.mx-post-split-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.mx-post-split-popup-content {
    position: relative;
    background-color: #fff;
    width: 80%;
    max-width: 600px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.mx-post-split-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.mx-post-split-popup-close:hover {
    color: #333;
}

.mx-post-split-popup-body {
    margin-top: 20px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .mx-post-split-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .mx-post-split-nav-button {
        text-align: center;
    }
    
    .mx-post-split-popup-content {
        width: 95%;
        padding: 15px;
    }
} 