/*
Theme Name: EDM Taste Base
Theme URI: https://www.edmtaste.com/
Author: EDM Taste
Description: Lightweight standalone WordPress theme for EDM Taste.
Version: 0.1.10
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: edm-taste-base
*/

:root {
    --edm-bg: #080d21;
    --edm-text: #ffffff;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--edm-bg);
    color: var(--edm-text);
}

body {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.edm-theme-site,
.edm-theme-main,
.edm-theme-content {
    width: 100%;
}

.edm-theme-main {
    min-height: 60vh;
    background: var(--edm-bg);
}

.elementor-page .edm-theme-content {
    margin: 0;
    padding: 0;
    max-width: none;
}

body:not(.elementor-page) .edm-theme-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 60px;
}


/* =========================================================
   EDM TASTE BASE v0.1.3
   SAFE PRO.RADIO CLEANUP
   ========================================================= */

/*
 * IMPORTANT:
 * Do not hide generic top bars, body pseudo-elements or colored
 * separators here. The site's announcement / information banner
 * must remain visible.
 */

/* Only genuine legacy Pro.Radio footer/player remnants. */
body.edm-core-active #proradio-playercontainer,
body.edm-core-active .proradio-player-footer-placeholder,
body.edm-core-active #proradio-megafooter,
body.edm-core-active #proradio-footer,
body.edm-core-active #proradio-megafooter-header {
    display: none !important;
}

/* Elementor pages remain edge-to-edge. */
body.elementor-page .elementor,
body.elementor-page .elementor-location-single,
body.elementor-page .elementor-location-archive {
    width: 100% !important;
    max-width: none !important;
}

body.edm-core-active {
    background: #080d21 !important;
}


/* =========================================================
   EDM TASTE BASE v0.1.4
   TYPOGRAPHY FIX — MOBILE / IOS
   ========================================================= */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
    font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

/*
 * Elementor sections inherit the EDM Taste typeface consistently
 * instead of falling back to the browser default on iOS.
 */
.elementor,
.elementor-widget-container,
.elementor-heading-title,
.elementor-button,
.elementor-widget-text-editor,
.elementor-icon-list-text {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

/*
 * Native EDM Taste components live outside Elementor, so lock the
 * same family explicitly.
 */
.edm-core-header,
.edm-core-header *,
#edm-core-player,
#edm-core-player *,
.edm-core-footer,
.edm-core-footer *,
.edm-home-native-listen-wrap,
.edm-home-native-listen-wrap *,
.edm-home-now-playing,
.edm-home-now-playing *,
.edm-home-last-played,
.edm-home-last-played * {
    font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

/*
 * Prevent Safari from faking bold faces when a requested weight is
 * unavailable; this keeps headings closer to the desktop rendering.
 */
body {
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   EDM TASTE BASE v0.1.5
   EXPLICIT MONTSERRAT LOADING FALLBACK
   ========================================================= */

:root {
    --edm-font-main: "Montserrat", "Arial Narrow", Arial, Helvetica, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
.elementor,
.elementor-widget-container,
.elementor-heading-title,
.elementor-button,
.elementor-widget-text-editor,
.elementor-icon-list-text,
.edm-core-header,
.edm-core-header *,
#edm-core-player,
#edm-core-player *,
.edm-core-footer,
.edm-core-footer *,
.edm-home-native-listen-wrap,
.edm-home-native-listen-wrap *,
.edm-home-now-playing,
.edm-home-now-playing *,
.edm-home-last-played,
.edm-home-last-played * {
    font-family: var(--edm-font-main) !important;
}

/* Safari/iOS consistency */
html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   EDM TASTE BASE v0.1.6
   THEME-OWNED GLOBAL FOOTER
   ========================================================= */

/*
 * The theme is now the single source of truth for the site footer.
 * Hide legacy/plugin footer variants to prevent duplicates.
 */
.edm-global-site-end,
.edm-core-site-signoff,
.edm-core-footer {
    display: none !important;
}

.edm-theme-global-footer,
.edm-theme-global-footer * {
    box-sizing: border-box;
}

.edm-theme-global-footer {
    display: block !important;
    position: relative;
    z-index: 3;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    background: #080d21;
    color: #9fa9c5;
}

.edm-theme-global-footer-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;

    gap: 22px;

    width: min(1480px, calc(100% - 48px));

    min-height: 44px;

    margin: 0 auto;
    padding: 10px 4px 8px;

    border-top: 1px solid rgba(132, 151, 207, 0.16);
}

.edm-theme-global-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 15px;
    font-weight: 900;
    line-height: 1;

    letter-spacing: 0.9px;
    white-space: nowrap;
}

.edm-theme-global-footer-edm {
    color: #2da8ff;
}

.edm-theme-global-footer-taste {
    background: linear-gradient(
        90deg,
        #916dff,
        #ff38c8
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.edm-theme-global-footer-tagline {
    color: #b0bad2;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.2px;
}

.edm-theme-global-footer-copy {
    color: #7f8aa8;

    font-size: 9px;
    font-weight: 500;
    line-height: 1;

    white-space: nowrap;
}

@media (max-width: 820px) {

    .edm-theme-global-footer-inner {
        width: calc(100% - 28px);

        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand copy"
            "tagline tagline";

        gap: 5px 12px;

        min-height: 0;

        padding: 10px 2px 8px;
    }

    .edm-theme-global-footer-brand {
        grid-area: brand;
        font-size: 13px;
    }

    .edm-theme-global-footer-tagline {
        grid-area: tagline;
        font-size: 8px;
    }

    .edm-theme-global-footer-copy {
        grid-area: copy;
        font-size: 8px;
        text-align: right;
    }
}

@media (max-width: 480px) {

    .edm-theme-global-footer-inner {
        width: calc(100% - 22px);

        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "tagline"
            "copy";

        justify-items: center;
        gap: 4px;

        padding: 9px 0 8px;
    }

    .edm-theme-global-footer-copy {
        text-align: center;
    }
}


/* =========================================================
   EDM TASTE BASE v0.1.7
   CONTENT-ANCHORED GLOBAL FOOTER
   ========================================================= */

/*
 * Legacy Pro.Radio / Elementor footer block that used to sit
 * immediately after the homepage content.
 */
#proradio-megafooter,
#proradio-megafooter-item-8276,
.proradio-megafooter__container,
.proradio-megafooter__item.post-8276,
.elementor.elementor-8276 {
    display: none !important;
}

/*
 * Legacy shared footer variants.
 */
.edm-global-site-end,
.edm-core-site-signoff,
.edm-core-footer {
    display: none !important;
}

/*
 * The new footer now lives directly after the content inside MAIN,
 * so make sure parent wrappers cannot clip it.
 */
.edm-theme-main,
.edm-theme-content {
    overflow: visible !important;
}

.edm-theme-global-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: relative !important;
    z-index: 3 !important;

    width: 100% !important;

    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

/*
 * Homepage: keep the transition from the final Elementor section
 * to the footer compact.
 */
body.home .edm-theme-global-footer,
body.front-page .edm-theme-global-footer,
body.page-id-10080 .edm-theme-global-footer {
    margin-top: 8px !important;
}


/* =========================================================
   EDM TASTE BASE v0.1.8
   GLOBAL FOOTER BODY ANCHOR
   ========================================================= */

/*
 * The theme footer is the only site footer.
 */
.edm-global-site-end,
.edm-core-site-signoff,
.edm-core-footer,
#proradio-megafooter,
#proradio-megafooter-item-8276,
.proradio-megafooter__container,
.proradio-megafooter__item.post-8276,
.elementor.elementor-8276 {
    display: none !important;
}

html body > .edm-theme-global-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: relative !important;
    z-index: 3 !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}


/* =========================================================
   EDM TASTE BASE v0.1.10
   NO SITE FOOTER
   ========================================================= */

/*
 * No editorial/site footer is displayed anywhere.
 * The fixed radio player remains untouched.
 */
.edm-theme-global-footer,
.edm-global-site-end,
.edm-core-site-signoff,
.edm-core-footer,
#proradio-megafooter,
#proradio-megafooter-item-8276,
.proradio-megafooter__container,
.proradio-megafooter__item.post-8276,
.elementor.elementor-8276 {
    display: none !important;
}
