/* ==========================================================================
   IKIGAI 2.0 - Blog Styles
   AEO-Optimized Blog Design System
   ========================================================================== */

/* Blog Listing Page
   ========================================================================== */

.blog-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a574' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #d4a574;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Blog Grid
   ========================================================================== */

.blog-section {
    padding: 80px 0;
    background: #faf9f7;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '📖';
    font-size: 3rem;
    opacity: 0.5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 28px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #666;
}

.blog-card-category {
    background: rgba(212, 165, 116, 0.15);
    color: #a67c4c;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: #d4a574;
}

.blog-card-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.blog-read-time {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-read-more {
    color: #d4a574;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.blog-read-more:hover {
    gap: 10px;
}

/* Single Blog Post
   ========================================================================== */

.blog-post-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.blog-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a574' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.blog-post-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-post-category {
    display: inline-block;
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 24px;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574, #a67c4c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

/* Blog Content
   ========================================================================== */

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    background: white;
}

/* Direct Answer Block - AEO Optimized */
.direct-answer {
    background: linear-gradient(135deg, #f8f6f3 0%, #fff 100%);
    border-left: 4px solid #d4a574;
    padding: 28px 32px;
    margin: 0 0 40px 0;
    border-radius: 0 12px 12px 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.direct-answer strong {
    color: #1a1a2e;
}

/* Article Typography */
.blog-post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a2e;
    margin: 48px 0 20px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.blog-post-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.blog-post-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: #1a1a2e;
    margin: 32px 0 16px;
    font-weight: 600;
}

.blog-post-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 24px;
}

.blog-post-content strong {
    color: #1a1a2e;
    font-weight: 600;
}

.blog-post-content em {
    color: #555;
}

/* Feature-How-Outcome Blocks */
.fho-block {
    background: #fafafa;
    padding: 24px 28px;
    border-radius: 12px;
    margin: 28px 0;
    border: 1px solid #eee;
}

.fho-block p {
    margin-bottom: 16px;
}

.fho-block p:last-child {
    margin-bottom: 0;
}

.fho-label {
    display: inline-block;
    font-weight: 700;
    color: #d4a574;
    margin-right: 8px;
}

/* Lists */
.blog-post-content ul,
.blog-post-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.blog-post-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
    position: relative;
}

.blog-post-content ul li::marker {
    color: #d4a574;
}

.blog-post-content ol li::marker {
    color: #d4a574;
    font-weight: 700;
}

/* Blockquotes */
.blog-post-content blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 16px;
    position: relative;
}

.blog-post-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(212, 165, 116, 0.3);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.blog-post-content blockquote p {
    color: white;
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.blog-post-content blockquote cite,
.blog-post-content blockquote footer {
    color: #d4a574;
    font-style: normal;
    font-weight: 600;
}

/* Tables */
.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.blog-post-content thead {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
}

.blog-post-content th {
    padding: 16px 20px;
    text-align: left;
    color: white;
    font-weight: 600;
}

.blog-post-content td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.blog-post-content tbody tr:nth-child(even) {
    background: #fafafa;
}

.blog-post-content tbody tr:hover {
    background: #f5f3f0;
}

/* Links */
.blog-post-content a {
    color: #d4a574;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.blog-post-content a:hover {
    color: #a67c4c;
}

/* Code */
.blog-post-content code {
    background: #f5f3f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: #1a1a2e;
}

.blog-post-content pre {
    background: #1a1a2e;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 28px 0;
}

.blog-post-content pre code {
    background: transparent;
    color: #e0e0e0;
    padding: 0;
}

/* FAQ Section - AEO Optimized */
.faq-section {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.faq-section h2 {
    text-align: center;
    border-top: none;
    padding-top: 0;
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 24px;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.faq-question {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    padding: 20px 24px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f5f3f0;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #d4a574;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Box */
.blog-cta-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 20px;
    padding: 48px;
    margin: 48px 0;
    text-align: center;
}

.blog-cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 16px;
}

.blog-cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.blog-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d4a574 0%, #c49660 100%);
    color: #000000 !important;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}

.blog-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 165, 116, 0.4);
    color: #000000 !important;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: #fafafa;
    border-radius: 16px;
    margin-top: 60px;
    border: 1px solid #eee;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574, #a67c4c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.author-bio-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.author-bio-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: #faf9f7;
}

.related-posts h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 40px;
}

/* Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }

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

    .blog-post-content {
        padding: 40px 20px 60px;
    }

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

    .blog-post-content blockquote {
        padding: 24px;
    }

    .blog-post-content blockquote p {
        font-size: 1.2rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-bio-avatar {
        margin: 0 auto;
    }

    .blog-cta-box {
        padding: 32px 24px;
    }

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

    .direct-answer {
        padding: 20px 24px;
        font-size: 1.05rem;
    }
}

/* Print Styles */
@media print {

    .nav,
    .blog-cta-box,
    .related-posts,
    footer {
        display: none;
    }

    .blog-post-content {
        max-width: 100%;
        padding: 0;
    }
}

/* ==========================================================================
   Blog Category Headers & Enhanced Listing
   ========================================================================== */

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

.blog-category-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.blog-category-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Blog Card */
.blog-featured {
    margin-bottom: 60px;
}

.blog-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(212, 165, 116, 0.3);
}

.blog-card-featured .blog-card-image {
    height: 100%;
    min-height: 300px;
}

.blog-card-featured .blog-card-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-featured h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.blog-card-featured .blog-card-excerpt {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* Reading Path */
.reading-path {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}

.reading-path h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 12px;
}

.reading-path>p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.reading-path-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.reading-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.reading-step:hover {
    background: rgba(212, 165, 116, 0.2);
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #d4a574, #c49660);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.reading-step a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.reading-step a:hover {
    color: #d4a574;
}

.reading-step-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

/* Responsive for new components */
@media (max-width: 900px) {
    .blog-card-featured {
        grid-template-columns: 1fr;
    }

    .blog-card-featured .blog-card-image {
        min-height: 200px;
    }

    .reading-path-steps {
        flex-direction: column;
    }

    .reading-step-arrow {
        transform: rotate(90deg);
    }

    .reading-path {
        padding: 32px 24px;
    }
}