/* main_styles.css */

:root {
    --sidebar-width: 256px; 
    --header-height: 64px;  
    --bottom-bar-height: 64px; 
    --primary-text-color: #212529; /* Dark gray for text */
    --secondary-text-color: #6c757d; /* Lighter gray for secondary text */
    --accent-color: #007bff; /* A nice blue for accents */
    --background-color: #f8f9fa; /* Very light gray for page background */
    --surface-color: #ffffff; /* White for cards, sidebar, header backgrounds */
    --border-color: #dee2e6; /* Light border color */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --border-radius: 0.375rem; /* 6px, common for rounded-md */
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); /* Tailwind shadow-md */
    --card-hover-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* Tailwind shadow-lg */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--primary-text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden; 
    display: flex; 
}

.page-wrapper {
    display: flex;
    flex-direction: row; 
    width: 100%;
    min-height: 100vh;
    position: relative; 
    overflow-x: hidden; 
}

/* --- Sidebar --- */
.site-sidebar {
    width: var(--sidebar-width);
    height: 100vh; 
    position: fixed; 
    top: 0;
    left: 0;
    background-color: var(--surface-color);
    box-shadow: 2px 0 5px rgba(0,0,0,0.05); /* Softer shadow */
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out;
    z-index: 200; 
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow scrolling within sidebar if content overflows */
}
.site-sidebar .sidebar-inner-content { /* Added wrapper for padding */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Make inner content take full height */
}

.site-sidebar.is-active { 
    transform: translateX(0);
}

@media (min-width: 768px) { 
    .site-sidebar.desktop-visible {
        transform: translateX(0); 
    }
    .site-sidebar.desktop-hidden {
        transform: translateX(-100%);
    }
}

.sidebar-header h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-nav ul, .sidebar-social ul {
    list-style: none;
}

.sidebar-nav a, .sidebar-social a, .sidebar-nav button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    color: var(--secondary-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%; 
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
}
.sidebar-nav a svg, .sidebar-social a svg, .sidebar-nav button svg {
    margin-right: 0.75rem;
    width: 1.25rem; 
    height: 1.25rem; 
}
.sidebar-nav a:hover, .sidebar-social a:hover, .sidebar-nav button:hover {
    background-color: #e9ecef; 
    color: var(--accent-color);
}
.sidebar-nav a.active {
    background-color: var(--accent-color);
    color: white;
}
.sidebar-nav a.active svg {
    color: white;
}
.sidebar-social-title {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem; 
    color: var(--text-muted-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 1rem; /* Align with link padding */
}
.sidebar-footer {
    margin-top: auto; 
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted-color);
    text-align: center;
}


/* --- Main Content Area --- */
.main-content {
    flex-grow: 1;
    padding-top: var(--header-height); 
    transition: margin-left 0.3s ease-in-out; 
    width: 100%; 
    min-width: 0; 
}

@media (min-width: 768px) { 
    .main-content.shifted-by-sidebar {
        margin-left: var(--sidebar-width);
    }
}
@media (max-width: 767px) { 
    .main-content {
        padding-bottom: calc(var(--bottom-bar-height) + 1rem); 
    }
}


/* --- Header --- */
.site-header {
    height: var(--header-height);
    background-color: var(--surface-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem; 
    position: fixed; 
    top: 0;
    left: 0; 
    right: 0;
    z-index: 100;
    transition: left 0.3s ease-in-out; 
}
@media (min-width: 768px) { 
    .site-header.shifted-by-sidebar {
        left: var(--sidebar-width);
    }
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1280px; 
    margin: 0 auto;
}

.sidebar-toggle-button { 
    background: none;
    border: none;
    color: var(--secondary-text-color);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.75rem; 
}
.sidebar-toggle-button svg {
    width: 1.5rem; 
    height: 1.5rem; 
}
.sidebar-toggle-button:hover {
    color: var(--accent-color);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* space-x-3 */
}
.header-logo {
    height: 32px; /* Adjust as needed, e.g., h-8 */
    width: auto; /* Maintain aspect ratio */
    max-height: calc(var(--header-height) - 20px); /* Ensure it fits within header */
}
.site-title-text {
    font-size: 1.25rem; 
    font-weight: 600; 
    color: var(--accent-color);
    margin: 0; /* Reset margin if h1 */
}


/* --- Content Area Within Main --- */
.content-inner {
    padding: 1rem; 
}
@media (min-width: 640px) { 
    .content-inner {
        padding: 1.5rem; 
    }
}
@media (min-width: 1024px) { 
    .content-inner {
        padding: 2rem; 
    }
}
.section-heading { /* Common style for section titles */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: var(--primary-text-color); /* text-gray-800 */
    margin-bottom: 1.5rem; /* mb-6 */
}
@media (min-width: 640px) { /* sm breakpoint */
    .section-heading {
        font-size: 1.875rem; /* sm:text-3xl */
    }
}


/* --- Post List (Simple Vertical) --- */
.local-posts-list .post-card-item {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.local-posts-list .post-card-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.local-posts-list .post-card-item:hover {
    box-shadow: var(--card-hover-shadow);
}
.local-posts-list .post-image-container {
    height: 200px;
    background-color: #e0e0e0;
}
.local-posts-list .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.local-posts-list .post-content-wrapper {
    padding: 1rem 1.25rem;
}
.local-posts-list .post-title-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.local-posts-list .post-meta-info {
    font-size: 0.875rem;
    color: var(--text-muted-color);
    margin-bottom: 0.75rem;
}
.local-posts-list .post-excerpt-text {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5em; 
}
.local-posts-list .read-more-link {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}
.local-posts-list .read-more-link:hover {
    text-decoration: underline;
}

/* --- Single Post Page --- */
.single-post-article {
    background-color: var(--surface-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .single-post-article {
        padding: 1.5rem;
    }
}
@media (min-width: 768px) {
    .single-post-article {
        padding: 2rem;
    }
}

.single-post-article .post-title-single {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
@media (min-width: 640px) {
    .single-post-article .post-title-single {
        font-size: 2rem;
    }
}
.single-post-article .author-display-single {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted-color);
}
.single-post-article .author-avatar-placeholder-single {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 0.75rem;
    font-size: 1rem;
}
.single-post-article .featured-media-single img,
.single-post-article .featured-media-single video {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}
.single-post-article .post-content-prose {
    line-height: 1.7;
    font-size: 1rem;
}
@media (min-width: 640px) {
    .single-post-article .post-content-prose {
        font-size: 1.05rem;
    }
}
.single-post-article .post-content-prose p { margin-bottom: 1em; }
.single-post-article .post-content-prose h2 { font-size: 1.5em; margin: 1.5em 0 0.5em; font-weight: 600;}
.single-post-article .post-content-prose h3 { font-size: 1.25em; margin: 1.2em 0 0.4em; font-weight: 600;}
.single-post-article .post-content-prose a { color: var(--accent-color); text-decoration: underline; }
.single-post-article .post-content-prose a:hover { color: #0056b3; }
.single-post-article .post-content-prose blockquote {
    border-left: 3px solid var(--accent-color);
    color: var(--text-muted-color);
    padding-left: 1em;
    margin-left: 0; font-style: italic;
}
.single-post-article .post-content-prose code {
    background-color: #f0f0f0; 
    color: #c7254e; 
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em; 
}
.single-post-article .post-content-prose pre {
    background-color: #282c34; 
    color: #abb2bf; 
    padding: 1em;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-size: 0.9em;
}
.single-post-article .post-content-prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit; 
}

.single-post-article .back-to-posts-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}
.single-post-article .back-to-posts-link:hover {
    text-decoration: underline;
}


/* --- Bottom Bar --- */
.site-bottom-bar {
    width: 100%;
    height: var(--bottom-bar-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
@media (min-width: 768px) { 
    .site-bottom-bar {
        display: none; 
    }
}
.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text-color);
    text-decoration: none;
    font-size: 0.75rem; 
    padding: 0.25rem 0.5rem;
    flex-grow: 1;
}
.bottom-nav-link svg {
    width: 1.5rem; 
    height: 1.5rem; 
    margin-bottom: 0.125rem;
}
.bottom-nav-link:hover, .bottom-nav-link.active {
    color: var(--accent-color);
}


/* --- Menu Modal --- */
.menu-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.menu-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.menu-modal-content {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px; 
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}
.menu-modal-overlay.is-visible .menu-modal-content {
    transform: scale(1);
}
.menu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.menu-modal-header h2 {
    font-size: 1.25rem; 
    font-weight: 600;
}
.menu-modal-close-button {
    background: none;
    border: none;
    font-size: 1.75rem; /* Increased for better tap target */
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-text-color);
    padding: 0.25rem; /* Add some padding */
}
.menu-modal-close-button:hover {
    color: var(--primary-text-color);
}
.menu-modal-list {
    list-style: none;
}
.menu-modal-list a, .menu-modal-list button.menu-modal-link-button { /* Target button specifically */
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem;
    color: var(--secondary-text-color);
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    font-size: 1rem;
}
.menu-modal-list a svg, .menu-modal-list button.menu-modal-link-button svg {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent-color); /* Default icon color */
}
.menu-modal-list a:hover, .menu-modal-list button.menu-modal-link-button:hover {
    background-color: #e9ecef;
}
.menu-modal-social-section { /* Wrapper for social links in modal */
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.menu-modal-social-title {
    font-size: 0.75rem;
    color: var(--text-muted-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem; /* Align with link padding */
}

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
    color: white;
    background-color: var(--secondary-color); 
}

/* Print hidden */
@media print {
    .print-hidden {
        display: none !important;
    }
}


/* main_styles.css */

/* ... (previous styles from main_styles_css_refactor - ID: main_styles_css_refactor) ... */
/* Ensure all previous styles are here */

/* --- Section Heading (General) --- */
.section-heading { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary-text-color); 
    margin-bottom: 1.5rem; 
}
@media (min-width: 640px) { 
    .section-heading {
        font-size: 1.875rem; 
    }
}


/* --- Social Share Section --- */
.social-share-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem; /* space between buttons */
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none; /* For <a> tags if used */
    color: white; /* Default text color for buttons with background */
}

.share-button svg {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    margin-right: 0.5rem; /* space between icon and text */
    fill: currentColor; /* Make SVG icon color match button text color */
}
.share-button span {
    line-height: 1; /* Ensure text aligns well with icon */
}

.share-button.facebook { background-color: #1877F2; }
.share-button.facebook:hover { background-color: #166fe5; }

.share-button.twitter { background-color: #1DA1F2; }
.share-button.twitter:hover { background-color: #1a91da; }

.share-button.whatsapp { background-color: #25D366; }
.share-button.whatsapp:hover { background-color: #1ebe57; }

.share-button.reddit { background-color: #FF4500; }
.share-button.reddit:hover { background-color: #e63e00; }

.share-button.telegram { background-color: #0088cc; }
.share-button.telegram:hover { background-color: #007ab8; }

.share-button.copy-link {
    background-color: var(--secondary-color);
    color: white;
}
.share-button.copy-link:hover {
    background-color: #5a6268; /* Darken secondary color */
}

/* --- "Share to Win" Pop-up --- */
.share-to-win-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Start off-screen */
    background-color: var(--accent-color); /* Use accent color or a distinct one */
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000; /* High z-index to be on top */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    text-align: center;
}

.share-to-win-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Ensure the rest of your main_styles.css (ID: main_styles_css_refactor) is present above these additions */
/* For example, the :root variables, body, sidebar, header, content, card styles etc. */
