/*
 * Custom styles for My Awesome Blog (Public Facing)
 * Located at: public/assets/css/style.css
 */

/* --- General Body & Typography --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light gray background to distinguish from white cards */
}

h1, h2, h3, h4, h5, h6 {
    color: #212529; /* Darker headings */
    font-weight: 700; /* Bolder headings */
}

a {
    color: #007bff; /* Bootstrap primary blue */
    text-decoration: none; /* Remove underline by default */
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline; /* Add underline on hover for clarity */
}

/* --- Navigation Bar Adjustments (Optional) --- */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

/* --- Card Styles (Posts, Sidebar Widgets) --- */
.card {
    border-radius: .5rem; /* Slightly more rounded corners */
    border: none; /* Remove default Bootstrap border */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
}

.card-title {
    font-size: 1.75rem; /* Larger title for posts */
    margin-bottom: 0.75rem;
}

.card-text {
    color: #555;
}

.card-img-top {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    max-height: 250px; /* Limit height of featured image */
    object-fit: cover; /* Ensure images cover the area without distortion */
}

/* --- Post Specific Styles (for post.php) --- */
article h1.fw-bolder {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

article .text-muted.fst-italic {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

article .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.8em;
    border-radius: 0.35rem;
}

article figure img {
    border-radius: 0.5rem;
    max-height: 400px;
    object-fit: cover;
}

article .mb-5 p {
    font-size: 1.1rem; /* Slightly larger body text for readability */
    line-height: 1.8;
}

/* --- Sidebar Specific Styles --- */
.sidebar .card-header {
    background-color: #e9ecef; /* Lighter header for sidebar cards */
    color: #343a40; /* Darker text */
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item.category-item {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
}

.list-group-item.category-item:hover {
    background-color: #f0f0f0;
}

/* --- Utility Classes --- */
.mt-5 { /* Example: ensuring enough space before footer */
    margin-top: 3rem !important;
}

/* --- Responsive Adjustments (Optional) --- */
@media (max-width: 767.98px) {
    .card-title {
        font-size: 1.5rem;
    }
    article h1.fw-bolder {
        font-size: 2rem;
    }
}