/* Blog Styles for DASPR Website */

/* Blog Header Section */
.blog-header {
    background: linear-gradient(135deg, var(--pulse-blue) 0%, var(--pulse-blue-dark) 100%);
    color: white;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
}

.blog-category {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    color: white;
}

.blog-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
    max-width: 800px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.blog-date::before {
    content: "📅 ";
    opacity: 0.8;
}

.blog-author::before {
    content: "✍️ ";
    opacity: 0.8;
}

/* Blog Content */
.blog-content {
    padding: 60px 0;
    background-color: white;
}

.blog-image-featured {
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

.blog-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.blog-text h2 {
    font-size: 32px;
    color: var(--pulse-blue);
    margin: 40px 0 20px;
    line-height: 1.3;
}

.blog-text h3 {
    font-size: 24px;
    color: var(--neutral-dark);
    margin: 30px 0 15px;
}

.blog-text p {
    margin-bottom: 20px;
}

.blog-text ul, .blog-text ol {
    margin: 20px 0 25px 20px;
}

.blog-text li {
    margin-bottom: 15px;
}

.blog-quote {
    background-color: rgba(41, 121, 255, 0.05);
    border-left: 4px solid var(--pulse-blue);
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.blog-quote p {
    font-style: italic;
    font-size: 20px;
    color: var(--pulse-blue-dark);
    line-height: 1.6;
    margin: 0;
}

.blog-image-inline {
    margin: 30px 0;
}

.inline-image {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.blog-text a {
    color: var(--pulse-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    border-bottom: 1px dotted var(--pulse-blue);
    padding-bottom: 2px;
}

.blog-text a:hover {
    color: var(--pulse-blue-dark);
    border-bottom: 1px solid var(--pulse-blue-dark);
}

/* Blog Tags */
.blog-tags {
    margin: 40px auto;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: rgba(41, 121, 255, 0.1);
    color: var(--pulse-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.tag:hover {
    background-color: rgba(41, 121, 255, 0.2);
}

/* Blog Share */
.blog-share {
    max-width: 800px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-share p {
    font-weight: 500;
    margin: 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    background-color: var(--pulse-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.share-button:hover {
    background-color: var(--pulse-blue-dark);
    transform: translateY(-2px);
}

/* Related Posts */
.blog-related {
    margin: 60px auto 0;
    max-width: 1000px;
}

.blog-related h3 {
    font-size: 28px;
    color: var(--pulse-blue);
    margin-bottom: 25px;
    text-align: center;
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-post {
    text-decoration: none;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.related-post h4 {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    color: var(--neutral-dark);
    transition: color 0.3s;
    line-height: 1.4;
}

.related-post:hover h4 {
    color: var(--pulse-blue);
}

/* Case Study */
.case-study {
    background-color: rgba(41, 121, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.case-study h3 {
    color: var(--pulse-blue);
    margin-top: 0;
    border-bottom: 1px solid rgba(41, 121, 255, 0.2);
    padding-bottom: 10px;
}

.case-study p {
    margin-bottom: 15px;
}

.case-study em {
    display: block;
    font-style: italic;
    color: var(--neutral-dark);
}

/* Blog Calculation */
.blog-calculation {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.blog-calculation p {
    font-family: monospace;
    font-size: 20px;
    margin: 0;
    color: var(--neutral-dark);
}

/* Compound Visualization */
.compound-visualization {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.year-result {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.year-result:hover {
    transform: translateY(-5px);
}

.year {
    background-color: var(--pulse-blue);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

.result {
    padding: 15px;
    font-size: 15px;
    line-height: 1.5;
}

/* Steps Visualization */
.steps-visualization {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.step:hover {
    transform: translateX(5px);
}

.step-number {
    background-color: var(--pulse-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 5px;
    color: var(--pulse-blue);
}

.step-content p {
    margin: 0;
    font-size: 15px;
}

/* Blog References */
.blog-references {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0 20px;
}

.blog-references h3 {
    font-size: 22px;
    margin-top: 0;
    color: var(--neutral-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.blog-references ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.blog-references li {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Final Quote Styling */
.final-quote {
    margin: 40px 0 20px;
    font-size: 22px;
    text-align: center;
    background-color: rgba(41, 121, 255, 0.08);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-header {
        padding: 50px 0;
    }
    
    .blog-header h1 {
        font-size: 32px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .blog-text {
        font-size: 16px;
    }
    
    .blog-text h2 {
        font-size: 28px;
    }
    
    .blog-text h3 {
        font-size: 22px;
    }
    
    .blog-quote p {
        font-size: 18px;
    }
    
    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-posts {
        grid-template-columns: 1fr;
    }
    
    .compound-visualization {
        grid-template-columns: 1fr;
    }
    
    .step {
        padding: 12px;
    }
    
    .blog-calculation p {
        font-size: 16px;
    }
}