/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 184, 28, 0.2);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(255, 184, 28, 0.15) 0%, rgba(18, 18, 18, 0) 70%),
        linear-gradient(45deg, rgba(255, 184, 28, 0.05) 0%, rgba(18, 18, 18, 0) 70%);
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(255, 184, 28, 0.3);
}

.blog-hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--light-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta i {
    color: var(--primary-color);
}

/* Blog Content Section */
.blog-content {
    padding: 80px 0;
    background-color: var(--dark-color);
    background-image: linear-gradient(to bottom, var(--darker-color), var(--dark-color));
}

.blog-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

.blog-main {
    background-color: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.blog-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    pointer-events: none;
}

.featured-image {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

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

article {
    font-size: 1.05rem;
    line-height: 1.8;
}

article h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--light-color);
    margin: 40px 0 20px;
    border-bottom: 1px solid rgba(255, 184, 28, 0.2);
    padding-bottom: 10px;
    position: relative;
    word-wrap: break-word;
}

article h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

article h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-weight: 600;
    word-wrap: break-word;
}

article p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-color);
}

article ul, article ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

article li {
    margin-bottom: 10px;
    color: var(--text-color);
}

article a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

article a:hover {
    color: var(--primary-color-bright);
}

article blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    background-color: rgba(255, 184, 28, 0.05);
    font-style: italic;
}

.cta-container {
    margin: 50px 0;
    text-align: center;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 184, 28, 0.2);
}

.cta-container .primary-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Blog Author */
.blog-author {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 50px 0;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 184, 28, 0.2);
}

.author-info h3 {
    margin: 0 0 8px;
    color: var(--light-color);
    font-size: 1.3rem;
}

.author-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Blog Share */
.blog-share {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
}

.blog-share h3 {
    margin-bottom: 15px;
    color: var(--light-color);
    font-size: 1.2rem;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 50%;
    color: var(--light-color);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 184, 28, 0.3);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background-color: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    color: var(--light-color);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 184, 28, 0.2);
    padding-bottom: 10px;
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.recent-posts, .categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li, .categories li {
    margin-bottom: 12px;
}

.recent-posts li a, .categories li a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    word-wrap: break-word;
}

.recent-posts li a:hover, .categories li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 184, 28, 0.1);
}

.recent-posts li.active a {
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    background-color: rgba(255, 184, 28, 0.05);
}

.cta-widget {
    text-align: center;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 184, 28, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-widget p {
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.05rem;
}

.cta-widget .primary-btn {
    width: 100%;
    padding: 12px;
}

/* Related Posts Section */
.related-posts {
    padding: 80px 0;
    background-color: var(--darker-color);
    position: relative;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--dark-color) 0%, transparent 5%, transparent 95%, var(--dark-color) 100%);
    pointer-events: none;
}

.related-posts .container {
    padding-left: 20px;
    padding-right: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-card {
    background-color: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.related-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.related-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    pointer-events: none;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-content .blog-category {
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
    transform: translateY(-50%);
    margin-bottom: 0;
    font-size: 0.8rem;
    padding: 5px 15px;
}

.related-content h3 {
    font-size: 1.4rem;
    color: var(--light-color);
    margin: 15px 0;
    transition: all 0.3s ease;
    line-height: 1.3;
    word-wrap: break-word;
}

.related-card:hover .related-content h3 {
    color: var(--primary-color);
}

.related-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
    flex-grow: 1;
}

.related-card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 184, 28, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.related-card:hover::after {
    opacity: 1;
    background-color: var(--primary-color);
}

.related-card::before {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    z-index: 3;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.related-card:hover::before {
    opacity: 1;
    color: var(--dark-color);
}

/* Table of Contents */
.toc-container {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(255, 184, 28, 0.1);
}

.toc-title {
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-title i {
    color: var(--primary-color);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px;
    border-radius: 5px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 184, 28, 0.2);
    word-wrap: break-word;
}

.toc-list a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-color);
    transform: translateX(3px);
}

/* Mobile reading experience improvements */
@media (max-width: 992px) {
    .blog-content .container {
        grid-template-columns: 1fr;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    article h2 {
        font-size: 1.9rem;
    }
    
    article h3 {
        font-size: 1.4rem;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 50px;
    }
    
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-main {
        padding: 30px 25px;
    }
    
    .blog-author {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    article {
        font-size: 1rem;
    }
    
    .toc-container {
        padding: 20px 15px;
    }
    
    .toc-list a {
        padding: 8px 5px 8px 10px;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 90px 0 40px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .blog-hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .blog-category {
        font-size: 0.8rem;
        padding: 5px 12px;
        margin-bottom: 15px;
    }
    
    .blog-content {
        padding: 50px 0;
    }
    
    .blog-content .container {
        gap: 30px;
    }
    
    article h2 {
        font-size: 1.6rem;
        margin: 30px 0 15px;
    }
    
    article h3 {
        font-size: 1.3rem;
        margin: 20px 0 10px;
    }
    
    .blog-main {
        padding: 25px 20px;
    }
    
    .cta-container {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .cta-container .primary-btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
    }
    
    .sidebar-widget {
        padding: 25px 20px;
    }
    
    .author-image {
        width: 70px;
        height: 70px;
    }
    
    .blog-author {
        padding: 20px 15px;
        margin: 30px 0;
        gap: 15px;
    }
    
    .related-posts {
        padding: 50px 0;
    }
    
    .related-image {
        height: 180px;
    }
    
    .related-content {
        padding: 20px 15px;
    }
    
    .related-content h3 {
        font-size: 1.2rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .blog-hero-content h1 {
        font-size: 1.6rem;
    }
    
    article {
        font-size: 0.95rem;
    }
    
    article h2 {
        font-size: 1.4rem;
    }
    
    article h3 {
        font-size: 1.2rem;
    }
    
    .author-image {
        width: 60px;
        height: 60px;
    }
    
    .related-image {
        height: 160px;
    }
}