/* blogpagegeneral.css - Single blog post page styles inspired by index.php theme */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

body {
    font-family: 'Bebas Neue', cursive;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 25%, #161616 75%, #0f0f0f 100%);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #e8e8e8;
    min-height: 100vh;
}

.main-content {
    padding: 0;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Blog Post Section */
.blog-post-section {
    padding: 2rem 0 4rem 0;
    background: 
        linear-gradient(135deg, #121212 0%, #1e1e1e 25%, #161616 75%, #0f0f0f 100%),
        radial-gradient(circle at 70% 30%, rgba(40, 40, 40, 0.3) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.blog-post-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.01) 35px,
            rgba(255, 255, 255, 0.01) 36px
        );
    z-index: 1;
}

.blog-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Blog Post Header */
.blog-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    letter-spacing: 1px;
}

.blog-breadcrumb a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: #4facfe;
}

.breadcrumb-separator {
    color: #666;
}

.breadcrumb-current {
    color: #fff;
    font-weight: 600;
}

.blog-category-tag {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

/* Blog Title Section */
.blog-title-section {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-title-section h1 {
    font-size: 3.5rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInFromTop 1s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(60, 60, 60, 0.5);
    backdrop-filter: blur(10px);
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.author-title {
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 0.5px;
}

.blog-publish-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.publish-date,
.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.date-icon,
.time-icon {
    font-size: 1rem;
}

/* Blog Cover Image */
.blog-cover-image {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideInFromBottom 1s ease-out 0.6s both;
}

.blog-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-cover-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
    transition: opacity 0.3s ease;
}

.blog-cover-image:hover .image-overlay {
    opacity: 0.5;
}

/* Blog Content */
.blog-content-text {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    animation: fadeInUp 1s ease-out 0.9s both;
    font-size: 1.35rem;
    line-height: 1.8;
    color: #eaeaea;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-content-text p {
    font-size: 1.45rem;
    line-height: 1.9;
    color: #f0f0f0;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.blog-content-text h2 {
    font-size: 2.5rem;
    color: #fff;
    margin: 3rem 0 1.5rem 0;
    letter-spacing: 1px;
    position: relative;
}

.blog-content-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
}

.blog-content-text h3 {
    font-size: 2rem;
    color: #f0f0f0;
    margin: 2.5rem 0 1rem 0;
    letter-spacing: 0.8px;
}

.blog-content-text ul {
    margin: 2rem 0;
    padding-left: 2rem;
}

.blog-content-text li {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    position: relative;
}

.blog-content-text li::marker {
    color: #4facfe;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(60, 60, 60, 0.3);
    backdrop-filter: blur(10px);
}

.tags-label {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(79, 172, 254, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.tag:hover {
    background: rgba(79, 172, 254, 0.3);
    color: #fff;
    border-color: #4facfe;
    transform: translateY(-2px);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(60, 60, 60, 0.3);
    backdrop-filter: blur(10px);
}

.share-label {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-family: 'Bebas Neue', cursive;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
    color: #1da1f2;
}

.share-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
    color: #1877f2;
}

.share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
    color: #0077b5;
}

.share-btn.copy:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
    color: #4ade80;
}

/* Related Posts */
.related-posts {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(60, 60, 60, 0.3);
}

.related-posts h3 {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.95), rgba(18, 18, 18, 0.98));
    border: 1px solid rgba(60, 60, 60, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.related-post-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(120, 120, 120, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.related-post-image {
    height: 180px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-content h4 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.related-post-content p {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 0.5px;
}

/* Back to Blog Button */
.back-to-blog {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: transparent;
    border: 1.25px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-family: 'Bebas Neue', cursive;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    transition: left 0.4s ease;
    z-index: -1;
}

.back-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.back-btn:hover::before {
    left: 0;
}

.back-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.back-btn:hover .back-icon {
    transform: translateX(-5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

/* All Posts CTA Button - Styled like index.php slider button */
.all-posts-section {
    padding: 3rem 0;
    text-align: center;
    background: 
        linear-gradient(135deg, #121212 0%, #1e1e1e 25%, #161616 75%, #0f0f0f 100%),
        radial-gradient(circle at 50% 50%, rgba(40, 40, 40, 0.2) 0%, transparent 60%);
}

.all-posts-cta {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: 1.25px solid white;
    background-color: transparent;
    color: white;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.all-posts-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.4s ease;
    z-index: -1;
}

.all-posts-cta:hover {
    color: #333;
    border-color: white;
    text-decoration: none;
}

.all-posts-cta:hover::before {
    left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 0 1rem;
    }
    
    .blog-post-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .blog-title-section h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .blog-publish-info {
        text-align: center;
    }
    
    .blog-cover-image {
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .blog-content-text p {
        font-size: 1.1rem;
    }
    
    .blog-content-text h2 {
        font-size: 2rem;
    }
    
    .blog-content-text h3 {
        font-size: 1.6rem;
    }
    
    .blog-tags,
    .social-share {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts h3 {
        font-size: 2rem;
    }
    
    .back-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-title-section h1 {
        font-size: 2rem;
    }
    
    .blog-meta {
        padding: 1rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .blog-cover-image {
        height: 200px;
    }
    
    .blog-content-text p {
        font-size: 1rem;
    }
    
    .blog-content-text h2 {
        font-size: 1.8rem;
    }
    
    .blog-content-text h3 {
        font-size: 1.4rem;
    }
    
    .related-posts h3 {
        font-size: 1.8rem;
    }
    
    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
    }
}
