/* Blog Common Styles - blog-styles.css */
/* Use this CSS file for ALL your blog posts */

:root {
    --primary-blue: #1347cc;
    --secondary-pink: #ff6b6b;
    --text-dark: #0e1733;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --accent-color: #ff6b6b;
    --border-light: #e9ecef;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --border-radius: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}


.blog-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px var(--shadow-light);
}

.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    position: relative;
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid transparent;
    font-size: 14px;
}

.back-home:hover {
    color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(-2px);
}

.back-home svg {
    width: 16px;
    height: 16px;
}

.blog-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-logo:hover {
    transform: scale(1.02);
}

.blog-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.blog-logo:hover img {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.blog-logo span {
    font-size: 18px;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blog-nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    position: relative;
}

.blog-nav-links a:hover {
    color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 4px 6px var(--shadow-medium);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-links {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 15px 20px;
    gap: 8px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    font-size: 12px;
    text-align: center;
}

.mobile-nav-links a:hover {
    background-color: rgba(59, 130, 246, 0.05);
    color: var(--primary-blue);
}
/* Responsive Design */
@media (max-width: 768px) {
    .blog-nav {
        padding: 12px 16px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        align-items: center;
    }

    .nav-left {
        grid-column: 1;
        justify-self: start;
    }

    .nav-center {
        grid-column: 2;
        justify-self: center;
    }

    .nav-right {
        grid-column: 3;
        justify-self: end;
    }

    .back-home {
        padding: 8px 12px;
        font-size: 13px;
    }

    .back-home span {
        display: inline;
    }

    .blog-logo span {
        font-size: 15px;
    }

    .blog-logo img {
        width: 36px;
        height: 36px;
    }

    .blog-nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .blog-nav {
        padding: 10px 12px;
        gap: 8px;
    }

    .blog-logo span {
        font-size: 14px;
    }

    .blog-logo img {
        width: 32px;
        height: 32px;
    }

    .back-home {
        padding: 6px 10px;
        font-size: 12px;
    }

    .back-home svg {
        width: 14px;
        height: 14px;
    }

    .mobile-menu-btn {
        padding: 6px;
    }

    .mobile-menu-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* MAIN CONTENT CONTAINER */
.blog-main {
    margin-top: 40px;
    padding-bottom: 60px;
}

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

/* ARTICLE STYLES */
.blog-article {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* Article Header */
.article-header {
    padding: 40px 40px 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category {
    background: var(--primary-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 14px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.4;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

.author-details span {
    color: var(--text-light);
    font-size: 14px;
}

/* Featured Image */
.featured-image {
    position: relative;
}

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 15px;
    font-size: 14px;
}

/* ARTICLE CONTENT */
.article-content {
    padding: 40px;
}

.article-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: var(--text-dark);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: var(--text-dark);
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 25px 0 12px 0;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-blue), #1e5bff);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.highlight-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
}

.highlight-box p {
    margin-bottom: 0;
    opacity: 0.95;
}

/* Warning/Info Boxes */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.success-box {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

/* ARTICLE FOOTER */
.article-footer {
    padding: 30px 40px;
    border-top: 1px solid var(--border-light);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: #f1f3f4;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-blue);
    color: white;
}

/* SHARE SECTION */
.share-section h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 18px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.copy-link {
    background: #6c757d;
}

/* AUTHOR BIO SECTION */
.author-bio {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bio-content h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.bio-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.bio-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bio-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.bio-link:hover {
    color: var(--text-dark);
}

/* NEWSLETTER SIGNUP */
.newsletter-signup {
    background: linear-gradient(135deg, var(--primary-blue), #1e5bff);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 40px;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.newsletter-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

.newsletter-form button {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
.blog-footer {
    background: var(--text-dark);
    color: white;
    margin-top: 60px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    margin-bottom: 15px;
}

.footer-description {
    color: #adb5bd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #495057;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links-footer a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #adb5bd;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #adb5bd;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: white;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .blog-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-left,
    .nav-center,
    .nav-right {
        flex: none;
    }

    .blog-nav-links {
        justify-content: center;
    }

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

    .article-header {
        padding: 30px 20px 15px;
    }

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

    .article-footer {
        padding: 20px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}


.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.hidden {
  display: none;
}
