/* Blog Styles */
html {
    height: 100%;
}

body {
    background-color: #121212;
    color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main container styling */
.container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Clean, Modern Navbar Styles */
.navbar {
    transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(18, 18, 18, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  
  .nav-item {
    margin: 0 2px;
  }
  
  .nav-link {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 4px 6px !important;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
  
  .nav-link.active {
    background: linear-gradient(to right, rgba(98, 0, 234, 0.2), rgba(98, 0, 234, 0));
    border-left: 3px solid rgba(98, 0, 234, 1);
  }

/* Sticky footer styling */
.footer {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    margin-top: auto;
}

.footer .mb-3 {
    margin-bottom: 0.75rem !important;
}

.footer .social-icon {
    font-size: 1.25rem;
}

/* Main heading */
.container h1 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Blog lead text */
.container .lead {
    color: #b3b3b3;
    margin-bottom: 2rem;
}

/* No posts alert */
.container .alert {
    background-color: rgba(30, 40, 50, 0.7);
    border: 1px solid rgba(50, 60, 70, 0.5);
    color: #b3b3b3;
    padding: 1rem;
    border-radius: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 1.5rem auto;
}

/* Blog cards */
.blog-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    background-color: rgba(30, 40, 50, 0.7);
    border: 1px solid rgba(50, 60, 70, 0.5);
    color: #fff;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    color: #fff;
    font-weight: 600;
}

.blog-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(20, 30, 40, 0.7);
    color: #666;
    font-size: 3rem;
}

.blog-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b3b3b3;
    margin-bottom: 1.5rem;
}

.blog-date {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #999;
}

/* Blog post page */
.blog-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    margin-top: 4rem;
}

.blog-featured-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-featured-image img:hover {
    transform: scale(1.02);
}

/* Modern typography for blog content */
.blog-content {
    line-height: 1.8;
    color: #e6e6e6;
    font-size: 1.15rem;
    letter-spacing: 0.01rem;
}

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

.blog-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
}

.blog-content a {
    color: #6200ea;
    text-decoration: none;
    border-bottom: 1px dotted #6200ea;
    transition: all 0.2s ease;
}

.blog-content a:hover {
    color: #b388ff;
    border-bottom: 1px solid #b388ff;
}

/* Blog header styles */
.blog-header {
    margin-bottom: 3rem;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: #b3b3b3;
    font-size: 1.1rem;
}

.meta-date, .meta-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stylish horizontal rule */
.style-hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(98, 0, 234, 0), rgba(98, 0, 234, 0.5), rgba(98, 0, 234, 0));
    margin: 3rem 0;
}

/* Modern Comments section */
.comments-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(30, 40, 50, 0.4);
    border-radius: 1rem;
}

.comments-title {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.comments-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #6200ea;
    border-radius: 3px;
}

.comment-card {
    background-color: rgba(40, 50, 60, 0.5);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.comment-header {
    display: flex;
    margin-bottom: 1rem;
}

.comment-avatar {
    margin-right: 1rem;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    background-color: #6200ea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.comment-date {
    color: #b3b3b3;
    font-size: 0.85rem;
    margin: 0;
}

.comment-body {
    color: #e6e6e6;
    font-size: 1rem;
    line-height: 1.6;
}

.no-comments-alert {
    background-color: rgba(30, 40, 50, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    color: #b3b3b3;
}

/* Comment form styling */
.comment-form-container {
    background-color: rgba(30, 40, 50, 0.4);
    border-radius: 1rem;
    padding: 2rem;
}

.form-title {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #6200ea;
    border-radius: 3px;
}

.comment-form-container .form-control {
    background-color: rgba(20, 25, 30, 0.7);
    border: 1px solid rgba(60, 70, 80, 0.5);
    color: #fff;
}

.comment-form-container .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(98, 0, 234, 0.25);
    border-color: #6200ea;
}

.comment-form-container .form-floating > label {
    color: #b3b3b3;
}

.comment-form-container .btn-primary {
    background-color: #6200ea;
    border-color: #6200ea;
    font-weight: 500;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.comment-form-container .btn-primary:hover {
    background-color: #7c26ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(98, 0, 234, 0.3);
}

/* Social sharing buttons */
.social-sharing {
    margin: 3rem 0;
}

.sharing-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

.social-btn.email {
    background-color: #6200ea;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-content {
        font-size: 1.1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .comment-form-container, .comments-section {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        margin-bottom: 2rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
}

/* Comment form */
.comments-section .card {
    background-color: rgba(30, 40, 50, 0.7);
    border: 1px solid rgba(50, 60, 70, 0.5);
}

.comments-section .card-title {
    color: #fff;
}

.comments-section .form-control {
    background-color: rgba(20, 25, 30, 0.7);
    border: 1px solid rgba(60, 70, 80, 0.5);
    color: #fff;
}

.comments-section .form-control:focus {
    background-color: rgba(25, 30, 35, 0.7);
    color: #fff;
    border-color: rgba(100, 110, 120, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(100, 110, 120, 0.25);
}

.comments-section .form-control::placeholder {
    color: #999;
}

/* Better button styling */
.btn-primary {
    background-color: #6200ea;
    border-color: #6200ea;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: #7c4dff;
    border-color: #7c4dff;
}


.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content blockquote {
    border-left: 3px solid #ccc;
    padding-left: 1rem;
    margin-left: 0;
    color: #666;
    font-style: italic;
}

.blog-content pre,
.blog-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.blog-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.comments-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.comment-card {
    transition: transform 0.2s;
}

.comment-card:hover {
    transform: translateY(-3px);
}

/* Social sharing section */
.social-sharing {
    padding: 1.5rem;
    background-color: rgba(30, 40, 50, 0.5);
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.social-sharing h5 {
    color: #e6e6e6;
    font-weight: 500;
}

.social-sharing .btn {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.social-sharing .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-sharing .fab,
.social-sharing .fas {
    font-size: 1rem;
}
