/* Sidebar Styles */

/* .main-content {
    display: flex;
    gap: 1rem;
    min-height: calc(100vh - 200px);
} */

.posts-container {
    flex: 1;
}

/* Analytics sidebar overlay */
.analytics-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000000;
    opacity: 0;
    visibility: hidden;
}

.analytics-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.analytics-sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-gray);
    border-left: var(--border);
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10000001;
    transform: translateX(100%);
}

.analytics-sidebar.open {
    transform: translateX(0);
}

/* Floating add button positioning */
.floating-add-btn {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 10000000;
}

/* Hide Analytics link on My Page */
body.mypage-page #analyticsLink,
body.mypage-page .header__nav-link[href="#"] {
    display: none !important;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1rem;
    border-bottom: var(--border);
    background-color: var(--neon-yellow);
}

.sidebar-title {
    color: var(--color-black);
}


.sidebar-content {
    padding: 1rem;
}

.analytics-section {
    margin-bottom: 2rem;
    border-bottom: var(--border);
    padding-bottom: 1rem;
}

.analytics-section:last-child {
    border-bottom: none;
}

.section-title {
    color: var(--color-black);
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.metric-label {
    color: var(--color-dark-gray);
}

.metric-value {
    color: var(--color-black);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.info-label {
    color: var(--color-dark-gray);
}

.info-value {
    color: var(--color-black);
}

.recent-posts {
    max-height: 200px;
    overflow-y: auto;
}

.no-activity {
    color: var(--color-dark-gray);
    text-align: center;
    padding: 1rem;
}

/* Data item styling */
.data-item {
    color: var(--color-black);
    margin-bottom: 0.35rem;
    padding: 0;
    line-height: 1.6;
}

.data-item span {
}

/* AI-powered data highlighting with neon yellow underline */
.data-item span.ai-data {
    text-decoration: underline;
    text-decoration-color: var(--neon-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    font-style: italic;
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .analytics-sidebar {
        width: 100vw;
    }
    
    .main-content {
        flex-direction: column;
    }
}
