/* Modern CSS Enhancements */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Modern button styles */
.btn, button {
    transition: all 0.2s ease;
    border-radius: 8px;
}

/* Card-like posts */
.posts li {
    background: #ffffff;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.posts li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Fix post title and description spacing */
.posts li {
    display: flex;
    flex-direction: column;
}

.posts li .post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.posts li a {
    color: #1a202c;
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    line-height: 1.3;
    flex: 1;
}

.posts li a:hover {
    color: #3182ce;
}

.posts li .post-date {
    color: #718096;
    font-size: 0.875rem;
    font-style: italic;
    white-space: nowrap;
    flex-shrink: 0;
}

.posts li div {
    color: #4a5568;
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* Enhanced navigation */
div.col-sm-2 a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

div.col-sm-2 a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Modern search input */
#search-input {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Enhanced pagination */
.pagination {
    margin: 3rem 0 2rem 0;
    justify-content: center;
}

.page-item {
    margin: 0 3px;
}

.page-link {
    border-radius: 50px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    background: #ffffff;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    min-width: 44px;
    text-align: center;
}

.page-link:hover {
    transform: translateY(-1px);
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-item.disabled .page-link {
    color: #a0aec0;
    background: #f7fafc;
    border-color: #e2e8f0;
}

/* Force all pagination buttons to be fully rounded */
.page-item .page-link {
    border-radius: 50px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    text-align: center !important;
}

/* Specific override for text-based buttons like First/Last */
.page-item .page-link[href*="page"],
.page-item .page-link[href="/"] {
    width: auto !important;
    padding: 0.75rem 1rem !important;
}

/* Force light mode always */
body {
    background-color: #f8fafc !important;
    color: #2d3748 !important;
}

div.right {
    background: #ffffff !important;
    border: none !important;
}

.posts li {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}


/* Print styles */
@media print {
    div.col-sm-2 {
        display: none;
    }
    
    div.col-sm-10 {
        width: 100%;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
}