/**
 * YES Network Channel Lookup
 * Styled to match yesnetwork.com brand: navy panel, Trade Gothic Condensed,
 * blue accent, white surface for inputs.
 */

@font-face {
    font-family: 'Trade Gothic Condensed';
    src: url('/wp-content/uploads/2025/11/TradeGothicNextLTPro-Cn.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trade Gothic Condensed';
    src: url('/wp-content/uploads/2025/11/TradeGothicNextLTPro-BdCn.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trade Gothic Condensed';
    src: url('/wp-content/uploads/2025/11/TradeGothicNextLTPro-HvCn.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Integral CF';
    src: url('/wp-content/uploads/2025/11/IntegralCF-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Integral CF';
    src: url('/wp-content/uploads/2025/11/IntegralCF-Heavy.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.yn-channel-lookup {
    --yn-cl-navy: #0c2340;
    --yn-cl-navy-700: #061a31;
    --yn-cl-blue: #298fff;
    --yn-cl-blue-600: #0f7ce6;
    --yn-cl-white: #ffffff;
    --yn-cl-text: #18202a;
    --yn-cl-muted: #5b6b80;
    --yn-cl-border: rgba(255, 255, 255, 0.18);
    --yn-cl-input-border: #c5d0dc;

    width: 100%;
    box-sizing: border-box;
    font-family: "Trade Gothic Condensed", "Arial Narrow", Arial, sans-serif;
    color: var(--yn-cl-text);
}

.yn-channel-lookup *,
.yn-channel-lookup *::before,
.yn-channel-lookup *::after {
    box-sizing: border-box;
}

.yn-channel-lookup__panel {
    background: var(--yn-cl-navy);
    background-image: linear-gradient(180deg, var(--yn-cl-navy) 0%, var(--yn-cl-navy-700) 100%);
    color: var(--yn-cl-white);
    padding: 32px clamp(20px, 4vw, 40px);
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(6, 26, 49, 0.25);
}

.yn-channel-lookup__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--yn-cl-border);
}

.yn-channel-lookup__eyebrow {
    font-family: "Trade Gothic Condensed", sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yn-cl-blue);
}

.yn-channel-lookup__title {
    margin: 0;
    font-family: 'Integral CF', "Trade Gothic Condensed", sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.05;
    letter-spacing: 0.5px;
    color: var(--yn-cl-white);
    text-transform: uppercase;
}

.yn-channel-lookup__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
    gap: 16px;
    align-items: end;
}

.yn-channel-lookup__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.yn-channel-lookup__label {
    font-family: "Trade Gothic Condensed", sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--yn-cl-white);
}

.yn-channel-lookup__input,
.yn-channel-lookup__select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--yn-cl-input-border);
    border-radius: 2px;
    background: var(--yn-cl-white);
    color: var(--yn-cl-text);
    font: inherit;
    font-family: "Trade Gothic Condensed", "Arial Narrow", Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yn-channel-lookup__select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--yn-cl-navy) 50%),
        linear-gradient(135deg, var(--yn-cl-navy) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.yn-channel-lookup__input:focus,
.yn-channel-lookup__select:focus {
    outline: none;
    border-color: var(--yn-cl-blue);
    box-shadow: 0 0 0 3px rgba(41, 143, 255, 0.35);
}

.yn-channel-lookup__input::placeholder {
    color: #8a96a6;
    font-weight: 400;
}

.yn-channel-lookup__select:disabled,
.yn-channel-lookup__button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.yn-channel-lookup__button {
    height: 48px;
    padding: 0 28px;
    border: none;
    border-radius: 2px;
    background: var(--yn-cl-blue);
    color: var(--yn-cl-white);
    font-family: 'Integral CF', "Trade Gothic Condensed", sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    white-space: nowrap;
}

.yn-channel-lookup__button:hover:not(:disabled) {
    background: var(--yn-cl-blue-600);
}

.yn-channel-lookup__button:active:not(:disabled) {
    transform: translateY(1px);
}

.yn-channel-lookup__status {
    margin: 20px 0 0;
    min-height: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Trade Gothic Condensed", sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.yn-channel-lookup__status[data-tone="error"] {
    color: #ff7a7a;
    font-weight: 700;
}

.yn-channel-lookup__status[data-tone="empty"] {
    color: rgba(255, 255, 255, 0.6);
}

.yn-channel-lookup__results {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.yn-channel-lookup__result {
    background: var(--yn-cl-white);
    color: var(--yn-cl-text);
    border-left: 4px solid var(--yn-cl-blue);
    border-radius: 2px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    align-items: center;
}

.yn-channel-lookup__channel {
    grid-row: 1 / span 2;
    font-family: 'Integral CF', "Trade Gothic Condensed", sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 4vw, 44px);
    line-height: 1;
    color: var(--yn-cl-navy);
    letter-spacing: 0.5px;
    padding-right: 20px;
    border-right: 1px solid #d9e0e7;
}

.yn-channel-lookup__station {
    font-family: 'Integral CF', "Trade Gothic Condensed", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--yn-cl-navy);
}

.yn-channel-lookup__meta {
    font-family: "Trade Gothic Condensed", sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: var(--yn-cl-muted);
    text-transform: uppercase;
}

.yn-channel-lookup__notice {
    grid-column: 2;
    margin-top: 6px;
    font-family: "Trade Gothic Condensed", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.2px;
    color: var(--yn-cl-muted);
}

.yn-channel-lookup__result--unavailable .yn-channel-lookup__channel {
    color: var(--yn-cl-muted);
}

@media (max-width: 560px) {
    .yn-channel-lookup__notice {
        grid-column: auto;
    }
}

@media (max-width: 860px) {
    .yn-channel-lookup__form {
        grid-template-columns: 1fr 1fr;
    }

    .yn-channel-lookup__button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .yn-channel-lookup__panel {
        padding: 24px 18px;
    }

    .yn-channel-lookup__form {
        grid-template-columns: 1fr;
    }

    .yn-channel-lookup__result {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .yn-channel-lookup__channel {
        grid-row: auto;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8ef;
        padding-bottom: 8px;
        margin-bottom: 4px;
    }
}
