/* Base Theme CSS for LinguWhee to match index_homepage styling */


/* Basic Structure */
body {
    margin: 0;
    font-family: var(--font-heebo);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.5;
}

.body-wrap {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    background-color: var(--bg-white) !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

.boxed-container {
    margin-left: 20px ;
    max-width: 90% ;
    box-shadow: 0 16px 48px rgba(0,0,0,0.05) ;
    padding: 0 ;
}

/* High-level Layout Containers */
.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.site-header {
    position: relative;
    padding: 0;
    background-color: var(--bg-white);
    height: 130px !important;
    z-index: 100;
}

.site-header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100% !important;
    padding-left: 24px;
}

.header-brand {
    margin-right: auto;
}

.header-brand img {
    width: 180px !important; /* Increased from 120px */
    height: auto;
    margin-left: 0 !important;
}

.header-logo-image {
    margin-left: 0 !important;
    margin-bottom: 40px !important;
    width: 120px !important;
    height: auto !important;
}

/* Mobile Menu */
.toc-hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toc-hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.toc-hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.toc-hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.toc-hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Site Content Layout */
.site-content {
    display: block;
    min-height: calc(100vh - var(--header-height));
    position: relative;
    background-color: var(--bg-white);
    max-width: none;
}

/* Auth Section - only hide auth outside of tocPanel */
.site-content > .auth-buttons-container {
    display: none;
}

.mobile-auth {
    display: none;
}

/* Ensure tocPanel auth buttons are visible */
.tocPanel .auth-buttons-container {
    display: block !important;
}

.tocPanel .auth-buttons {
    display: flex !important;
}

/* Main Content Area */
.mainContentContainer {
    margin-left: 19rem;
    padding: 32px;
    background-color: var(--bg-white);
    min-height: 100vh;
    max-width: calc(100% - 19rem);
    width: calc(100% - 19rem);
}

/* Buy Me Coffee Widget */
.bmc-widget-container {
    position: fixed;
    z-index: 1000;
    bottom: 20px;
    right: 20px;
}

/* Remove old TOC styles that conflict - but keep tocPanel logo visible */
.site-content > .toc-logo,
.site-content .tocContent,
.site-content .tocSection,
.site-content .tocDivider {
    display: none;
}


/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    /* Header */
    .site-header {
        height: 100px !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    .site-header-inner {}
    .header-brand {}
    
    .header-brand img {
        width: 100px !important;
    }
    .header-logo-image {}
    
    .toc-hamburger-menu {
        display: flex;
    }
    .toc-hamburger-menu span {}
    .toc-hamburger-menu.active span:nth-child(1) {}
    .toc-hamburger-menu.active span:nth-child(2) {}
    .toc-hamburger-menu.active span:nth-child(3) {}
    
    /* TOC Panel */
    .toc-logo {}
    
    .toc-logo img {
        width: 100px !important;
    }
    .tocContent {}
    .tocSection {}
    .tocButton {}
    .tocButton:hover {}
    .tocTable {}
    .tocRow {}
    .tocCell {}
    .tocCell:first-child {}
    .tocCell:last-child {}
    .toc-plusSign {}
    .toc-subMenu {}
    .tocLink {}
    .tocLink:hover {}
    .tocLink.active {}

    
    /* Show mobile auth */
    .tocPanel .auth-buttons-container {
        display: none !important; /* Hide auth in mobile sidebar since it's in mobile header */
    }
    
    /* Main Content */
    .site-content {
        flex-direction: column;
        max-width: 100%;
    }
    
    .mainContentContainer {
        padding: 16px;
        margin-top: 60px;
        margin-left: 0;
        max-width: 100%;
        width: 100%;
    }
    
    /* Buy Me Coffee Widget */
    .bmc-widget-container {
        display: none; /* Hide on mobile */
    }

    /* Mobile Container */
    .container {
        padding: 0 16px;
    }
    body {}
    
    /* Override boxed-container styles for mobile */
    .body-wrap {}
    
    .boxed-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    /* Mobile Utility Classes */
    .has-animations .is-revealing {}
    .is-boxed {}
    .has-top-divider {}
    .has-top-divider::before {}
    .screen-reader-text {}

    /* Mobile Footer */
    .site-footer {}
    .site-footer-inner {}
    .footer-brand {}
    .footer-brand img {}
    .footer-brand .asset-light,
    .footer-brand .asset-dark {}
    .footer-links {}
    .footer-links a {}
    .footer-links a:hover {}
    .footer-social-links {}
    .footer-copyright {}
}

/* UTILITY CLASSES */
.has-animations .is-revealing {
    visibility: hidden;
}

.is-boxed {
    background-color: #f5f5f5;
}

.has-top-divider {
    position: relative;
}

.has-top-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Footer Styles */
.site-footer {
    padding: var(--footer-padding) 0;
    background-color: var(--bg-white);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-brand img {
    width: 120px;
    height: auto;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.footer-brand .asset-light,
.footer-brand .asset-dark {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-social-links {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    gap: 16px;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    margin-top: 24px;
} 