/* ============================================================
   BLOG & BLOG POST STYLES
   Used by: blog.php, blog-post.php, and other blog pages
   ============================================================ */

/* Blog Post Typography */
h1, h2, h3 {
    color: #111827;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2596be;
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #6B7280;
}

.blog-meta-item i {
    color: #2596be;
}

/* Blog Post Content */
.blog-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1.05rem;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2596be;
}

.blog-content p {
    margin-bottom: 1.25rem;
    color: #4b5563;
}

.blog-content ul, .blog-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.6;
}

.blog-content a {
    color: #2596be;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-content a:hover {
    color: #f9a5b7;
}

.blog-content blockquote {
    border-left: 4px solid #2596be;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f0f9ff;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}

.blog-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #e53e3e;
}

.blog-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.blog-content strong {
    color: #111827;
}

/* Blog Post Image */
.blog-post-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Blog Cards in Listing */
.blog-card {
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 150, 190, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #111827;
}

.blog-card-excerpt {
    color: #6B7280;
    margin-bottom: 1rem;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: #9CA3AF;
    display: flex;
    justify-content: space-between;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #2596be;
    color: white;
    border-color: #2596be;
}

.pagination .current {
    background-color: #2596be;
    color: white;
    border-color: #2596be;
}

/* Custom Scrollbar for Blog Pages */
* {
    scrollbar-width: thin;
    scrollbar-color: #2596be #F3F4F6;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 10px;
    margin: 5px 0;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2596be 0%, #f9a5b7 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    box-shadow: inset 0 0 6px rgba(37, 150, 190, 0.3);
    transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a6fa0 0%, #f07896 100%);
    background-clip: content-box;
    box-shadow: inset 0 0 10px rgba(37, 150, 190, 0.5);
}

*::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #0d3d5c 0%, #e6425f 100%);
    background-clip: content-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: scroll;
}

body {
    scroll-behavior: smooth;
    min-height: 100vh;
    overflow-y: auto;
}

main {
    min-height: 100vh;
}

::-webkit-scrollbar-corner {
    background: #F3F4F6;
}

/* Textarea scrollbar */
textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2596be 0%, #f9a5b7 100%);
    border-radius: 5px;
    box-shadow: inset 0 0 4px rgba(37, 150, 190, 0.3);
}

textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a6fa0 0%, #f07896 100%);
    box-shadow: inset 0 0 6px rgba(37, 150, 190, 0.5);
}
