/**
 * WP Custom Nav Plugin Styles
 * Version: 1.0.0
 */

/* Main navigation container */
.wpcn-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    gap: 20px;
}

/* Navigation items */
.wpcn-nav-item {
    flex: 1;
    text-align: center;
    min-width: 0; /* Allow text truncation */
}

/* Previous item alignment */
.wpcn-nav-prev {
    text-align: left;
}

/* Next item alignment */
.wpcn-nav-next {
    text-align: right;
}

/* Navigation links */
.wpcn-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    height: 100%;
    justify-content: center;
}

.wpcn-nav-prev a {
    align-items: flex-start;
}

.wpcn-nav-next a {
    align-items: flex-end;
}

/* Hover state */
.wpcn-nav-item a:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Arrow styles */
.wpcn-arrow {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
    font-weight: bold;
}

/* Label styles (Previous/Next text) */
.wpcn-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Title styles */
.wpcn-title {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

/* Disabled state */
.wpcn-disabled {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    color: #999;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    height: 100%;
    justify-content: center;
    opacity: 0.6;
}

.wpcn-nav-prev .wpcn-disabled {
    align-items: flex-start;
}

.wpcn-nav-next .wpcn-disabled {
    align-items: flex-end;
}

.wpcn-disabled .wpcn-arrow {
    color: #ccc;
}

.wpcn-disabled .wpcn-title {
    font-style: italic;
    color: #999;
}

/* Responsive design */
@media (max-width: 768px) {
    .wpcn-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .wpcn-nav-item {
        width: 100%;
    }
    
    .wpcn-nav-item a,
    .wpcn-disabled {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .wpcn-nav-prev a,
    .wpcn-nav-prev .wpcn-disabled {
        flex-direction: row;
    }
    
    .wpcn-nav-next a,
    .wpcn-nav-next .wpcn-disabled {
        flex-direction: row-reverse;
    }
    
    .wpcn-arrow {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .wpcn-nav-next .wpcn-arrow {
        margin-right: 0;
        margin-left: 10px;
    }
    
    .wpcn-title {
        flex: 1;
    }
}

/* Integration with common themes */
.entry-content .wpcn-navigation,
.post-content .wpcn-navigation,
.page-content .wpcn-navigation {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Elementor compatibility */
.elementor-widget-container .wpcn-navigation {
    width: 100%;
}

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