/**
 * File:     style.css
 * Location: wptruss/blocks/simple-footer/style.css
 * Purpose:  Frontend and editor styles for wptruss/simple-footer.
 *
 * @package  wpTruss
 * Encoding: UTF-8 without BOM
 */

/* ══════════════════════════════════════════════════════════════════
   BLOCK ROOT
   ══════════════════════════════════════════════════════════════════ */

.tp-simple-footer {
    background-color: var(--tp-block-bg, transparent);
    padding: var(--tp-block-padding, var(--wpt-spacing-3xl));
    margin-bottom: var(--tp-block-mb, 0);
    box-sizing: border-box;
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════════
   INNER LAYOUT
   ══════════════════════════════════════════════════════════════════ */

.tp-simple-footer__inner {
    max-width: var(--tp-container-default, 1200px);
    margin-inline: auto;
    padding-inline: var(--wpt-spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wpt-spacing-xl);
}

/* ══════════════════════════════════════════════════════════════════
   LOGO
   ══════════════════════════════════════════════════════════════════ */

.tp-simple-footer__logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tp-simple-footer__logo {
    height: auto;
    display: block;
    max-width: 100%;
}

.tp-simple-footer__logo-text {
    font-family: var(--wpt-font-heading);
    font-size: var(--wpt-text-2xl);
    font-weight: var(--wpt-font-bold);
    color: var(--wpt-color-light);
}

.tp-simple-footer__logo-placeholder {
    font-family: var(--wpt-font-heading);
    font-size: var(--wpt-text-lg);
    color: var(--wpt-color-muted);
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════
   PRIMARY NAVIGATION
   ══════════════════════════════════════════════════════════════════ */

.tp-simple-footer__nav {
    width: 100%;
}

.tp-simple-footer__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--wpt-spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-simple-footer__menu-item {
    margin: 0;
    padding: 0;
}

.tp-simple-footer__menu-link {
    font-family: var(--wpt-font-body);
    font-size: var(--wpt-text-base);
    font-weight: var(--wpt-font-medium);
    color: var(--wpt-color-light);
    text-decoration: none;
    padding: var(--wpt-spacing-xs) 0;
    display: inline-block;
}

.tp-simple-footer__menu-link:hover {
    color: var(--wpt-color-primary);
}

.tp-simple-footer__menu-link:focus-visible {
    outline: 2px solid var(--wpt-color-primary);
    outline-offset: 2px;
}

.tp-simple-footer__menu-placeholder {
    font-family: var(--wpt-font-body);
    font-size: var(--wpt-text-sm);
    color: var(--wpt-color-muted);
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════════════════════════════ */

.tp-simple-footer__divider {
    width: 100%;
    max-width: var(--tp-container-wide, 1400px);
    border: none;
    border-top: 1px solid var(--wpt-color-border);
    margin: 0;
    opacity: 0.3;
}

/* ══════════════════════════════════════════════════════════════════
   COPYRIGHT BAR
   ══════════════════════════════════════════════════════════════════ */

.tp-simple-footer__copyright {
    width: 100%;
    max-width: var(--tp-container-wide, 1400px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--wpt-spacing-md);
}

.tp-simple-footer__copyright-text {
    font-family: var(--wpt-font-body);
    font-size: var(--wpt-text-sm);
    color: var(--wpt-color-muted);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   SECONDARY NAVIGATION (Copyright Bar)
   ══════════════════════════════════════════════════════════════════ */

.tp-simple-footer__secondary-nav {
    display: flex;
    align-items: center;
}

.tp-simple-footer__secondary-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: var(--wpt-spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-simple-footer__secondary-item {
    margin: 0;
    padding: 0;
}

.tp-simple-footer__secondary-link {
    font-family: var(--wpt-font-body);
    font-size: var(--wpt-text-sm);
    font-weight: var(--wpt-font-medium);
    color: var(--wpt-color-muted);
    text-decoration: none;
    padding: var(--wpt-spacing-xs) 0;
    display: inline-block;
}

.tp-simple-footer__secondary-link:hover {
    color: var(--wpt-color-light);
}

.tp-simple-footer__secondary-link:focus-visible {
    outline: 2px solid var(--wpt-color-primary);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════
   BACKGROUND MODIFIER CLASSES
   ══════════════════════════════════════════════════════════════════ */

.wpt-simple-footer--bg-surface   { --tp-block-bg: var(--wpt-color-surface)   !important; }
.wpt-simple-footer--bg-light     { --tp-block-bg: var(--wpt-color-light)     !important; }
.wpt-simple-footer--bg-primary   { --tp-block-bg: var(--wpt-color-primary)   !important; }
.wpt-simple-footer--bg-secondary { --tp-block-bg: var(--wpt-color-secondary) !important; }
.wpt-simple-footer--bg-accent    { --tp-block-bg: var(--wpt-color-accent)    !important; }
.wpt-simple-footer--bg-dark      { --tp-block-bg: var(--wpt-color-dark)      !important; }

/* Text color adjustments for light backgrounds */
.wpt-simple-footer--bg-light .tp-simple-footer__menu-link,
.wpt-simple-footer--bg-surface .tp-simple-footer__menu-link {
    color: var(--wpt-color-dark);
}

.wpt-simple-footer--bg-light .tp-simple-footer__menu-link:hover,
.wpt-simple-footer--bg-surface .tp-simple-footer__menu-link:hover {
    color: var(--wpt-color-primary);
}

.wpt-simple-footer--bg-light .tp-simple-footer__secondary-link,
.wpt-simple-footer--bg-surface .tp-simple-footer__secondary-link {
    color: var(--wpt-color-muted);
}

.wpt-simple-footer--bg-light .tp-simple-footer__secondary-link:hover,
.wpt-simple-footer--bg-surface .tp-simple-footer__secondary-link:hover {
    color: var(--wpt-color-dark);
}

.wpt-simple-footer--bg-light .tp-simple-footer__copyright-text,
.wpt-simple-footer--bg-surface .tp-simple-footer__copyright-text {
    color: var(--wpt-color-muted);
}

.wpt-simple-footer--bg-light .tp-simple-footer__logo-text,
.wpt-simple-footer--bg-surface .tp-simple-footer__logo-text {
    color: var(--wpt-color-dark);
}

/* ══════════════════════════════════════════════════════════════════
   SPACING MODIFIER CLASSES
   ══════════════════════════════════════════════════════════════════ */

/* Block padding */
.wpt-simple-footer--padding-none { --tp-block-padding: 0                      !important; }
.wpt-simple-footer--padding-xs   { --tp-block-padding: var(--wpt-spacing-xs)  !important; }
.wpt-simple-footer--padding-sm   { --tp-block-padding: var(--wpt-spacing-sm)  !important; }
.wpt-simple-footer--padding-md   { --tp-block-padding: var(--wpt-spacing-md)  !important; }
.wpt-simple-footer--padding-lg   { --tp-block-padding: var(--wpt-spacing-lg)  !important; }
.wpt-simple-footer--padding-xl   { --tp-block-padding: var(--wpt-spacing-xl)  !important; }
.wpt-simple-footer--padding-2xl  { --tp-block-padding: var(--wpt-spacing-2xl) !important; }
.wpt-simple-footer--padding-3xl  { --tp-block-padding: var(--wpt-spacing-3xl) !important; }
.wpt-simple-footer--padding-4xl  { --tp-block-padding: var(--wpt-spacing-4xl) !important; }

/* Spacing below block */
.wpt-simple-footer--mb-none { --tp-block-mb: 0                      !important; }
.wpt-simple-footer--mb-xs   { --tp-block-mb: var(--wpt-spacing-xs)  !important; }
.wpt-simple-footer--mb-sm   { --tp-block-mb: var(--wpt-spacing-sm)  !important; }
.wpt-simple-footer--mb-md   { --tp-block-mb: var(--wpt-spacing-md)  !important; }
.wpt-simple-footer--mb-lg   { --tp-block-mb: var(--wpt-spacing-lg)  !important; }
.wpt-simple-footer--mb-xl   { --tp-block-mb: var(--wpt-spacing-xl)  !important; }
.wpt-simple-footer--mb-2xl  { --tp-block-mb: var(--wpt-spacing-2xl) !important; }
.wpt-simple-footer--mb-3xl  { --tp-block-mb: var(--wpt-spacing-3xl) !important; }
.wpt-simple-footer--mb-4xl  { --tp-block-mb: var(--wpt-spacing-4xl) !important; }

/* ══════════════════════════════════════════════════════════════════
   DEVICE VISIBILITY MODIFIER CLASSES
   ══════════════════════════════════════════════════════════════════ */

@media ( max-width: 640px ) {
    .wpt-hide-mobile {
        display: none !important;
    }

    .tp-simple-footer__copyright {
        flex-direction: column;
        text-align: center;
        gap: var(--wpt-spacing-sm);
    }

    .tp-simple-footer__secondary-menu {
        justify-content: center;
    }

    .tp-simple-footer__menu {
        gap: var(--wpt-spacing-md);
    }
}

@media ( min-width: 641px ) and ( max-width: 1024px ) {
    .wpt-hide-tablet {
        display: none !important;
    }
}

@media ( min-width: 1025px ) {
    .wpt-hide-desktop {
        display: none !important;
    }
}
