/* Base styles */
:root {
    --primary-color: #3b82f6;
    --primary-color-hover: #2563eb;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

/* Container styles */
.container {
    max-width: 1140px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .site-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Header styles */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
    background-color: #fff;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Site content */
.site-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Admin Panel Styles */
.admin-form-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-form-container h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-form-container .form-group {
    margin-bottom: 1.25rem;
}

.admin-form-container label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.admin-form-container .btn {
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

.admin-form-container .list-group {
    margin: 1.5rem 0;
}

.admin-form-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.admin-form-container textarea {
    min-height: 150px;
}

.admin-dashboard {
    margin-bottom: 2rem;
}

.admin-dashboard h2 {
    margin-bottom: 1.5rem;
}

.admin-dashboard .card {
    margin-bottom: 1.5rem;
}

/* Blog listing styles */
.blog-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Image container and thumbnail styles */
.post-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f1f5f9;
}

.post-image-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.post-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio and fills container */
}

/* For screens smaller than 768px */
@media (max-width: 767px) {
    .post-image-container::before {
        padding-top: 75%; /* 4:3 aspect ratio for smaller screens */
    }
}

.post-thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Transition and hover effects */
.transition {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Post content styles */
.blog-post {
    width: 80%;
    margin: 0 auto;
    padding: 0 1rem;
}

.rich-text {
    font-size: 1.125rem;
    line-height: 1.7;
}

.rich-text h2 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-text p {
    margin-bottom: 1.5rem;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.rich-text ul, .rich-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* Footer styles */
.site-footer {
    background-color: var(--light-bg);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Pagination styles */
.pagination-links {
    margin: 2rem 0;
}

.pagination-links strong {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin-right: 0.25rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.25rem;
}

.pagination-links a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin-right: 0.25rem;
    background: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.25rem;
}

.pagination-links a:hover {
    background: var(--border-color);
}

/* Form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Utility classes */
.text-muted {
    color: var(--text-muted) !important;
}

/* Alert styles */
.alert-dismissible .btn-close {
    font-size: 0.75rem;
}

/* Accessibility - improved contrast */
.text-muted {
    color: #5a6374 !important; /* Darker than default for better contrast */
}

.badge.bg-primary {
    background-color: #1e40af !important; /* Darker blue for better contrast */
}

/* Form error styles */
.text-danger {
    color: #dc3545;
} 