/* Pitch deck editor — landscape slide canvas */

.pitch-editor-shell {
    background: #1e293b;
    min-height: calc(100vh - 80px);
    padding: 2rem 0 3rem;
}

.pitch-editor-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem 2rem;
}

.pitch-slide-wrap {
    width: min(100%, 960px);
}

.pitch-slide-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.pitch-slide {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pitch-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    z-index: 2;
}

.pitch-slide--cover {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
    color: #f8fafc;
}

.pitch-slide--cover::before {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.pitch-slide__inner {
    flex: 1;
    display: flex;
    min-height: 0;
    padding: 1.75rem 2rem 1.5rem;
}

.pitch-slide--cover .pitch-slide__inner {
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 2.25rem 1.75rem;
}

.pitch-slide__media {
    flex: 0 0 38%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 0;
}

.pitch-slide--image-left .pitch-slide__inner {
    flex-direction: row;
}

.pitch-slide--image-right .pitch-slide__inner {
    flex-direction: row-reverse;
}

.pitch-slide--full .pitch-slide__media {
    display: none;
}

.pitch-slide__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow: auto;
}

.pitch-slide__title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    border: none;
    background: transparent;
    width: 100%;
    color: inherit;
    padding: 0;
}

.pitch-slide--cover .pitch-slide__title {
    font-size: 2.2rem;
    color: #f8fafc;
}

.pitch-slide__subtitle {
    font-size: 1rem;
    color: #64748b;
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
}

.pitch-slide--cover .pitch-slide__subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.pitch-slide__textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #1e293b;
    min-height: 4.5rem;
    padding: 0;
}

.pitch-slide__textarea--bullets {
    min-height: 5.5rem;
}

.pitch-slide__textarea--quote {
    font-style: italic;
    color: #0d6efd;
    min-height: 2.5rem;
    border-left: 3px solid #0d6efd;
    padding-left: 0.75rem !important;
}

.pitch-slide__field-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin: 0.15rem 0 0;
}

.pitch-slide--cover .pitch-slide__field-label {
    color: #94a3b8;
}

.pitch-slide__cover-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pitch-slide__cover-brand {
    flex: 1;
    min-width: 0;
}

.pitch-slide__cover-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.pitch-slide__cover-contact .pitch-inline-input,
.pitch-slide__cover-contact .pitch-inline-select {
    color: #f8fafc;
}

.pitch-slide__cover-contact .pitch-field-label {
    color: #cbd5e1;
    font-size: 0.68rem;
}

.pitch-slide__cover-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.pitch-image-zone {
    width: 100%;
    height: 100%;
    min-height: 140px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pitch-image-zone:hover {
    border-color: #0d6efd;
    background: #eff6ff;
}

.pitch-image-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.pitch-image-zone__placeholder {
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
    z-index: 1;
}

.pitch-image-zone.has-image .pitch-image-zone__placeholder {
    display: none;
}

.pitch-logo-wrap {
    flex-shrink: 0;
    text-align: center;
}

.pitch-logo-preview {
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.35rem;
}

.pitch-logo-placeholder {
    width: 88px;
    height: 88px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0 auto 0.35rem;
}

.pitch-logo-link {
    background: none;
    border: none;
    color: #38bdf8;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.pitch-inline-input,
.pitch-inline-select {
    border: none;
    border-bottom: 1px dashed transparent;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: 100%;
    padding: 0.1rem 0;
}

.pitch-inline-input:focus,
.pitch-inline-select:focus,
.pitch-slide__title:focus,
.pitch-slide__subtitle:focus,
.pitch-slide__textarea:focus {
    outline: none;
    border-bottom-color: rgba(13, 110, 253, 0.45);
}

.pitch-inline-input--wide { min-width: 12rem; }
.pitch-field-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.5rem; }
.pitch-field-label { font-size: 0.78rem; color: #64748b; white-space: nowrap; }

.pitch-slide--cover .pitch-required-asterisk { color: #f87171; font-weight: 700; }

.pitch-save-status.is-saving { color: #94a3b8; }
.pitch-save-status.is-saved { color: #4ade80; }
.pitch-save-status.is-error { color: #f87171; }

#pitchEditorRoot .pitch-lead-required--empty {
    box-shadow: inset 0 -2px 0 rgba(248, 113, 113, 0.65) !important;
}

.pitch-download-wrap.is-blocked { cursor: not-allowed; }
.pitch-download-wrap.is-blocked .dropdown-toggle.is-incomplete { opacity: 0.65; cursor: not-allowed; }

@media (max-width: 900px) {
    .pitch-slide--image-left .pitch-slide__inner,
    .pitch-slide--image-right .pitch-slide__inner {
        flex-direction: column;
    }
    .pitch-slide__media {
        flex: 0 0 auto;
        min-height: 120px;
    }
    .pitch-slide__cover-contact {
        grid-template-columns: 1fr;
    }
}
