/* Blog Post Specific Styles */

.blog-post {
    margin-top: 70px;
}

/* Post Header */
.post-header {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1539037116277-4db20889f2d4?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
}

.post-header-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.post-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.post-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.post-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.post-date {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Post Content Layout */
.post-content-wrapper {
    padding: 4rem 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
}

.share-section,
.toc {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.share-section h4,
.toc h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    color: white;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.pinterest { background: #e60023; }
.share-btn.linkedin { background: #0077b5; }

.share-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.toc a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Main Content */
.post-main-content {
    max-width: 800px;
}

.post-image-featured,
.post-featured-image,
.related-post {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 100% !important;
    width: 100% !important;
}

.post-image-featured img,
.post-featured-image img,
.related-post img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-dark);
}

.post-text h3 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.post-text p {
    margin-bottom: 1.5rem;
}

/* Force all images in post content to be responsive */
.post-text * img,
.post-content * img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 2rem auto !important;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    object-fit: contain !important;
}

/* Override all wrapper elements */
.post-text *,
.post-content * {
    max-width: 100% !important;
}

.post-text ul,
.post-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-text li {
    margin-bottom: 0.75rem;
}

.post-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2rem 2rem 4rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

blockquote i.fa-quote-left {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

blockquote p {
    font-style: italic;
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-dark);
}

.info-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    margin: 2.5rem 0;
}

.info-box i {
    font-size: 2rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.info-box h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-box p {
    margin: 0;
    color: var(--text-light);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.tip-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.tip-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.tip-card p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
}

.cta-box {
    margin: 3rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 16px;
    text-align: center;
}

.cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-box .btn {
    background: white;
    color: var(--primary-color);
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-light);
}

.tag-label {
    font-weight: 600;
    color: var(--text-dark);
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    margin: 3rem 0;
}

.author-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-box-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.author-box-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 0.75rem;
}

.author-social a {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--bg-light);
}

.related-posts h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.related-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.related-date {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-sidebar {
        grid-template-columns: 1fr;
    }
    
    .tips-grid,
    .image-gallery,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
}