.pdr-ai-shell,
.pdr-ai-shell * {
    box-sizing: border-box;
}

.pdr-ai-shell {
    --pdr-orange: #ff3b00;
    --pdr-orange2: #ff6a00;
    --pdr-dark: rgba(4, 5, 10, .88);
    --pdr-card: rgba(12, 14, 24, .78);
    --pdr-line: rgba(255, 92, 0, .32);
    --pdr-text: #ffffff;
    --pdr-muted: rgba(255, 255, 255, .66);
    width: min(1080px, 100%);
    margin: 22px auto;
    padding: clamp(16px, 2.6vw, 28px);
    color: var(--pdr-text);
    border: 1px solid rgba(255, 107, 0, .28);
    border-radius: 26px;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 90, 0, .20), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(255, 57, 0, .16), transparent 36%),
        linear-gradient(145deg, rgba(8, 10, 18, .94), rgba(10, 3, 0, .82));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.pdr-ai-shell:before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 91, 0, .18) 38%, transparent 70%);
    pointer-events: none;
}

.pdr-ai-topline,
.pdr-ai-mainbar,
.pdr-ai-panels,
.pdr-ai-note {
    position: relative;
    z-index: 1;
}

.pdr-ai-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.pdr-ai-kicker {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffd2bf;
    border: 1px solid rgba(255, 91, 0, .26);
    background: rgba(255, 91, 0, .08);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pdr-ai-topline h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 24px rgba(255, 92, 0, .44), 0 4px 0 rgba(0, 0, 0, .28);
}

.pdr-ai-greet {
    color: var(--pdr-muted);
    border: 1px solid rgba(255,255,255,.10);
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(0,0,0,.28);
    white-space: nowrap;
}

.pdr-ai-greet strong {
    color: #fff;
}

.pdr-ai-mainbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(4, 5, 12, .62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.pdr-ai-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pdr-ai-search-icon {
    position: absolute;
    left: 16px;
    opacity: .84;
    pointer-events: none;
}

.pdr-ai-input {
    width: 100%;
    min-height: 50px;
    padding: 0 46px 0 48px;
    border-radius: 18px;
    border: 1px solid rgba(255, 87, 0, .28);
    background: rgba(0, 0, 0, .56);
    color: #fff;
    outline: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 0 rgba(255,91,0,0);
    transition: .2s ease;
}

.pdr-ai-input:focus,
.pdr-ai-image-prompt:focus {
    border-color: rgba(255, 96, 0, .78);
    box-shadow: 0 0 0 4px rgba(255, 91, 0, .14), inset 0 1px 0 rgba(255,255,255,.06);
}

.pdr-ai-input::placeholder,
.pdr-ai-image-prompt::placeholder {
    color: rgba(255,255,255,.48);
}

.pdr-ai-clear {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.06);
    cursor: pointer;
}

.pdr-ai-btn {
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(180deg, var(--pdr-orange2), var(--pdr-orange));
    box-shadow: 0 12px 26px rgba(255, 61, 0, .26), inset 0 1px 0 rgba(255,255,255,.23), inset 0 -3px 0 rgba(0,0,0,.26);
    text-shadow: 0 1px 0 rgba(0,0,0,.38);
    transform: translateY(0);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.pdr-ai-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 18px 34px rgba(255, 61, 0, .34), inset 0 1px 0 rgba(255,255,255,.26), inset 0 -3px 0 rgba(0,0,0,.22);
}

.pdr-ai-btn:disabled {
    cursor: wait;
    filter: grayscale(.4) brightness(.75);
    transform: none;
}

.pdr-ai-btn-mode,
.pdr-ai-btn-back-ai {
    background: linear-gradient(180deg, #2b2f3f, #11131c);
    border: 1px solid rgba(255, 255, 255, .12);
}

.pdr-ai-panels {
    margin-top: 0;
}

.pdr-ai-panel {
    display: none;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(5, 6, 12, .68);
    overflow: hidden;
}

.pdr-ai-panel.is-active {
    display: block;
    margin-top: 12px;
    animation: pdrAiDrop .22s ease both;
}

@keyframes pdrAiDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pdr-ai-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(90deg, rgba(255, 71, 0, .18), rgba(255,255,255,.03));
}

.pdr-ai-panel-head span {
    font-weight: 900;
    font-size: 16px;
}

.pdr-ai-panel-head small {
    color: var(--pdr-muted);
    text-align: right;
}

.pdr-ai-results,
.pdr-ai-answer,
.pdr-ai-image-output {
    padding: 16px;
}

.pdr-ai-result,
.pdr-ai-answer-card,
.pdr-ai-image-card {
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border-radius: 18px;
    padding: 14px;
    margin: 0 0 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.26);
}

.pdr-ai-result a {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
}

.pdr-ai-result a:hover {
    color: #ffd0bd;
}

.pdr-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    padding: 4px 9px;
    color: #ffd1bf;
    background: rgba(255, 82, 0, .10);
    border: 1px solid rgba(255, 82, 0, .23);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pdr-ai-result p,
.pdr-ai-answer-card,
.pdr-ai-note {
    color: var(--pdr-muted);
}

.pdr-ai-result p {
    margin: 7px 0 0;
}

.pdr-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.pdr-ai-answer-card {
    color: rgba(255,255,255,.88);
    line-height: 1.65;
}

.pdr-ai-answer-card strong {
    color: #fff;
}

.pdr-ai-image-prompt {
    display: block;
    width: calc(100% - 32px);
    min-height: 130px;
    margin: 16px 16px 0;
    resize: vertical;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 87, 0, .28);
    background: rgba(0, 0, 0, .56);
    color: #fff;
    outline: 0;
}

.pdr-ai-image-card img {
    display: block;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 48px rgba(0,0,0,.42);
}

.pdr-ai-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd0bf;
    padding: 14px;
}

.pdr-ai-loader:before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.18);
    border-top-color: var(--pdr-orange2);
    animation: pdrAiSpin .8s linear infinite;
}

@keyframes pdrAiSpin {
    to { transform: rotate(360deg); }
}

.pdr-ai-empty,
.pdr-ai-error {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: var(--pdr-muted);
}

.pdr-ai-error {
    border-color: rgba(255, 55, 0, .35);
    color: #ffd0c4;
}

.pdr-ai-note {
    margin: 14px 2px 0;
    font-size: 12px;
}

@media (max-width: 760px) {
    .pdr-ai-shell {
        border-radius: 20px;
        margin: 14px auto;
        padding: 14px;
    }

    .pdr-ai-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .pdr-ai-greet {
        white-space: normal;
    }

    .pdr-ai-mainbar {
        grid-template-columns: 1fr;
    }

    .pdr-ai-btn {
        width: 100%;
    }

    .pdr-ai-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pdr-ai-panel-head small {
        text-align: left;
    }
}

.pdr-ai-shell.is-ai-mode .pdr-ai-input {
    border-color: rgba(255, 106, 0, .82);
    box-shadow: 0 0 0 4px rgba(255, 91, 0, .16), inset 0 1px 0 rgba(255,255,255,.06);
}

.pdr-ai-btn-mode.is-active {
    background: linear-gradient(180deg, #343846, #151721);
    border: 1px solid rgba(255, 106, 0, .36);
    box-shadow: 0 14px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.16);
}

.pdr-ai-output {
    padding: 16px;
}

.pdr-ai-local-title {
    color: #ffd0bf;
    font-weight: 900;
    margin: 6px 0 12px;
    padding: 0 2px;
}

.pdr-ai-answer-list {
    margin: 8px 0 0 18px;
    padding: 0;
}

.pdr-ai-answer-list li {
    margin: 0 0 10px;
}

.pdr-ai-answer-list a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 90, 0, .55);
}

.pdr-ai-answer-list span {
    color: rgba(255,255,255,.72);
}

/* v2.3 kompakt: csak a keresőmező látszik alapból */
.pdr-ai-shell.pdr-ai-compact {
    width: min(1080px, 100%);
    margin: 14px auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

.pdr-ai-shell.pdr-ai-compact:before,
.pdr-ai-shell.pdr-ai-compact .pdr-ai-topline,
.pdr-ai-shell.pdr-ai-compact .pdr-ai-note,
.pdr-ai-shell.pdr-ai-compact .pdr-ai-kicker,
.pdr-ai-shell.pdr-ai-compact .pdr-ai-greet {
    display: none !important;
}

.pdr-ai-shell.pdr-ai-compact .pdr-ai-mainbar {
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 91, 0, .36);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 91, 0, .16), transparent 32%),
        linear-gradient(145deg, rgba(5, 6, 13, .94), rgba(16, 5, 0, .88));
    box-shadow: 0 16px 42px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.07);
}

.pdr-ai-shell.pdr-ai-compact .pdr-ai-panel.is-active {
    margin-top: 10px;
}

.pdr-ai-shell.pdr-ai-compact .pdr-ai-panel {
    border-color: rgba(255, 91, 0, .20);
    background: rgba(5, 6, 12, .78);
    box-shadow: 0 18px 44px rgba(0,0,0,.42);
}

@media (max-width: 640px) {
    .pdr-ai-shell.pdr-ai-compact .pdr-ai-mainbar {
        grid-template-columns: 1fr;
    }
    .pdr-ai-shell.pdr-ai-compact .pdr-ai-btn-search {
        width: 100%;
    }
}


/* v2.9: egymezős működés, nincs külön keresőgomb */
.pdr-ai-compact .pdr-ai-btn-search{display:none!important;}
.pdr-ai-compact .pdr-ai-mainbar{grid-template-columns:1fr!important;}

/* v2.23: PDR AI saját, napokra váltó műsorterv lista */
.pdr-ai-own-schedule {
    margin: 10px 0 4px;
}
.pdr-ai-own-schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0 12px;
}
.pdr-ai-own-day-btn {
    appearance: none;
    border: 1px solid rgba(255, 106, 0, .42);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(120, 45, 12, .92), rgba(45, 22, 15, .92));
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 8px 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.24);
}
.pdr-ai-own-day-btn.is-active,
.pdr-ai-own-day-btn:hover {
    border-color: rgba(255, 91, 0, .95);
    background: linear-gradient(180deg, #ff5b00, #b93500);
}
.pdr-ai-own-day .pdr-ai-answer-list {
    margin-top: 8px;
}
.pdr-ai-own-day .pdr-ai-answer-list li {
    border-bottom: 1px dashed rgba(255,255,255,.16);
    padding: 8px 0;
}
.pdr-ai-own-day .pdr-ai-answer-list li:last-child {
    border-bottom: 0;
}
