/* Custom Bootstrap Theme Styles */

/* Custom colors */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Body and typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation enhancements */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Card enhancements */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0,0,0,0.125);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Post content styles */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--secondary-color);
}

/* Widget styles */
.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer styles */
.site-footer {
    margin-top: auto;
}

.footer-widgets .widget {
    margin-bottom: 1rem;
}

/* Pagination styles */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Comment styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
}

.comment-content {
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .display-1 {
        font-size: 3rem;
    }
}

/* Custom utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
}

/* Loading animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print styles */
@media print {
    .navbar,
    .sidebar,
    .site-footer {
        display: none;
    }
    
    .container {
        max-width: none;
    }
}
/* Search Section Styles */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.search-section .search-form {
    margin-bottom: 0;
}

.search-section .form-control-lg {
    border-radius: 0.5rem 0 0 0.5rem;
    border: 2px solid #dee2e6;
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-section .form-control-lg:focus {
    border-color: var(--bs-primary);
    box-shadow: none;
}

.search-section .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    border: 2px solid var(--bs-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.search-section .input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.search-section .input-group:focus-within {
    box-shadow: 0 2px 15px rgba(var(--bs-primary-rgb), 0.2);
}

/* Search Section Typography */

.search-section .text-muted {
    font-size: 0.9rem;
}

/* Mobile Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

.search-overlay.show {
    display: block;
}

.search-form-mobile .input-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-section {
        padding: 1.5rem 0;
    }
    
    .search-section .col-md-8 {
        padding: 0 15px;
    }
    
    .search-section .form-control-lg {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .search-section h2 {
        font-size: 1.1rem;
    }
    
    .search-section .text-muted {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .search-section .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-section .form-control-lg {
        border-radius: 0.5rem;
        border: 2px solid #dee2e6;
        text-align: center;
    }
    
    .search-section .btn {
        border-radius: 0.5rem;
        width: 100%;
    }
}

/* Animation for search section */
.search-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide search section on search results page */
body.search .search-section {
    display: none;
}

/* Optional: Hide search section on specific pages */
body.home .search-section,
body.front-page .search-section {
    /* Keep it visible on homepage */
}

/* Adjust page header when H1 is removed */
.page-header .row.align-items-center {
    min-height: auto;
}

.page-header .col-md-6:first-child {
    /* Optional: Hide the empty column on mobile */
}

@media (max-width: 768px) {
    .page-header .col-md-6:first-child {
        display: none;
    }
    
    .page-header .col-md-6:last-child {
        text-align: center;
    }
}