/* FIX #22: Styles για το modern_post_navigation (μεταφέρθηκαν από inline <style> στο functions.php) */
.modern-post-navigation {
    margin: 40px 0;
    padding: 0;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* FIX #7: σταθερές 2 στήλες */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* FIX #7: Προηγούμενο πάντα αριστερά, Επόμενο πάντα δεξιά */
    .nav-prev { grid-column: 1; }
    .nav-next { grid-column: 2; }

    .nav-next .nav-content {
        align-items: flex-end;
        text-align: right;
    }

.nav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 140px;
}

.nav-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(12, 12, 12, 0.15);
    transform: translateY(-2px);
}

.nav-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: #6b7280;
}

.nav-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.nav-prev:hover .nav-arrow {
    transform: translateX(-4px);
}

.nav-next:hover .nav-arrow {
    transform: translateX(4px);
}

.nav-next .nav-label {
    flex-direction: row-reverse;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 768px) {
    .modern-post-navigation {
        margin: 50px 0;
    }

    .nav-container {
        gap: 16px;
    }

    .nav-card {
        min-height: 130px;
    }

    .nav-content {
        padding: 20px;
    }

    .nav-title {
        font-size: 17px;
        -webkit-line-clamp: 2;
    }

    .nav-label {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .nav-arrow {
        width: 16px;
        height: 16px;
    }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
    .modern-post-navigation {
        margin: 40px 0;
        padding: 0;
    }

    .nav-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-card {
        min-height: 120px;
    }

    .nav-content {
        padding: 18px;
    }

    .nav-title {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }

    .nav-label {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .nav-arrow {
        width: 16px;
        height: 16px;
    }

        .nav-prev,
        .nav-next {
            grid-column: auto;
        }
}

/* 4K and large screens */
@media (min-width: 2560px) {
    .modern-post-navigation {
        margin: 80px 0;
    }

    .nav-container {
        max-width: 100vw;
        gap: 18rem;
        grid-template-columns: 1fr 1fr;
    }

    .nav-card {
        min-height: 180px;
        border-radius: 16px;
    }

    .nav-content {
        padding: 32px;
    }

    .nav-title {
        font-size: 22px;
        -webkit-line-clamp: 3;
    }

    .nav-label {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .nav-arrow {
        width: 20px;
        height: 20px;
    }

}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .nav-card {
        background: #1f2937;
        border-color: #374151;
    }

    .nav-card:hover {
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    }

    .nav-title {
        color: #f9fafb;
    }

    .nav-label {
        color: #9ca3af;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .nav-card,
    .nav-arrow {
        transition: none;
    }

    .nav-card:hover {
        transform: none;
    }

    .nav-prev:hover .nav-arrow,
    .nav-next:hover .nav-arrow {
        transform: none;
    }
}
