/* ============================================================================
   SSR-SPECIFIC OVERRIDES
   Minimal overrides for published pages using Vue app CSS
============================================================================ */

/* Dark mode HTML background */
html.dark-mode {
    background-color: black !important;
}

/* Body fixes for 404 page */
body.published-page {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important; /* Remove Vue app gap */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Smooth theme transitions */
body,
html,
.published-content,
.content-container,
.navbar,
.logo,
header,
.tab-container,
.tab,
h1, h2, h3, h4, h5, h6,
p, div, span {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Hide breadcrumb for now - will be added later */
.published-page .breadcrumbTopContainer {
    display: none !important;
}

/* Published page layout */
.published-content {
    margin-left: 83px; /* Account for Vue app sidebar */
    margin-top: 0; /* No breadcrumb offset for now */
    padding: 20px;
    min-height: 100vh;
}

/* 404 page containers */
.main-container {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden;
}

.page-content {
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 404 page layout - with navbar */
.error-page {
    margin-left: 83px !important; /* Account for navbar */
    padding: 20px;
    height: 100vh !important; /* Use height instead of min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.error-page * {
    text-align: center !important;
}

@media (max-width: 750px) {
    .error-page {
        margin-left: 0 !important;
        margin-bottom: 70px; /* Account for mobile bottom nav */
        height: calc(100vh - 70px) !important; /* Subtract mobile nav height */
    }
}

/* Mobile responsive */
@media (max-width: 750px) {
    .published-content {
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 70px; /* Account for mobile bottom nav */
        padding: 10px;
    }
}

/* Content container styling */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
}

/* Published page title */
.published-page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-grey);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: var(--font-family-title);
    text-align: left;
}

.dark-mode .published-page-title {
    color: var(--light-grey);
}

/* Page description */
.page-description {
    font-size: 1.2rem;
    color: var(--medium-grey);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

.dark-mode .page-description {
    color: var(--light-grey);
}

/* Content styling */
.published-page-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-grey);
}

.dark-mode .published-page-content {
    color: var(--light-grey);
}

/* Content headings - all left aligned */
.content-heading,
.published-page h1,
.published-page h2,
.published-page h3,
.published-page h4,
.published-page h5,
.published-page h6 {
    color: var(--dark-grey);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    font-family: var(--font-family-title);
    text-align: left;
}

.dark-mode .content-heading,
.dark-mode .published-page h1,
.dark-mode .published-page h2,
.dark-mode .published-page h3,
.dark-mode .published-page h4,
.dark-mode .published-page h5,
.dark-mode .published-page h6 {
    color: var(--light-grey);
}

/* Content images */
.content-image {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Back to app link */
.back-to-app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pale-green-dark);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--pale-green-dark);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.back-to-app-link:hover {
    background-color: var(--pale-green-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.dark-mode .back-to-app-link {
    color: var(--pale-green);
    border-color: var(--pale-green);
}

.dark-mode .back-to-app-link:hover {
    background-color: var(--pale-green);
    color: var(--dark-grey);
}

/* Font size overrides - 14px for text elements */
.published-content .content-container p,
.published-content .published-page-content p,
.published-page .published-content p {
    font-size: 14px;
}

.published-content .content-container ul li,
.published-content .published-page-content ul li,
.published-page .published-content ul li {
    font-size: 14px;
}

.published-content .content-container ol li,
.published-content .published-page-content ol li,
.published-page .published-content ol li {
    font-size: 14px;
}
