/* Custom Blog Navigation Plugin Styles */
.cbn-navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    /* margin: 2rem 0; */
    /* padding: 1rem; */
    /* background: #f8f9fa; */
    flex-wrap: wrap;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */

        padding: 30px 0;
    border-top: 1px solid #A2A2A2;
    border-bottom: 1px solid #A2A2A2;
    margin: 48px 0;
}

.cbn-nav-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* padding: 1rem; */
    /* background: white; */
    /* border: 1px solid #e0e0e0; */
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    position: relative;
    /* overflow: hidden; */
}



.cbn-nav-button.cbn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    /* background: #f5f5f5; */
}

.cbn-nav-button.cbn-prev {
    justify-content: flex-start;
}

.cbn-nav-button.cbn-next {
    /* justify-content: flex-end; */
    flex-direction: row-reverse;
}

.cbn-arrow-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #A74241;
    color: white;
    border-radius: 100%;
    padding:10px;
    transition: transform 0.3s ease;
}

.cbn-nav-button:hover .cbn-arrow-icon {
    transform: translateX(3px);
}

.cbn-nav-button.cbn-prev:hover .cbn-arrow-icon {
    transform: translateX(-3px);
}

.cbn-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    /* flex: 1; */
}

.cbn-nav-label {
    font-size: 12px;
    color: #454545;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.cbn-nav-title {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;

    /* display: none; */
}

.cbn-back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #A74241;
    border-radius: 48px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* box-shadow: 0 2px 4px rgba(167, 66, 65, 0.3); */

    &:is(:hover, :focus) {
        
        color: white !important;
        text-decoration: none;
    }
}



.cbn-back-button .cbn-arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.cbn-back-button:hover .cbn-arrow-icon {
    transform: translateX(2px) translateY(-2px);
}


.cbn-nav-button:hover::before {
    left: 100%;
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    .cbn-navigation-container {
        border: 2px solid;
    }
    
    .cbn-nav-button {
        border: 2px solid;
    }
    
    .cbn-back-button {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cbn-nav-button,
    .cbn-back-button,
    .cbn-arrow-icon {
        transition: none;
    }
    
    .cbn-nav-button:hover {
        transform: none;
    }
    
    .cbn-nav-button::before {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cbn-navigation-container {
        align-items: start;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 20px 0px;
        grid-template-areas:
        "nav-prev nav-next"
        "button button";
     }
    
    
    .cbn-nav-button {
        width: 100%;
        max-width: none;
        min-width: auto;
        flex-direction: column;
    }
    
    .cbn-nav-button.cbn-next {
        grid-area: nav-next;
        flex-direction: column;
    }

    .cbn-nav-button.cbn-prev {
        grid-area:nav-prev;
    }
    
    .cbn-back-button {
        grid-area:button;
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .cbn-nav-content {
        text-align: center;
    }

    .cbn-nav-title {
        display: none;
    }
}

@media (max-width: 480px) {
    .cbn-navigation-container {
        margin: 1rem 0;
        padding: 0.75rem 0.25rem;
    }
    
    .cbn-nav-button {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .cbn-nav-title {
        font-size: 0.9rem;
    }
    
    .cbn-nav-label {
        font-size: 0.8rem;
    }
    
    .cbn-back-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Widget specific styles */
.widget .cbn-navigation-container {
    margin: 0 0 1rem 0;
    padding: 0.75rem;
}

.widget .cbn-nav-button {
    min-width: auto;
    padding: 0.5rem;
}

.widget .cbn-back-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Print styles */
@media print {
    .cbn-navigation-container {
        display: none;
    }
}