/*
Theme Name: Moboax Printables
Theme URI: https://moboax.com
Author: Bobym Web Design Agency
Author URI: https://bobym.com
Description: A high-performance, Pinterest-inspired fluid layout for Moboax Printables.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: moboax
*/

:root {
    /* Colors */
    --primary-blue: #0052cc;
    --text-grey: #62625b;
    --black: #000000;
    --bg-white: #ffffff;
    --ad-bg: #f4f4f4;
    --border-color: #efefef;

    /* Sidebar Width */
    --sidebar-width: clamp(70px, 6vw, 90px);

    /* Fluid Typography & Icon Sizing */
    /* clamp(min, preferred, max) */
    --font-base: clamp(14px, 1vw + 10px, 18px);
    --font-heading: clamp(24px, 2.5vw + 15px, 42px);
    --icon-size: clamp(24px, 2vw + 4px, 32px);
    
    --radius-pill: 999px;
    --transition: 0.2s ease-in-out;
}

/* Reset & Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--font-base);
    color: var(--text-grey);
    background-color: var(--bg-white);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--black);
    font-weight: 700;
    line-height: 1.2;
}

/* Layout Wrapper */
.moboax-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Fixed Sidebar */
#side-nav {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #fff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
}

/* Content Area */
#main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Pinterest-like Search Header */
.site-header {
    padding: 15px 30px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
}

/* Fluid Container */
.container-fluid {
    padding: 20px clamp(15px, 4vw, 50px);
}

/* Term Badge Styling */
.term-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 4px 12px 4px 4px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    font-size: 0.85rem;
}

.term-badge img {
    width: 32px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-pill);
    margin-right: 8px;
}

/* Ad Block Styling */
.ad-container {
    background-color: var(--ad-bg);
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #side-nav {
        height: 60px;
        width: 100%;
        bottom: 0;
        top: auto;
        left: 0;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--border-color);
        justify-content: space-around;
        padding: 0;
    }
    #main-content { margin-left: 0; margin-bottom: 60px; }
    .site-header { padding: 10px 15px; }
}

/* Sidebar Icon Navigation */
#side-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    color: #5f6368;
    transition: color var(--transition), background var(--transition);
    border-radius: 12px;
}

.nav-icon:hover {
    color: var(--primary-blue);
    background: #f0f0f0;
}

.logo-icon {
    margin-bottom: 20px;
}

/* Pinterest-style Search Bar */
.pinterest-search {
    flex: 1;
    max-width: 800px;
    margin: 0 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 24px;
    padding: 4px 16px;
    transition: background 0.2s, box-shadow 0.2s;
}

.search-input-group:focus-within {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
    outline: 1px solid var(--primary-blue);
}

.search-input-group select {
    background: transparent;
    border: none;
    font-weight: 600;
    padding: 8px;
    cursor: pointer;
    font-size: 13px;
    border-right: 1px solid #ddd;
    margin-right: 10px;
    outline: none;
}

.search-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 16px;
    outline: none;
}

.search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #5f6368;
    display: flex;
    align-items: center;
}

.site-header {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

/* Footer Styling */
.site-footer {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: auto; /* Pushes footer to bottom in flex container */
    color: var(--text-grey);
    font-size: 13px;
}

.footer-inner {
    padding: 0 clamp(15px, 4vw, 50px);
}

.footer-notice {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-notice p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.footer-notice a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-credit a {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-blue);
}

/* Mobile Adjustments for Footer */
@media (max-width: 768px) {
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}