/* assets/css/main.css */

/* Font faces are loaded dynamically by LensFlow_Font_Manager. */

/* ===== CSS Variables ===== */
:root {
    --mps-font: "AradFD", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mps-brand: #9E835C;
    --mps-brand-hover: #876D49;
    --mps-text: #2B241C;
}

/* ========== GLOBAL RESET (clean + practical) ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--mps-font);
    background: #f5f5f7;
    color: #181818;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Focus style */
:focus-visible {
    outline: 2px solid rgba(158, 131, 92, 0.45);
    outline-offset: 3px;
}

/* Simple helper for messages */
.mps-login-message {
    max-width: 480px;
    margin: 40px auto;
    padding: 14px 16px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
}

/* ========== PROFILE AVATAR UPLOAD (profile widget) ========== */
.mps-profile-info-row-avatar .mps-profile-info-field {
    display: flex;
    align-items: center;
}

.mps-profile-avatar-edit {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mps-profile-avatar-current img {
    width: 64px;
    height: 64px !important;
    border-radius: 16px !important;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18) !important;
}

.mps-avatar-upload-box {
    border-radius: 999px;
    border: 1px dashed #d1d5db;
    padding: 8px 14px;
    background: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease, background 0.18s ease;
}

.mps-avatar-upload-box:hover {
    border-color: #181818;
    background: #f9fafb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.mps-avatar-upload-title {
    font-size: 13px;
    font-weight: 500;
    color: #181818;
}

.mps-avatar-upload-sub {
    font-size: 11px;
    color: #6b7280;
}

.mps-avatar-upload-preview {
    margin-top: 8px;
    display: none;
}

.mps-avatar-upload-preview.is-visible {
    display: block;
}

.mps-avatar-upload-preview img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

/* Prevent scroll when mobile menu open */
body.mps-mobile-menu-open {
    overflow: hidden;
}

/* Desktop nav */
.mps-main-nav--desktop {
    flex: 1;
}

.mps-main-nav--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu base */
.mps-menu,
.mps-footer-nav {
    margin: 0;
    padding: 0;
}

.mps-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
}

.mps-menu li {
    position: relative;
}

.mps-menu>li>a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5b5c5a;
    font-size: 16px;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.mps-menu>li>a:hover {
    color: #181818;
}

/* Dropdown arrow for items with children */
.mps-menu>li.menu-item-has-children>a::after {
    content: "▾";
    font-size: 11px;
    opacity: 0.6;
}

/* Desktop submenu */
.mps-menu ul.sub-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    min-width: 180px;
    padding: 8px 0;
    margin: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 40;
}

.mps-menu li:hover>ul.sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mps-menu ul.sub-menu li a {
    display: block;
    padding: 7px 14px;
    font-size: 14px;
    color: #4b5563;
}

.mps-menu ul.sub-menu li a:hover {
    background: #f3f4f6;
    color: #181818;
}

/* Header actions (button + hamburger) */
.mps-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header button (desktop profile/login) */
.mps-header-button {
    border-radius: 12px;
    border: none;
    padding: 9px 13px;
    font-size: 15px;
    font-weight: 500;
    background: #f5f2ee;
    color: #5b5c5a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease;
}

.mps-header-button:hover {
    box-shadow: 0 4px 8px rgb(0 0 0 / 9%);
    transform: translateY(-1px);
}

/* Avatar inside header button */
.mps-header-button-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgb(15 23 42 / 6%);
}

.mps-header-button-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mps-header-button-name {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Hamburger button (mobile only) */
.mps-hamburger {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #464646;
    transition: background 0.15s ease, transform 0.1s ease;
}

.mps-hamburger i {
    font-size: 28px;
}

.mps-hamburger:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* Mobile header */
.mps-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    border-bottom: 1px solid #f3f4f6;
}

.mps-mobile-logo img {
    height: 32px;
    width: auto;
}

.mps-mobile-close {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #181818;
}

.mps-mobile-close:hover {
    background: #f3f4f6;
}

/* Mobile menu list */
.mps-menu--mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px 14px;
}

.mps-menu--mobile>li>a {
    width: 100%;
    padding: 8px 0;
    font-size: 18px;
}

.mps-menu--mobile ul.sub-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 4px 12px;
    margin-top: 2px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.mps-menu--mobile ul.sub-menu li a {
    padding: 4px 0;
    font-size: 14px;
}

/* Bottom profile section */
.mps-mobile-profile {
    margin-top: auto;
    padding: 14px 18px 18px;
    border-top: 1px solid #f3f4f6;
}

.mps-mobile-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mps-mobile-profile-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.mps-mobile-profile-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mps-mobile-profile-name {
    font-size: 15px;
    font-weight: 600;
    color: #181818;
}

.mps-mobile-profile-sub {
    font-size: 12px;
    color: #6b7280;
}

/* ========== FOOTER ========== */
.mps-site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 18px 20px 26px;
    background: #ffffff;
}

.mps-footer-left {
    font-size: 14px;
    color: #7a7a7a;
}

.mps-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ===== MPS Action Toast (GLOBAL TOP) ===== */
.mps-action-toast-wrap {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 24px));
    z-index: 10001;
    pointer-events: none;
}

.mps-action-toast {
    --mps-toast-accent: #2563eb;
    /* info default */
    --mps-toast-duration: 2800ms;

    pointer-events: auto;
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18);

    opacity: 0;
    transform: translateY(-14px);
    transition: opacity .22s ease, transform .22s ease;
}

.mps-action-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.mps-action-toast__icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: 
color-mix(in srgb, var(--mps-toast-accent) 16%, transparent);
    color: var(--mps-toast-accent);
    flex: 0 0 auto;
    margin-top: -2px;
    margin-bottom: 2px;
}

.mps-action-toast__icon i {
    line-height: 0px;
}

.mps-action-toast__text {
    font-size: 13px;
    line-height: 1.5;
    color: #0f172a;
}

.mps-action-toast__close {
    margin-inline-start: auto;
    border: none;
    background: transparent;
    color: #475569;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 10px;
    line-height: 0;
}

.mps-action-toast__close:hover {
    background: rgba(15, 23, 42, .06);
}

.mps-action-toast__bar {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .08);
    overflow: hidden;
}

.mps-action-toast__bar::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: var(--mps-toast-accent);
    transform-origin: left;
    transform: scaleX(0);
}

.mps-action-toast.is-show .mps-action-toast__bar::after {
    animation: mps-toast-bar var(--mps-toast-duration) linear forwards;
}

@keyframes mps-toast-bar {
    to {
        transform: scaleX(1);
    }
}

/* type colors */
.mps-action-toast[data-type="success"] {
    --mps-toast-accent: #16a34a;
}

.mps-action-toast[data-type="error"] {
    --mps-toast-accent: #dc2626;
}

.mps-action-toast[data-type="warning"] {
    --mps-toast-accent: #d97706;
}

.mps-action-toast[data-type="info"] {
    --mps-toast-accent: #2563eb;
}
/* LensFlow shared Elementor width architecture. */
.elementor-widget[class*="mps-width-mode-"] > .elementor-widget-container {
    min-width: 0;
}
.elementor-widget.mps-width-mode-full > .elementor-widget-container,
.elementor-widget.mps-width-mode-full .mps-widget-width-shell {
    width: 100%;
    max-width: none;
}
.mps-widget-width-shell,
.mps-widget-width-inner {
    box-sizing: border-box;
    min-width: 0;
}
.mps-widget-width-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
}
.mps-widget-width-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-inline: auto;
}
.mps-widget-fullbleed {
    position: relative;
    isolation: isolate;
    overflow: clip;
}
.mps-widget-fullbleed.is-fullbleed {
    width: auto;
    max-width: none;
    margin-inline: min(0px, calc((100% - 100vw) / 2));
}
.mps-widget-fullbleed::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--mps-fullbleed-overlay, transparent);
}
body.elementor-editor-active .mps-widget-fullbleed.is-fullbleed,
.elementor-editor-active .mps-widget-fullbleed.is-fullbleed {
    width: 100%;
    margin-inline: 0;
}
@supports not (overflow: clip) {
    .mps-widget-fullbleed { overflow: hidden; }
}
