/**
 * DAF Marketplace — Footer Styling
 * Location: /wp-content/plugins/daf-marketplace/assets/css/footer.css
 *
 * Purpose:
 * - Global plugin-based footer styling
 * - Premium support CTA section
 * - Footer nav columns
 * - Tablet/mobile accordion styling
 * - Payment styles removed
 */

.daf-mp-footer {
    margin-top: 64px;
    color: #ffffff;
    background: #0b2521;
}

.daf-mp-footer,
.daf-mp-footer *,
.daf-mp-footer *::before,
.daf-mp-footer *::after {
    box-sizing: border-box;
}

.daf-mp-footer .daf-mp-container {
    width: min(100%, 1400px);
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 26px;
    padding-right: 26px;
}

/* =========================================================
   Support & Updates
   ========================================================= */

.daf-mp-footer-support {
    position: relative;
    padding-top: 12px;
    padding-bottom: 12px;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 85% 10%, rgba(10, 95, 61, 0.24) 0%, rgba(10, 95, 61, 0) 34%),
        linear-gradient(135deg, #95c93d 0%, #85b934 48%, #6ea02c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(5, 46, 22, 0.22);
    overflow: hidden;
}

.daf-mp-footer-support__toggle {
    display: none;
}

.daf-mp-footer-support__panel {
    display: block;
}

.daf-mp-footer-support__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
    align-items: center;
    gap: 30px;
    min-height: 104px;
}

.daf-mp-footer-support__content {
    min-width: 0;
}

.daf-mp-footer-support__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.daf-mp-footer-support__title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.15vw, 2.12rem);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 12px rgba(6, 59, 35, 0.18);
}

.daf-mp-footer-support__text {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.daf-mp-footer-support__features {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.daf-mp-footer-support__features li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    color: #ffffff;
    background: rgba(10, 95, 61, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(7, 54, 31, 0.12);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.daf-mp-footer-support__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: #0c5b38;
    background: #ffffff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.daf-mp-footer-support__form-area {
    width: 100%;
    min-width: 0;
}

.daf-mp-footer-support__form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 50px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 15px;
    background: rgba(11, 37, 33, 0.18);
    box-shadow: 0 12px 24px rgba(12, 46, 29, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.daf-mp-footer-support__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 40px;
    margin: 0 !important;
    padding: 0 132px 0 14px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 650;
    line-height: 40px;
}

.daf-mp-footer-support__input::placeholder {
    color: rgba(255, 255, 255, 0.78);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78);
}

.daf-mp-footer-support__button,
.daf-mp-footer-support__button.daf-mp-btn,
.daf-mp-footer-support__button.daf-mp-btn--primary {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 118px;
    min-width: 118px;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    color: #ffffff;
    background: #0f5f3d;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(8, 42, 27, 0.18);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.daf-mp-footer-support__button:hover,
.daf-mp-footer-support__button.daf-mp-btn:hover,
.daf-mp-footer-support__button.daf-mp-btn--primary:hover {
    color: #ffffff;
    background: #0b4f32;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 20px rgba(8, 42, 27, 0.24);
}

.daf-mp-footer-support__privacy {
    margin: 8px 4px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

/* =========================================================
   Main Footer
   ========================================================= */

.daf-mp-footer-main {
    background:
        radial-gradient(circle at 12% 24%, rgba(149, 201, 61, 0.08) 0%, rgba(149, 201, 61, 0) 30%),
        linear-gradient(135deg, #153c35 0%, #0f2f2a 48%, #0b2521 100%);
    border-top: 1px solid rgba(164, 210, 105, 0.14);
    padding-top: 38px;
    padding-bottom: 36px;
}

.daf-mp-footer-main__grid {
    display: grid;
    grid-template-columns: 34% 22% 22% 22%;
    gap: 0;
    align-items: start;
}

.daf-mp-footer-brand,
.daf-mp-footer-nav {
    min-width: 0;
}

.daf-mp-footer-brand {
    padding-right: 34px;
}

.daf-mp-footer-nav {
    padding-left: 18px;
    padding-right: 18px;
}

/* =========================================================
   Brand
   ========================================================= */

.daf-mp-footer-brand__logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 20px;
    color: #ffffff;
    text-decoration: none;
}

.daf-mp-footer-brand__logo img,
.daf-mp-footer-brand__logo-image {
    display: block;
    width: auto;
    max-width: 210px;
    height: auto;
    max-height: 54px;
}

.daf-mp-footer-brand__name {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.daf-mp-footer-brand__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.daf-mp-footer-brand__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #e8f4ea;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(214, 235, 220, 0.22);
    border-radius: 12px;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.daf-mp-footer-brand__social-icon,
.daf-mp-footer-brand__social-icon svg,
.daf-mp-footer-brand__social-link svg {
    display: block;
    width: 18px;
    height: 18px;
    color: currentColor;
    fill: currentColor;
}

.daf-mp-footer-brand__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.daf-mp-footer-brand__social-link:hover {
    color: #ffffff;
    background: rgba(149, 201, 61, 0.18);
    border-color: rgba(149, 201, 61, 0.42);
    transform: translateY(-1px);
}

/* =========================================================
   Footer Navigation
   ========================================================= */

.daf-mp-footer-nav__toggle {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 14px;
    color: inherit;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: default;
}

.daf-mp-footer-nav__title {
    display: block;
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
}

.daf-mp-footer-accordion__icon {
    display: none;
}

.daf-mp-footer-nav__panel {
    display: block;
}

.daf-mp-footer-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.daf-mp-footer-nav__list li + li {
    margin-top: 10px;
}

.daf-mp-footer-nav__list a {
    color: rgba(231, 241, 233, 0.8);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.daf-mp-footer-nav__list a:hover {
    color: #a7d84c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   Bottom
   ========================================================= */

.daf-mp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
    margin-top: 30px;
    border-top: 1px solid rgba(214, 235, 220, 0.12);
}

.daf-mp-footer-bottom__copyright {
    width: 100%;
    margin: 0;
    color: rgba(224, 236, 228, 0.7);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* =========================================================
   Tablet / Mobile Accordion
   ========================================================= */

@media (max-width: 1024px) {
    .daf-mp-footer {
        margin-top: 48px;
    }

    .daf-mp-footer .daf-mp-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .daf-mp-footer-support {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .daf-mp-footer-support__toggle,
    .daf-mp-footer-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        color: #ffffff;
        background: rgba(11, 37, 33, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(7, 33, 22, 0.12);
        font-size: 14px;
        font-weight: 900;
        line-height: 1;
        text-align: left;
        cursor: pointer;
    }

    .daf-mp-footer-support__toggle:hover,
    .daf-mp-footer-nav__toggle:hover {
        background: rgba(11, 37, 33, 0.24);
    }

    .daf-mp-footer-accordion__icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        flex: 0 0 auto;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.15);
    }

    .daf-mp-footer-accordion__icon::before,
    .daf-mp-footer-accordion__icon::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 2px;
        border-radius: 99px;
        background: #ffffff;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .daf-mp-footer-accordion__icon::after {
        transform: rotate(90deg);
    }

    .daf-mp-footer-support.is-open .daf-mp-footer-accordion__icon::after,
    .daf-mp-footer-nav.is-open .daf-mp-footer-accordion__icon::after {
        opacity: 0;
        transform: rotate(0deg);
    }

    .daf-mp-footer-support__panel,
    .daf-mp-footer-nav__panel {
        display: none;
    }

    .daf-mp-footer-support.is-open .daf-mp-footer-support__panel,
    .daf-mp-footer-nav.is-open .daf-mp-footer-nav__panel {
        display: block;
    }

    .daf-mp-footer-support__panel {
        padding-top: 12px;
    }

    .daf-mp-footer-support__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
        padding: 14px;
        border-radius: 16px;
        background: rgba(11, 37, 33, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .daf-mp-footer-support__eyebrow {
        display: none;
    }

    .daf-mp-footer-support__title {
        margin-bottom: 7px;
        font-size: clamp(1.08rem, 3vw, 1.4rem);
        line-height: 1.18;
    }

    .daf-mp-footer-support__text {
        font-size: 12px;
        line-height: 1.5;
    }

    .daf-mp-footer-support__features {
        gap: 6px;
        margin-top: 10px;
    }

    .daf-mp-footer-support__features li {
        min-height: 26px;
        padding-inline: 9px;
        font-size: 10.5px;
    }

    .daf-mp-footer-support__form {
        min-height: 44px;
        padding: 4px;
        border-radius: 12px;
    }

    .daf-mp-footer-support__input {
        height: 36px;
        padding-left: 12px !important;
        padding-right: 112px !important;
        font-size: 13px;
        line-height: 36px;
    }

    .daf-mp-footer-support__button,
    .daf-mp-footer-support__button.daf-mp-btn,
    .daf-mp-footer-support__button.daf-mp-btn--primary {
        right: 5px;
        width: 98px;
        min-width: 98px;
        height: 32px;
        min-height: 32px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 11px;
    }

    .daf-mp-footer-support__privacy {
        font-size: 10.5px;
    }

    .daf-mp-footer-main {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .daf-mp-footer-main__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .daf-mp-footer-brand {
        padding-right: 0;
        margin-bottom: 10px;
    }

    .daf-mp-footer-brand__logo {
        margin-bottom: 16px;
    }

    .daf-mp-footer-brand__logo img,
    .daf-mp-footer-brand__logo-image {
        max-width: 184px;
        max-height: 46px;
    }

    .daf-mp-footer-brand__social {
        gap: 8px;
    }

    .daf-mp-footer-brand__social-link {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .daf-mp-footer-brand__social-icon,
    .daf-mp-footer-brand__social-icon svg,
    .daf-mp-footer-brand__social-link svg {
        width: 16px;
        height: 16px;
    }

    .daf-mp-footer-nav {
        padding: 0;
    }

    .daf-mp-footer-nav__toggle {
        margin: 0;
        background: rgba(255, 255, 255, 0.035);
        border-color: rgba(214, 235, 220, 0.14);
        box-shadow: none;
    }

    .daf-mp-footer-nav__title {
        color: #ffffff;
        font-size: 14px;
        font-weight: 900;
    }

    .daf-mp-footer-nav__panel {
        padding: 12px 14px 2px;
    }

    .daf-mp-footer-nav__list li + li {
        margin-top: 8px;
    }

    .daf-mp-footer-nav__list a {
        display: inline-flex;
        padding: 2px 0;
        font-size: 13px;
        line-height: 1.45;
    }

    .daf-mp-footer-bottom {
        padding-top: 20px;
        margin-top: 22px;
    }
}

@media (max-width: 767px) {
    .daf-mp-footer {
        margin-top: 42px;
    }

    .daf-mp-footer .daf-mp-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .daf-mp-footer-support__toggle,
    .daf-mp-footer-nav__toggle {
        min-height: 46px;
        padding-inline: 12px;
        border-radius: 13px;
        font-size: 13px;
    }

    .daf-mp-footer-support__grid {
        padding: 12px;
        border-radius: 14px;
    }

    .daf-mp-footer-support__title {
        font-size: 1.02rem;
    }

    .daf-mp-footer-support__text {
        font-size: 11.5px;
    }

    .daf-mp-footer-support__features {
        flex-direction: column;
        align-items: flex-start;
    }

    .daf-mp-footer-support__features li {
        width: auto;
        max-width: 100%;
    }

    .daf-mp-footer-support__form {
        min-height: 42px;
        padding: 4px;
    }

    .daf-mp-footer-support__input {
        width: 100%;
        height: 34px;
        padding-left: 12px !important;
        padding-right: 92px !important;
        font-size: 12px;
        line-height: 34px;
    }

    .daf-mp-footer-support__button,
    .daf-mp-footer-support__button.daf-mp-btn,
    .daf-mp-footer-support__button.daf-mp-btn--primary {
        right: 5px;
        width: 78px;
        min-width: 78px;
        height: 28px;
        min-height: 28px;
        padding: 0 8px;
        border-radius: 8px;
        font-size: 10px;
    }

    .daf-mp-footer-main {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .daf-mp-footer-brand {
        text-align: left;
    }

    .daf-mp-footer-brand__logo img,
    .daf-mp-footer-brand__logo-image {
        max-width: 168px;
        max-height: 42px;
    }

    .daf-mp-footer-brand__social {
        gap: 8px;
    }

    .daf-mp-footer-brand__social-link {
        width: 32px;
        height: 32px;
    }

    .daf-mp-footer-brand__social-icon,
    .daf-mp-footer-brand__social-icon svg,
    .daf-mp-footer-brand__social-link svg {
        width: 15px;
        height: 15px;
    }

    .daf-mp-footer-bottom {
        padding-top: 18px;
        margin-top: 20px;
    }

    .daf-mp-footer-bottom__copyright {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .daf-mp-footer-support__input {
        padding-right: 84px !important;
        font-size: 11px;
    }

    .daf-mp-footer-support__button,
    .daf-mp-footer-support__button.daf-mp-btn,
    .daf-mp-footer-support__button.daf-mp-btn--primary {
        right: 5px;
        width: 72px;
        min-width: 72px;
        height: 27px;
        min-height: 27px;
        padding: 0 7px;
        font-size: 9.5px;
    }

    .daf-mp-footer-brand__social-link {
        width: 31px;
        height: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .daf-mp-footer *,
    .daf-mp-footer *::before,
    .daf-mp-footer *::after {
        transition: none !important;
    }
}