/* 
 * jevciSoft Blogger - Main Stylesheet
 * Author: jevciSoft
 * Version: 1.0.0
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #0a58ca;
}

/* Header */
.site-header {
    margin-bottom: 0.25rem;
}

.navbar-brand img {
    max-height: 40px;
}

/* Main Content */
.site-content {
    min-height: 70vh;
    padding-top: 0.25rem;
}

/* Post Card */
.post-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

.post-card .card-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.post-card .card-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.875rem;
}

/* Blog Post */
.blog-post h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-post .post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.blog-post .post-content {
    margin: 2rem 0;
    line-height: 1.8;
}

.blog-post .post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.blog-post .post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-post .post-content p {
    margin-bottom: 1.5rem;
}

.blog-post .post-content blockquote {
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
    margin: 1.5rem 0;
}

/* Comments */
.comments-section {
    margin-top: 3rem;
}

.comment {
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Sidebar */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.tags-cloud .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.tags-cloud .badge:hover {
    background-color: var(--dark-color);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 0.25rem;
    border-radius: 0.25rem;
}

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

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 3rem 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: white;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
.animate__animated {
    animation-duration: 0.8s;
}

/* Responsive */
@media (max-width: 767.98px) {
    .blog-post h1 {
        font-size: 2rem;
    }
    
    .post-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .blog-post h1 {
        font-size: 1.75rem;
    }
    
    .post-card .card-img-top {
        height: 160px;
    }
}

/* Custom Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a53be;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 5rem 0;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 700;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    animation-name: fadeIn;
}
