/*
Theme Name: Kaisbox Dark Glassy Theme
Theme URI: https://kaisbox.com/
Description: A dark, glassy, and highly mobile-responsive theme for Kaisbox, based on Medium's aesthetic.
Author: Your Name
Author URI: https://kaisbox.com/
Template: hello-elementor
Version: 1.0.3
*/

/* --- CORE DARK GLASSY VARIABLES AND STYLES --- */
:root {
    --color-dark-bg: #1c1c1c; /* Very dark background */
    --color-glass-dark: rgba(40, 40, 40, 0.6); /* Slightly lighter, transparent dark for glass */
    --color-glass-light: rgba(255, 255, 255, 0.15); /* NEW: Light/White Glassy for highlights */
    --color-glass-border: rgba(255, 255, 255, 0.1); /* Subtle white border for highlight */
    --color-text-light: #f5f5f5; /* Light text (White/Off-white) */
    --color-accent: #FFFFFF; /* Primary Accent is now PURE WHITE */
    --header-height: 60px; /* Standard header height */
}

/* 1. Global Dark Background (Ensures Elementor sections don't revert to white) */
body, .elementor-page, #content {
    background-color: var(--color-dark-bg) !important;
    color: var(--color-text-light);
    min-height: 100vh;
}

/* Global Layout and Body Scroll Management */
body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* Adjust for scrollbar gap if necessary */
}

/* Ensure main content is pushed down by the fixed header */
#content {
    padding-top: var(--header-height); /* 60px from :root variable */
    min-height: 100vh;
}
.site-content {
    /* Set a max width for the content area like medium.com */
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0 20px;
}

/* Remove default Elementor/WP margins */
.elementor-section, .elementor-container, .elementor-widget-wrap, .elementor-column-wrap {
    background-color: transparent !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. Text, Links, and Headings */
h1, h2, h3, h4, h5, h6, p, a, button, li {
    color: var(--color-text-light);
}

/* 3. Glassy Card/Section/Modal Style */
.glass-effect {
    background-color: var(--color-glass-dark);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

/* 4. Input Fields for Forms (Login/Register/Search) */
input:not([type="submit"]):not([type="button"]), textarea, select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--color-glass-border) !important;
    color: var(--color-text-light) !important;
    border-radius: 4px !important;
    padding: 10px !important;
}

/* ============================================= */
/* CUSTOM HEADER STYLING */
/* ============================================= */
#custom-main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content-wrapper {
    width: 100%;
    max-width: 1200px;
}

/* --- Logged-Out Header Styles --- */
.logged-out-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-branding a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}
.custom-logo-link img {
    max-height: 30px; /* Adjust logo size */
    width: auto;
}
#header-navigation {
    flex-grow: 1; 
    padding: 0 30px;
}
.header-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-menu-list li {
    margin-right: 20px;
}
.header-menu-list a {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.header-menu-list a:hover {
    opacity: 1;
    color: var(--color-accent);
}
.header-action-link {
    text-decoration: none;
    margin-right: 15px;
    opacity: 0.8;
}
.get-started-btn {
    background-color: transparent;
    color: var(--color-accent); /* White text */
    border: 1px solid var(--color-accent); /* White border */
    padding: 8px 15px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.get-started-btn:hover {
    background-color: var(--color-accent); /* White background */
    color: var(--color-dark-bg); /* Dark text on hover */
    border-color: var(--color-dark-bg); /* Dark border on hover */
}

/* --- Logged-In Header Styles (FIXED ALIGNMENT) --- */
.logged-in-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures branding/toggle is left and actions are right */
    gap: 15px;
    width: 100%; 
}
.menu-toggle-button, .profile-image-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.menu-toggle-button:hover, .profile-image-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ensure branding is grouped on the left with the toggle */
.site-branding {
    margin-right: auto; /* Pushes the next element (Search Form) away */
}

/* FIX: Ensure search form pushes action buttons to the right */
.header-search-form {
    flex-grow: 1; 
    max-width: 400px; /* Increased max width for better desktop look */
    margin: 0 20px; /* Added margin to separate from other elements */
    position: relative;
}
.header-search-form input[type="search"] {
    width: 100%;
    padding-left: 40px !important;
    border-radius: 20px !important;
    height: 38px;
    font-size: 14px;
}
.header-search-form::before {
    content: 'search';
    font-family: 'Material Icons';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    opacity: 0.5;
    pointer-events: none;
    font-size: 20px;
}
.header-action-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 40px;
    transition: background-color 0.2s;
    font-size: 14px;
}
.header-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.write-btn {
    background-color: var(--color-accent); /* White background */
    color: var(--color-dark-bg); /* Dark text */
}
.write-btn:hover {
    background-color: var(--color-glass-light); /* Light Glassy background on hover */
    color: var(--color-text-light); /* White text on hover */
}
.header-action-btn .material-icons {
    margin-right: 5px;
    font-size: 20px;
}
.profile-image-btn img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: block;
}

/* ============================================= */
/* MODAL STYLING */
/* ============================================= */
.kaisbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
    position: relative;
    z-index: 2001;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    opacity: 0.7;
}
.modal-header {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}
/* WP Login/Register Form Styling */
.modal-form-area form p {
    margin-bottom: 15px;
    text-align: left;
}
.modal-form-area label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.7;
}
.modal-form-area input:not([type="submit"]), .modal-form-area textarea {
    width: 100%;
    box-sizing: border-box;
}
/* Submit Button Styling */
.modal-form-area input[type="submit"] {
    width: 100%;
    background-color: var(--color-accent) !important;
    color: var(--color-dark-bg) !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 4px !important;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}
.modal-form-area input[type="submit"]:hover {
    background-color: #38c160 !important;
}
#reg_passmail {
    font-size: 12px;
    text-align: center;
    opacity: 0.6;
}
.modal-footer-link {
    margin-top: 30px;
    font-size: 14px;
}
.modal-footer-link a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================= */
/* SIDEBAR STYLING */
/* ============================================= */
#primary-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 1500;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
#primary-sidebar.active {
    transform: translateX(0);
}
.sidebar-branding {
    padding: 0 20px 20px;
}
.close-sidebar-btn {
    align-self: flex-start;
    padding: 10px 20px;
    opacity: 0.7;
    margin-bottom: 20px;
}
.close-sidebar-btn:hover {
    opacity: 1;
}
.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu-list li {
    padding: 0;
}
.sidebar-menu-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    transition: background-color 0.2s;
    opacity: 0.8;
}
.sidebar-menu-list a:hover,
.sidebar-menu-list .current-menu-item a {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}
.sidebar-menu-list .material-icons {
    margin-right: 15px;
}
.sidebar-extra-links, .sidebar-footer {
    padding: 20px;
    font-size: 14px;
    opacity: 0.6;
}
.find-writers {
    border-top: 1px solid var(--color-glass-border);
    padding-top: 20px;
}
.find-writers .material-icons {
    font-size: 16px;
    vertical-align: middle;
}
.find-writers a {
    display: block;
    color: var(--color-accent);
    margin-top: 5px;
}

/* ============================================= */
/* USER PROFILE POP-UP MENU */
/* ============================================= */
#user-profile-popup {
    position: fixed;
    top: calc(var(--header-height) + 10px); /* Adjusted to sit nicely below header */
    right: 20px;
    width: 250px;
    padding: 15px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
    display: block; 
}
#user-profile-popup.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.profile-info {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}
.profile-info img {
    border-radius: 50%;
    margin-right: 10px;
}
.glassy-divider {
    border: none;
    height: 1px;
    background-color: var(--color-glass-border);
    margin: 10px 0;
}
.user-popup-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.user-popup-menu-list a, .user-popup-logout {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s;
}
.user-popup-menu-list a:hover, .user-popup-logout:hover {
    color: var(--color-accent);
}
.user-popup-logout .material-icons {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 5px;
}
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1499;
    cursor: pointer;
    display: none;
}

/* ============================================= */
/* ANNOUNCEMENT BAR STYLING */
/* ============================================= */
#announcement-bar-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
}
#announcement-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 10px 20px;
    border-radius: 0 0 12px 12px;
    display: none; 
}
.announcement-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
}
.announcement-content p { margin: 0; }
.announcement-content a { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.announcement-content strong { color: var(--color-text-light); }
#close-announcement {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
#close-announcement:hover {
    opacity: 1;
}

/* ============================================= */
/* FOOTER STYLING */
/* ============================================= */
#custom-main-footer {
    padding: 40px 20px;
    margin-top: 50px;
    border-radius: 12px 12px 0 0;
}
.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-glass-border);
}
.site-branding-footer .tagline {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 5px;
}
.site-branding-footer .custom-logo-link img {
    max-height: 35px;
}
#footer-navigation {
    flex-grow: 1; 
    display: flex;
    justify-content: flex-end;
}
.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    font-size: 14px;
}
.footer-menu-list a {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.footer-menu-list a:hover {
    opacity: 1;
    color: var(--color-accent);
}
.footer-bottom {
    padding-top: 20px;
    text-align: center;
}
.copyright {
    font-size: 12px;
    opacity: 0.5;
    margin: 0;
}

/* ============================================= */
/* MOBILE RESPONSIVENESS */
/* ============================================= */
@media (max-width: 768px) {
    /* Header Adjustments */
    #header-navigation {
        display: none;
    }
    .logged-out-container {
        justify-content: space-around;
        gap: 10px;
    }
    .header-action-link {
        margin-right: 0;
    }

    /* Logged-In Header Adjustments */
    .logged-in-container {
        gap: 10px;
    }
    .write-btn .action-text { /* Hides the word 'Write' */
        display: none; 
    }
    .write-btn span.material-icons {
        margin-right: 0;
    }
    .write-btn {
        padding: 8px; /* Square button */
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
    }
    .header-search-form {
        max-width: 150px;
        margin: 0 5px; /* Adjust margin for mobile */
    }
    .modal-content {
        padding: 20px;
    }

    /* Sidebar Adjustments */
    #primary-sidebar {
        width: 80vw;
    }

    /* Footer Adjustments */
    #custom-main-footer {
        padding: 30px 15px;
        margin-top: 30px;
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .site-branding-footer {
        margin-bottom: 20px;
    }
    #footer-navigation {
        justify-content: center;
        width: 100%;
    }
    .footer-menu-list {
        justify-content: center;
        gap: 10px 20px;
    }
}

/* --- CRITICAL FIX: HIDE SIDEBAR CLOSE BUTTON TEXT --- */
/* This targets the close button and hides any content that is not the icon itself. */
#primary-sidebar .close-sidebar-btn {
    width: 30px !important; /* Forces the button width to fit only the icon */
    padding: 5px !important; /* Ensures padding is only around the icon */
    text-align: center !important;
    overflow: hidden !important; /* Hides any overflowing text */
    white-space: nowrap !important; /* Prevents text from wrapping */
}
/* Explicitly hide the <span> containing the text */
#primary-sidebar .close-sidebar-btn > span:not(.material-icons) {
    display: none !important;
}

/* Ensure the icon itself is centered */
#primary-sidebar .close-sidebar-btn .material-icons {
    margin: 0 !important;
}

/* --- MOBILE HEADER ADJUSTMENTS (768px and below) --- */
@media (max-width: 768px) {
    
    /* 1. HIDE LOGGED-OUT SIGN IN BUTTON */
    /* Target the specific Sign In link in the logged-out header */
    .logged-out-container .header-action-link#signin-modal-trigger {
        display: none !important;
    }

    /* 2. LOGGED-IN MOBILE HEADER CLEANUP */
    /* Hide the Search Form on mobile in the header */
    .logged-in-container .header-search-form {
        display: none !important;
    }
    
    /* Hide the Notification Icon on mobile in the header */
    .logged-in-container .notify-btn {
        display: none !important;
    }
}

/* --- MOBILE SIDEBAR SEARCH FORM (NEW REQUIREMENT) --- */
/* The search form HTML doesn't exist in the sidebar yet, so we need to add it 
   via PHP first, but here is the CSS for future use: */
/*
#primary-sidebar .mobile-search-form-wrapper {
    padding: 20px;
}
#primary-sidebar .mobile-search-form-wrapper .header-search-form input {
    border-radius: 4px !important;
    padding-left: 10px !important;
}
#primary-sidebar .mobile-search-form-wrapper .header-search-form::before {
    display: none;
}
*/

/* --- CRITICAL ICON & COLOR UNIFORMITY FIXES --- */

/* 1. Standardize All Header Icon Buttons (Hamburger, Notification, Profile) */
.menu-toggle-button, 
.notify-btn, /* Targetting the notification button */
.profile-image-btn {
    background: none !important; /* Remove any default background color */
    border: none !important;
    color: var(--color-text-light) !important; /* Ensure icons are white */
    cursor: pointer;
    /* Ensure the button is a perfect circle and centered */
    padding: 8px !important; /* Standardized padding */
    border-radius: 50% !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s;
}

/* Uniform Hover State for All Header Icons */
.menu-toggle-button:hover, 
.notify-btn:hover,
.profile-image-btn:hover {
    background-color: var(--color-glass-light) !important; /* Use the light glassy highlight on hover */
}

/* 2. Fix Sidebar Close Button Background/Size */
#primary-sidebar .close-sidebar-btn {
    /* Ensure the button is small, uniform, and centered */
    width: 30px !important; 
    height: 30px !important;
    padding: 0 !important;
    margin: 0 20px 20px auto !important; /* Moves button to far right of header area */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border-radius: 50% !important;
}
#primary-sidebar .close-sidebar-btn:hover {
    background-color: var(--color-glass-light) !important;
}

/* 3. Fix Sidebar Menu Item/Link Color (Purple fix) */
.sidebar-menu-list a {
    /* This ensures the link text color uses the default text color, not an old purple link color */
    color: var(--color-text-light) !important; 
    text-decoration: none !important;
    transition: background-color 0.2s;
    opacity: 0.9;
}
.sidebar-menu-list a .material-icons {
    /* Ensure the icon color is also white */
    color: var(--color-text-light) !important;
}
/* Ensure the hover background uses the glassy color */
.sidebar-menu-list a:hover,
.sidebar-menu-list .current-menu-item a {
    background-color: var(--color-glass-light) !important; /* Light glassy background on selection/hover */
}

/* 4. Ensure Notification Icon Itself is White */
.notify-btn .material-icons {
    color: var(--color-text-light) !important;
}

/* ============================================= */
/* SINGLE POST STYLING (MEDIUM.COM LOOK) */
/* ============================================= */
.site-main {
    max-width: 700px; /* Medium's content width */
    margin: 0 auto;
    padding-top: 50px; /* Space from header */
    background-color: var(--color-dark-bg); /* Ensure dark background */
}

/* Article Header */
.entry-header {
    text-align: left;
    margin-bottom: 40px;
}
.post-categories {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.7;
}
.post-categories .category-tag {
    color: var(--color-text-light); /* White */
    text-decoration: none;
    margin-right: 10px;
    background-color: var(--color-glass-light); /* Light glassy tag background */
    padding: 5px 10px;
    border-radius: 20px;
}
.entry-title {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--color-text-light);
}
.entry-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Author Info */
.post-meta-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    border-bottom: 1px solid var(--color-glass-border); /* Separator */
    padding-bottom: 20px;
}
.author-info {
    display: flex;
    align-items: center;
}
.author-info .avatar {
    border-radius: 50%;
    margin-right: 15px;
    width: 48px;
    height: 48px;
}
.author-details {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-light);
}
.post-date {
    font-size: 14px;
    color: var(--color-text-light);
    opacity: 0.7;
}

/* Entry Content */
.entry-content {
    line-height: 1.8;
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 60px;
}
.entry-content p, .entry-content li {
    color: var(--color-text-light);
    margin-bottom: 1.5em;
}
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    color: var(--color-text-light);
    margin-top: 2em;
    margin-bottom: 1em;
}

/* Post Bottom Interaction Bar */
.post-bottom-interaction-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
    margin-bottom: 40px;
}
.post-bottom-interaction-bar .left-actions,
.post-bottom-interaction-bar .right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.post-bottom-interaction-bar button {
    background: none;
    border: none;
    color: var(--color-text-light);
    opacity: 0.8;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: opacity 0.2s, background-color 0.2s;
    display: flex; /* For icon centering */
    align-items: center;
    justify-content: center;
}
.post-bottom-interaction-bar button:hover {
    opacity: 1;
    background-color: var(--color-glass-light);
}
.post-bottom-interaction-bar .material-icons {
    font-size: 20px;
    color: var(--color-text-light);
}
.likes-count, .comment-count {
    font-size: 14px;
    color: var(--color-text-light);
    opacity: 0.7;
}

/* Comments Section */
.comments-area {
    margin-top: 60px;
    padding-bottom: 80px;
}
.comments-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--color-text-light);
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-body {
    background-color: var(--color-glass-dark);
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.comment-author.vcard {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.comment-author.vcard img.avatar {
    border-radius: 50%;
    margin-right: 10px;
    width: 32px;
    height: 32px;
}
.comment-meta {
    display: flex;
    flex-direction: column;
}
.comment-meta cite.fn {
    font-weight: 600;
    color: var(--color-text-light);
    font-style: normal;
}
.comment-meta a time {
    font-size: 12px;
    color: var(--color-text-light);
    opacity: 0.6;
    text-decoration: none;
}
.comment-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-top: 15px;
}
.comment-interaction {
    font-size: 13px;
    margin-top: 15px;
    opacity: 0.7;
}
.comment-interaction .reply a, .comment-interaction a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 10px;
}
.comment-interaction .reply a:hover, .comment-interaction a:hover {
    color: var(--color-accent);
}
.no-comments {
    text-align: center;
    opacity: 0.7;
}
.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-text-light);
}
.comment-form-comment textarea {
    background-color: var(--color-glass-dark) !important;
    border: 1px solid var(--color-glass-border) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    color: var(--color-text-light) !important;
    width: 100% !important;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
}
.comment-form-comment textarea::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}
#commentform .submit {
    background-color: var(--color-accent) !important; /* White */
    color: var(--color-dark-bg) !important; /* Dark text */
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
#commentform .submit:hover {
    background-color: var(--color-glass-light) !important; /* Light glassy */
    color: var(--color-text-light) !important; /* White text */
}
.logged-in-as {
    color: var(--color-text-light);
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 20px;
}
.logged-in-as a {
    color: var(--color-accent); /* White */
}

/* View More Comments Button */
.view-more-comments-button {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    background-color: transparent;
    border: 1px solid var(--color-accent); /* White border */
    color: var(--color-accent); /* White text */
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}
.view-more-comments-button:hover {
    background-color: var(--color-accent);
    color: var(--color-dark-bg);
}

/* Mobile adjustments for single post */
@media (max-width: 768px) {
    .site-main {
        padding-top: 30px;
    }
    .entry-title {
        font-size: 32px;
    }
    .entry-subtitle {
        font-size: 18px;
    }
}

/* ============================================= */
/* COMMENTS SIDEBAR STYLING (RIGHT SIDEBAR) */
/* ============================================= */
#comments-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px; /* Width of the comments sidebar */
    height: 100vh;
    z-index: 2500; /* Higher than primary sidebar */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: 0; /* Remove rounded corners */
    border-left: 1px solid var(--color-glass-border);
}
#comments-sidebar.active {
    transform: translateX(0);
}
#comments-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2499;
    cursor: pointer;
    display: none;
}
body.comments-sidebar-open {
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-glass-border);
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 20px;
    margin: 0;
    color: var(--color-text-light);
}
.close-comments-sidebar-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.close-comments-sidebar-btn:hover {
    background-color: var(--color-glass-light);
}

.sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
}
.sidebar-comment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-glass-border);
}
.sidebar-submit-btn {
    margin-top: 10px !important;
    float: right;
}

/* Style for the comment items inside the sidebar */
#comments-sidebar .comment-list {
    padding-top: 10px;
    padding-bottom: 20px;
}
/* Revert comment style inside sidebar to a cleaner look if desired */
#comments-sidebar .comment-body {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}
#comments-sidebar .comment-content {
    margin-left: 42px; /* Align content with author name */
}

/* ============================================= */
/* SHARE MODAL STYLING */
/* ============================================= */
.share-modal-content {
    max-width: 350px;
    padding: 20px;
}
.share-links {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.share-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--color-text-light);
    transition: opacity 0.2s;
    border-bottom: 1px solid var(--color-glass-border);
}
.share-link:last-child {
    border-bottom: none;
}
.share-link:hover {
    opacity: 0.8;
}
.share-link .material-icons {
    margin-right: 10px;
    font-size: 20px;
}
.share-link-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}
#share-link-input {
    flex-grow: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px !important;
}
#copy-link-btn {
    flex-shrink: 0;
    padding: 8px 15px !important;
    font-size: 14px;
}
.copy-success-message {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-dark-bg);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* Like Button Visual State */
.like-button.liked {
    color: var(--color-accent) !important; /* White color when liked */
}
.like-button.liked .material-icons {
    color: var(--color-accent) !important;
}

/* ============================================= */
/* FLOATING INTERACTION BAR STYLING (MEDIUM STYLE) */
/* ============================================= */
#floating-interaction-bar {
    position: fixed;
    bottom: 100px; /* Positioned above the footer */
    left: 50%;
    transform: translateX(-50%) translateX(-450px); /* Center and push left by half of content width (700px/2) + extra offset (100px) */
    /*
     * Explanation: The bar is centered, then moved left by half the content
     * width (350px) plus an additional 100px offset to place it in the margin.
     * Total translation: -450px
     */

    z-index: 500;
    padding: 15px 0;
    width: 50px; /* Width for the icons */

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    border-radius: 40px; /* Pill shape */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

    /* Visibility control (default hidden) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#floating-interaction-bar.visible {
    opacity: 1;
    visibility: visible;
}

.floating-actions-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#floating-interaction-bar button {
    /* Inherits styles from .post-bottom-interaction-bar button */
    padding: 5px;
}

.floating-divider {
    width: 60%;
    height: 1px;
    background-color: var(--color-glass-border);
    margin: 5px 0;
}

/* Hide on screens smaller than 900px */
@media (max-width: 900px) {
    #floating-interaction-bar {
        display: none !important;
    }
}


