/* Blog Styles */

/* Post Content Styling */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--bs-gray-600);
}

.post-content pre {
    background-color: var(--bs-gray-100);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

/* Dark mode adjustments */
.dark-layout .post-content blockquote {
    color: var(--bs-gray-400);
}

.dark-layout .post-content pre {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Post Card Hover Effects */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Favorite Button Styles */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.favorite-btn.is-favorited {
    color: #ffc107;
}

.favorite-btn.is-favorited:hover {
    color: #ff9800;
}

.favorite-btn i {
    font-size: 20px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.favorite-btn.pulse {
    animation: pulse 0.3s ease;
}

/* Dark mode adjustments for favorite button */
.dark-layout .favorite-btn {
    background: rgba(0, 0, 0, 0.8);
}

.dark-layout .favorite-btn:hover {
    background: rgba(0, 0, 0, 1);
}

/* Gallery Styles */
.post-gallery img {
    cursor: pointer;
    transition: transform 0.2s;
}

.post-gallery img:hover {
    transform: scale(1.05);
}

/* Share Buttons */
.share-buttons .btn {
    min-width: 100px;
}

/* Sidebar Widgets */
.sidebar .card {
    position: sticky;
    top: 20px;
}

/* Tag Cloud */
.badge {
    font-weight: normal;
    text-decoration: none;
}

.badge:hover {
    filter: brightness(1.1);
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.25rem;
}

/* Reading Progress Bar (optional future feature) */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    z-index: 1050;
    transition: width 0.2s ease;
}

/* Print Styles */
@media print {
    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .post-content h1 {
        font-size: 24pt;
    }

    .post-content h2 {
        font-size: 18pt;
    }

    .post-content h3 {
        font-size: 14pt;
    }

    .post-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .card {
        border: none;
        box-shadow: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-content {
        font-size: 1rem;
    }

    .sidebar {
        margin-top: 2rem;
    }

    .share-buttons .btn {
        min-width: auto;
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}