/* Expanded Blog Post Styles */
.expanded-blog-post {
    width: 100%;
    margin: 2rem 0;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.expanded-post-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.back-to-list {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    transition: all 0.3s ease;
}

.back-to-list:hover {
    background: #f8f9fa;
    transform: translateX(-3px);
}

.back-to-list.bottom {
    position: static;
    margin-top: 2rem;
    background: #f8f9fa;
}

.expanded-post-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.expanded-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expanded-post-image:hover img {
    transform: scale(1.03);
}

.expanded-post-details {
    padding: 2.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.post-category {
    background: rgba(212, 175, 55, 0.1); /* Light gold background */
    color: #d4af37; /* Gold color to match headings */
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-title {
    font-size: 2.2rem;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    line-height: 1.3;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

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

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

/* Responsive styles */
@media (max-width: 992px) {
    .expanded-post-image {
        height: 350px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 989.98px) {
    .expanded-post-details {
        padding: 1.5rem;
    }
    
    .expanded-post-image {
        height: 300px;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .expanded-post-image {
        height: 250px;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
    
    .back-to-list {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
}

.error-message i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.error-message p {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0b5ed7;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-primary {
    background: #0d6efd;
}

.btn-primary:hover {
    background: #0b5ed7;
}

.btn-secondary {
    background: #6c757d;
    margin-left: 8px;
}

.btn-secondary:hover {
    background: #5c636a;
}
