/* =========================================================
   RADIYOX HOME
   Homepage-only styling.
   Directory layout and station-card grid remain global.
   ========================================================= */

.rx-home-layout {
    align-items: start;
}

.rx-home-main {
    min-width: 0;
    padding-bottom: 48px;
}

.rx-home-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.rx-home-kicker {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.rx-home-heading h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--text-primary);
}

.rx-home-heading p {
    margin: 10px 0 0;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.rx-home-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    margin-bottom: 42px;
    padding: 7px 8px 7px 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.rx-home-search-icon {
    flex: 0 0 auto;
    font-size: 25px;
    line-height: 1;
    color: var(--text-secondary);
    transform: rotate(-15deg);
}

.rx-home-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 15px;
}

.rx-home-search input::placeholder {
    color: var(--text-secondary);
}

.rx-home-search button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--text-primary);
    color: var(--surface);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.rx-home-search button:hover {
    opacity: .88;
}

.rx-home-station-section {
    margin-bottom: 48px;
}

.rx-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.rx-home-section-heading .rx-home-kicker {
    margin-bottom: 5px;
}

.rx-home-section-heading h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: var(--text-primary);
}

.rx-home-view-all {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.rx-home-view-all:hover {
    text-decoration: underline;
}

.rx-home-station-grid {
    margin-top: 0;
}

.rx-home-empty {
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text-secondary);
    background: var(--surface);
}

@media (max-width: 991px) {
    .rx-home-main {
        padding-bottom: 36px;
    }

    .rx-home-heading {
        margin-bottom: 18px;
    }

    .rx-home-heading h1 {
        font-size: 34px;
    }

    .rx-home-search {
        margin-bottom: 34px;
    }

    .rx-home-station-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .rx-home-main {
        padding-bottom: 28px;
    }

    .rx-home-heading {
        display: block;
        margin-bottom: 16px;
    }

    .rx-home-heading h1 {
        font-size: 29px;
    }

    .rx-home-heading p {
        margin-top: 8px;
        font-size: 14px;
    }

    .rx-home-search {
        min-height: 52px;
        margin-bottom: 30px;
        padding-left: 13px;
        border-radius: 13px;
    }

    .rx-home-search-icon {
        font-size: 22px;
    }

    .rx-home-search input {
        font-size: 14px;
    }

    .rx-home-search button {
        min-height: 38px;
        padding: 0 13px;
        font-size: 13px;
    }

    .rx-home-station-section {
        margin-bottom: 34px;
    }

    .rx-home-section-heading {
        margin-bottom: 14px;
    }

    .rx-home-section-heading h2 {
        font-size: 21px;
    }

    .rx-home-view-all {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .rx-home-search button {
        padding: 0 11px;
    }
}

/* =========================================================
   DESKTOP HOMEPAGE
   Global header is hidden because the permanent directory
   sidebar already provides branding and navigation.
   Mobile header remains unchanged.
   ========================================================= */

@media (min-width: 992px) {

    body:has(.rx-home-layout) .header {
        display: none;
    }

    body:has(.rx-home-layout) #main-content > .container {
        max-width: 1440px;
        padding-top: 20px;
    }

    body:has(.rx-home-layout) .rx-directory-sidebar {
        top: 20px;
        min-height: calc(100vh - 44px);
    }

    body:has(.rx-home-layout) .rx-home-main {
        padding-top: 0;
    }
}

