/*
---
Modern Magazine-Style Blog Design
---
*/

/* --- Global Styles & Variables --- */
:root {
    --primary-font: 'Inter', sans-serif;
    --background-color: #FFFFFF;
    --text-color: #212529;
    --accent-color: #007bff;
    --border-color: #dee2e6;
    --container-width: 1140px;
    --header-height: 70px;
}

body {
    font-family: var(--primary-font);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

/* --- Header --- */
.blog-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.blog-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.blog-header .logo img {
    height: 30px;
}

.blog-header .main-nav a {
    margin-left: 25px;
    font-weight: 700;
}

.blog-header .main-nav i {
    margin-right: 8px;
}

.lang-switcher a {
    margin-left: 5px;
}

/* --- Page Layout --- */
.page-body {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* --- Sidebar Widgets --- */
.widget {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
}

.widget h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.widget ul li {
    margin-bottom: 10px;
}

/* --- Article List (Card-based) --- */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    list-style: none;
    padding: 0;
}

.article-list li a {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
}

.article-list li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--text-color);
}

.article-list .card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.article-list .card-content {
    padding: 20px;
}

.article-list h2 {
    margin-top: 0;
    font-size: 1.4em;
}

.article-list .summary {
    color: #6c757d;
}

/* --- Single Article --- */
.article-header {
    margin-bottom: 1.5em;
}

.article-header .categories a {
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-right: 10px;
    text-transform: uppercase;
}

.article-header .categories a:hover {
    background-color: #0056b3;
    color: #fff;
}

.article-content h1 {
    font-size: 2.8em;
    margin: 0.5em 0;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 1.5em;
    align-items: center;
}

.article-meta .date i {
    margin-right: 8px;
}

.article-content .cover-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2em;
}

.article-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2em 0;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-bottom: 1.5em;
    font-size: 1.0em;
    line-height: 1.7;
}

/* --- Share Buttons --- */
.floating-share-buttons {
    position: fixed;
    top: 180px;
    left: calc((100vw - var(--container-width)) / 2 - 80px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.floating-share-buttons .share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.mobile-share-buttons {
    display: none; /* Hidden by default */
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.mobile-share-buttons .share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.mobile-share-buttons .share-btn i {
    margin-right: 0; /* No margin for icon-only */
}

.share-btn.facebook {
    background-color: #1877F2;
}

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

.share-btn.linkedin {
    background-color: #0A66C2;
}


/* --- Footer --- */
.main-footer {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 0;
    color: #6c757d;
}

.main-footer .footer-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.main-footer .footer-column {
    flex: 1;
    min-width: 200px;
}

.main-footer .footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.main-footer h4 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

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

.main-footer .footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.main-footer .social-links a {
    font-size: 1.4em;
    margin-left: 15px;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .floating-share-buttons {
        display: none;
    }
    .mobile-share-buttons {
        display: flex; /* Show mobile buttons */
    }
}

@media (max-width: 992px) {
    .page-body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-header .main-nav {
        display: none; /* Simple solution for now */
    }

    .article-content h1 {
        font-size: 2.2em;
    }

    .main-footer .footer-bottom {
        flex-direction: column-reverse;
        gap: 15px;
    }
}

/* --- Social Media Embeds Section --- */
.social-embeds {
    margin: 40px 0;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.social-embeds h2 {
    font-size: 1.6em;
    margin-bottom: 24px;
    color: var(--accent-color);
}
.social-post {
    margin-bottom: 32px;
    padding: 18px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.social-post:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.social-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}
.social-post iframe {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* --- Social Page --- */
.social-embeds {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-post {
    width: 100%;
    max-width: 500px; /* Or the width of your embeds */
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.social-post:last-child {
    border-bottom: none;
}
