/* Blog Post Styles - Fixed to match HairFindr */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #2E2947 0%, #3d3660 100%);
    min-height: 100vh;
    color: #f5f5f5;
    line-height: 1.6;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #F5D168 0%, #F0A356 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: #c0c0c0;
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.blog-author, .blog-date, .blog-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta svg {
    width: 18px;
    height: 18px;
    color: #F5D168;
}

.blog-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(245, 209, 104, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.blog-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.blog-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(245, 209, 104, 0.1);
}

.blog-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #f0f0f0;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(245, 209, 104, 0.2);
    font-weight: 400;
}

.blog-section {
    margin-bottom: 50px;
}

.blog-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #F5D168;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-section h2 svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.blog-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 20px;
    font-weight: 300;
}

.blog-tips {
    background: rgba(245, 209, 104, 0.08);
    border: 1px solid rgba(245, 209, 104, 0.2);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.blog-tips h3 {
    color: #F5D168;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-tips h3 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.blog-tips ul {
    list-style: none;
    padding: 0;
}

.blog-tips li {
    padding: 10px 0;
    color: #d0d0d0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 300;
    font-size: 1rem;
}

.blog-tips li::before {
    content: '✓';
    color: #F0A356;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.blog-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.blog-image-grid img {
    width: 100%;
    max-height: 200px; /* don't exceed this height */
    height: auto;      /* keep aspect ratio */
    border-radius: 6px;
    border: 1px solid rgba(245, 209, 104, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-image-grid img:hover {
    transform: scale(1.05);
    border-color: rgba(245, 209, 104, 0.5);
    box-shadow: 0 4px 15px rgba(245, 209, 104, 0.2);
}

.blog-conclusion {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #F5D168;
    padding: 30px;
    border-radius: 0 8px 8px 0;
    margin: 40px 0;
}

.blog-conclusion h3 {
    color: #F5D168;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-conclusion p {
    color: #d0d0d0;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 30px 0;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 209, 104, 0.2);
}

.blog-tag {
    background: rgba(245, 209, 104, 0.1);
    color: #F5D168;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(245, 209, 104, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.blog-tag:hover {
    background: rgba(245, 209, 104, 0.2);
    border-color: rgba(245, 209, 104, 0.5);
    transform: translateY(-2px);
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 209, 104, 0.2);
}

.blog-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(245, 209, 104, 0.3);
    border-radius: 8px;
    color: #F5D168;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    max-width: 220px;
    font-family: 'Lato', sans-serif;
}

.blog-nav-btn:hover {
    background: rgba(245, 209, 104, 0.1);
    border-color: rgba(245, 209, 104, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 209, 104, 0.2);
}

.blog-nav-btn.next {
    margin-left: auto;
}

.blog-nav-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.blog-nav-btn.prev:hover svg {
    transform: translateX(-3px);
}

.blog-nav-btn.next:hover svg {
    transform: translateX(3px);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #F5D168;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.image-modal-close:hover {
    background: rgba(245, 209, 104, 0.1);
    transform: scale(1.1);
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, #F5D168 0%, #F0A356 100%);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Share Button */
.blog-share-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #F5D168 0%, #F0A356 100%);
    color: #2E2947;
    border: none;
    padding: 14px 24px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(245, 209, 104, 0.3);
    transition: all 0.3s;
    z-index: 1000;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 209, 104, 0.4);
}

/* Table of Contents */
.blog-toc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 209, 104, 0.2);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.blog-toc h3 {
    color: #F5D168;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.blog-toc li {
    margin-bottom: 12px;
    padding-left: 0;
}

.blog-toc a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 300;
    font-size: 1rem;
    display: block;
    padding: 5px 0;
}

.blog-toc a:hover {
    color: #F5D168;
    transform: translateX(5px);
}

/* Code Blocks */
.blog-content pre {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 209, 104, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.blog-content code {
    background: transparent;
    color: #f0f0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(245, 209, 104, 0.1);
    border: 1px solid rgba(245, 209, 104, 0.3);
    color: #F5D168;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
}

.copy-code-btn:hover {
    background: rgba(245, 209, 104, 0.2);
    border-color: rgba(245, 209, 104, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 20px 15px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-content {
        padding: 30px 20px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 15px;
    }

    .blog-featured-image img {
        height: 250px;
    }

    .blog-intro {
        font-size: 1.1rem;
    }

    .blog-section h2 {
        font-size: 1.5rem;
    }

    .blog-section p {
        font-size: 1rem;
    }

    .blog-image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .blog-image-grid img {
        height: 120px;
    }

    .blog-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .blog-nav-btn {
        max-width: none;
        justify-content: center;
    }

    .blog-share-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.75rem;
    }

    .blog-content {
        padding: 25px 15px;
    }

    .blog-section h2 {
        font-size: 1.3rem;
    }

    .blog-image-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-tags {
        justify-content: center;
    }

    .blog-share-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}