﻿/* FanWorx Base Styles */
/* Part of unified theme system - Contains base HTML and layout styles */

/* ============================================
   BASE STYLES
   ============================================ */

html {
    font-size: 10px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 22px;
    }
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Message footer text - also uses main text color */
.message-author,
.message-date,
.message-footer span,
.message-footer time,
.meta,
small {
    color: var(--color-text) !important;
}

/* ============================================
   LAYOUT - Structural Board
   ============================================ */

.container {
    max-width: 100%;
}

@media (min-width: 768px) {
    .container {
        max-width: 108.57rem;
    }
}

/* Structural board that cards sit on */
main,
.content-board {
    background-color: var(--color-structural);
    padding: 2rem 1rem;
    min-height: calc(100vh - 8.57rem);
    position: relative;
}

/* Embedded board - for content within pages */
.embedded-board {
    background-color: var(--color-structural);
    padding: 1rem;
    border-radius: 8px;
}

.Forum-layout {
    padding: 1rem;
}

.Forum-container {
    display: flex;
    gap: 2rem;
    max-width: 108.57rem;
    margin: 0 auto;
}

.Forum-sidebar {
    flex: 0 0 7.14rem;
    min-width: 0;
}

.Forum-balancer {
    flex: 0 0 28.57rem;
    min-width: 0;
}

.Forum-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .Forum-container {
        flex-direction: column;
        gap: 0.5rem;
        max-width: 100%;
    }

    .Forum-sidebar,
    .Forum-balancer {
        flex: none;
    }

    .Forum-balancer {
        display: none;
    }
}

/* Generic page layout classes (duplicated for reusability) */
.page-layout {
    padding: 1rem;
}

.page-container {
    display: flex;
    gap: 2rem;
    max-width: 108.57rem;
    margin: 0 auto;
}

.page-sidebar {
    flex: 0 0 7.14rem;
    min-width: 0;
}

.page-balancer {
    flex: 0 0 28.57rem;
    min-width: 0;
}

.page-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
        gap: 0.5rem;
        max-width: 100%;
    }

    .page-sidebar,
    .page-balancer {
        flex: none;
    }

    .page-balancer {
        display: none;
    }
}

/* Generic page header classes */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

    .page-header .page-title {
        margin: 0;
    }

.page-header-actions {
    display: flex;
    gap: 1rem;
}

/* Latest posts navigation buttons */
.latest-posts-button-mobile {
    display: none;
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
}

.latest-posts-button-desktop {
    display: inline-block;
}

@media (max-width: 768px) {
    .latest-posts-button-mobile {
        display: block;
    }

    .latest-posts-button-desktop {
        display: none;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.border-top {
    border-top: 1px solid var(--color-accent-divider) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--color-accent-divider) !important;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem var(--color-shadow-light);
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.bg-footer {
    background: linear-gradient(110deg, var(--color-structural) 60%, var(--color-content) 60%);
}

/* Scrollbar styling - Standards compliant */
.message-content {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-muted) var(--color-structural);
}
