/*
---------------------------------------------
Custom Styles for Blog Single Page
File: assets/css/blog-single.css
---------------------------------------------
*/

/* === Hero Section === */
.blog-single-hero-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--preformia-dark-blue) 0%, #004a80 100%);
    color: var(--preformia-white);
    text-align: center;
}
.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}
.post-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--preformia-light-blue);
}
.post-date, .post-read-time {
    font-size: 0.9rem;
}
.blog-single-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--preformia-white);
    margin: 15px 0 25px;
}
.blog-single-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--preformia-light-blue);
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--preformia-white);
    margin: 0;
}
.author-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* === Content Section === */
.blog-single-content-section {
    padding: 80px 0;
    background: var(--preformia-white);
}
.blog-single-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.1);
}
.blog-single-image img {
    width: 100%;
}
.blog-single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}
.blog-single-content h2, .blog-single-content h3 {
    color: var(--preformia-dark-blue);
    font-weight: 700;
    margin: 40px 0 20px;
}
.blog-single-content h2 { font-size: 2rem; }
.blog-single-content h3 { font-size: 1.6rem; }
.blog-single-content p { margin-bottom: 1.5em; }
.blog-single-content ul, .blog-single-content ol {
    margin: 0 0 1.5em 20px;
    padding: 0;
}
.blog-single-content li {
    margin-bottom: 0.8em;
}
.blog-single-content blockquote {
    border-left: 4px solid var(--preformia-light-blue);
    padding-left: 20px;
    margin: 30px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

/* === Content Images === */
.content-image-section {
    margin: 30px 0;
    text-align: center;
}
.content-image-section img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    transition: transform 0.3s ease;
}
.content-image-section img:hover {
    transform: scale(1.02);
}

/* === Strategy Highlight Cards === */
.strategy-highlight {
    margin: 30px 0;
}
.strategy-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-left: 4px solid var(--preformia-light-blue);
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.08);
}
.strategy-icon {
    background: var(--preformia-light-blue);
    color: var(--preformia-dark-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.strategy-content h4 {
    color: var(--preformia-dark-blue);
    margin: 0 0 10px;
    font-size: 1.2rem;
}
.strategy-content p {
    margin: 0;
    color: #666;
}

/* === Social Platforms Grid === */
.social-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.platform-card {
    background: var(--preformia-white);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}
.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
}
.platform-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
    background: var(--preformia-light-blue) !important;
}
.platform-icon.linkedin { background: var(--preformia-light-blue); }
.platform-icon.instagram { background: var(--preformia-light-blue); }
.platform-icon.facebook { background: var(--preformia-light-blue); }
.platform-icon.twitter { background: var(--preformia-light-blue); }
.platform-card h5 {
    color: var(--preformia-dark-blue);
    margin: 0 0 10px;
    font-weight: 600;
}
.platform-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* === Email Stats === */
.email-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--preformia-dark-blue) 0%, #004a80 100%);
    border-radius: 15px;
    color: white;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--preformia-light-blue);
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === KPI Grid === */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.kpi-card {
    background: var(--preformia-white);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.12);
}
.kpi-card h4 {
    color: var(--preformia-dark-blue);
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}
.kpi-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* === Tags & Share Section === */
.blog-single-footer {
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
}
.blog-single-footer h5 {
    font-weight: 600;
    color: var(--preformia-dark-blue);
    margin-right: 15px;
    font-size: 1rem;
    flex-shrink: 0;
}
.tags-container, .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tag {
    background: #f0f2f5;
    color: #555;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.tag:hover {
    background: var(--preformia-light-blue);
    color: var(--preformia-dark-blue);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.1);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.95;
    color: white;
}
.share-btn i {
    font-size: 1rem;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }

/* === Related Posts Section === */
.related-posts-section {
    padding: 80px 0;
    background: var(--preformia-bg-light);
}
.related-posts-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--preformia-dark-blue);
    margin-bottom: 50px;
    font-weight: 700;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.related-post-card {
    background: var(--preformia-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 51, 102, 0.07);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.related-post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 51, 102, 0.15);
}
.related-post-image {
    height: 200px;
    overflow: hidden;
    background-color: #e9ecef;
}
.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}
.related-post-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.related-post-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
    flex-grow: 1;
}
.related-post-content h4 a {
    color: var(--preformia-dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}
.related-post-content h4 a:hover {
    color: var(--preformia-light-blue);
}
.related-post-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
}

/* === Responsive === */
@media (max-width: 991px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .social-platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .email-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .blog-single-title { font-size: 2.2rem; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .social-platforms-grid { grid-template-columns: 1fr; }
    .email-stats { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr; }
    .strategy-card {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 575px) {
    .blog-single-title { font-size: 1.8rem; }
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    .share-buttons { justify-content: center; }
    .stat-number { font-size: 2rem; }
} 