/* =======================================================================
   LPD Conversor de Arquivos — estilo adaptado à identidade visual do site
   Lemon Pepper Design (newlemonpepperdesign.local).

   Paleta extraída do próprio site (Elementor global colors + Additional
   CSS do Customizer): teal/ciano da marca, gradiente teal->vermelho usado
   no hover do título do site, tipografia Varela Round / Montserrat /
   lemon_milk (fonte customizada carregada globalmente pelo tema).
   ======================================================================= */

.lpd-fc {
    --lpd-fc-teal: #08ADA1;
    --lpd-fc-teal-bright: #06D9FA;
    --lpd-fc-teal-light: #30CFD0;
    --lpd-fc-teal-hover: #54E3E4;
    --lpd-fc-red: #EA3C30;
    --lpd-fc-dark: #121211;
    --lpd-fc-text: #353535;
    --lpd-fc-muted: #777777;
    --lpd-fc-bg: #F9F9F9;
    --lpd-fc-surface: #FFFEFE;
    --lpd-fc-border: #E9E9E9;
    --lpd-fc-gradient: linear-gradient(to right, var(--lpd-fc-teal-light) 0%, var(--lpd-fc-red) 100%);
    --lpd-fc-radius: 10px;
    --lpd-fc-radius-lg: 16px;
    --lpd-fc-shadow: 0 10px 30px rgba(18, 18, 17, 0.08);
    --lpd-fc-transition: .2s ease-in-out;

    max-width: 1040px;
    margin: 2rem auto;
    padding: 2.75rem;
    background: var(--lpd-fc-surface);
    border-radius: var(--lpd-fc-radius-lg);
    box-shadow: var(--lpd-fc-shadow);
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    color: var(--lpd-fc-text);
    box-sizing: border-box;
    position: relative;
}

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

.lpd-fc__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.lpd-fc__title {
    font-family: 'Varela Round', 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 2.4rem;
    margin: 0 0 .6rem;
    background: var(--lpd-fc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.lpd-fc__desc {
    color: var(--lpd-fc-muted);
    font-size: 1.15rem;
    margin: 0;
}

.lpd-fc__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 700px) {
    .lpd-fc__row {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------
   Dropzone
   --------------------------------------------------------------------- */

.lpd-fc__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 210px;
    padding: 1.75rem;
    background: var(--lpd-fc-bg);
    border: 2px dashed var(--lpd-fc-border);
    border-radius: var(--lpd-fc-radius);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--lpd-fc-transition), border-color var(--lpd-fc-transition);
}

.lpd-fc__dropzone:hover,
.lpd-fc__dropzone:focus-within {
    background: #F1FCFB;
    border-color: var(--lpd-fc-teal);
}

.lpd-fc__dropzone.is-dragover {
    background: #E9FAF9;
    border-color: var(--lpd-fc-teal-bright);
    box-shadow: 0 0 0 3px rgba(6, 217, 250, 0.18);
}

.lpd-fc__dropzone.has-file {
    border-style: solid;
    border-color: var(--lpd-fc-teal);
    background: #F1FCFB;
}

.lpd-fc__dropzone-icon {
    font-size: 2.5rem;
    color: var(--lpd-fc-teal);
    transition: color var(--lpd-fc-transition), transform var(--lpd-fc-transition);
}

.lpd-fc__dropzone:hover .lpd-fc__dropzone-icon {
    color: var(--lpd-fc-red);
    transform: translateY(-2px);
}

.lpd-fc__dropzone-text {
    color: var(--lpd-fc-muted);
    font-size: 1.05rem;
    word-break: break-word;
}

.lpd-fc__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.lpd-fc__file-meta {
    margin-top: .6rem;
    font-size: .95rem;
    color: var(--lpd-fc-muted);
    min-height: 1.2em;
    text-align: center;
}

.lpd-fc__progress {
    margin-top: .75rem;
    height: 10px;
    border-radius: 5px;
    background: var(--lpd-fc-border);
    overflow: hidden;
}

.lpd-fc__progress-bar {
    height: 100%;
    width: 0;
    background: var(--lpd-fc-gradient);
    transition: width .25s ease;
}

.lpd-fc__upload-status {
    margin-top: .6rem;
    font-size: 1rem;
    text-align: center;
    min-height: 1.2em;
}

.lpd-fc__upload-status.is-success {
    color: var(--lpd-fc-teal);
}

.lpd-fc__upload-status.is-error {
    color: var(--lpd-fc-red);
}

/* ---------------------------------------------------------------------
   Opções e botão
   --------------------------------------------------------------------- */

.lpd-fc__field {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.lpd-fc__field label {
    min-width: 56px;
    font-weight: 600;
    color: var(--lpd-fc-dark);
    font-size: 1.05rem;
}

.lpd-fc__select {
    flex: 1;
    padding: .7rem .85rem;
    border-radius: var(--lpd-fc-radius);
    border: 1px solid var(--lpd-fc-border);
    background: var(--lpd-fc-surface);
    color: var(--lpd-fc-text);
    font-family: inherit;
    font-size: 1.05rem;
}

.lpd-fc__select:focus-visible,
.lpd-fc__file-input:focus-visible + .lpd-fc__dropzone-icon {
    outline: 3px solid var(--lpd-fc-teal-bright);
    outline-offset: 1px;
}

.lpd-fc__button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--lpd-fc-radius);
    background: var(--lpd-fc-gradient);
    color: #fff;
    font-family: 'Varela Round', 'Montserrat', sans-serif;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform var(--lpd-fc-transition), box-shadow var(--lpd-fc-transition), opacity var(--lpd-fc-transition);
}

.lpd-fc__button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(234, 60, 48, .45);
}

.lpd-fc__button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------------
   Resultado / preview
   --------------------------------------------------------------------- */

.lpd-fc__result {
    display: none;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lpd-fc-border);
}

.lpd-fc__result.is-visible {
    display: block;
}

.lpd-fc__image-preview {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    min-height: 220px;
    border-radius: var(--lpd-fc-radius);
    background-color: var(--lpd-fc-bg);
}

.lpd-fc__result embed {
    width: 100%;
    border-radius: var(--lpd-fc-radius);
    border: 1px solid var(--lpd-fc-border);
}

.lpd-fc__output-list {
    margin-top: 1rem;
}

.lpd-fc__output-item {
    background: var(--lpd-fc-bg);
    padding: 1.1rem 1.2rem;
    border-radius: var(--lpd-fc-radius);
    margin: 0 0 .9rem;
}

.lpd-fc__output-name {
    display: block;
    margin-bottom: .75rem;
    font-size: .95rem;
    word-break: break-all;
    color: var(--lpd-fc-text);
}

.lpd-fc__download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    color: #fff;
    background: linear-gradient(0deg, var(--lpd-fc-teal) 0%, var(--lpd-fc-teal-bright) 100%);
    font-family: 'Varela Round', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    padding: .75rem 1.5rem;
    border-radius: var(--lpd-fc-radius);
    box-shadow: 0 8px 16px -8px rgba(8, 173, 161, .5);
    transition: transform var(--lpd-fc-transition), box-shadow var(--lpd-fc-transition), color var(--lpd-fc-transition);
}

.lpd-fc__download-button:hover,
.lpd-fc__download-button:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(234, 60, 48, .5);
    background: var(--lpd-fc-gradient);
}

.lpd-fc__download-icon {
    font-size: 1.1rem;
}

/* ---------------------------------------------------------------------
   Modal de upload ("Enviando Arquivo")
   --------------------------------------------------------------------- */

.lpd-fc__modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 17, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 1rem;
}

.lpd-fc__modal-overlay[hidden] {
    display: none;
}

.lpd-fc__modal {
    width: 100%;
    max-width: 420px;
    background: var(--lpd-fc-surface);
    border-radius: var(--lpd-fc-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    animation: lpd-fc-modal-rise .25s ease-out;
}

@keyframes lpd-fc-modal-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lpd-fc__modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--lpd-fc-gradient);
}

.lpd-fc__modal-title {
    margin: 0;
    color: #fff;
    font-family: 'Varela Round', 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
}

.lpd-fc__modal-close {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--lpd-fc-transition);
}

.lpd-fc__modal-close:hover {
    background: rgba(255, 255, 255, .32);
}

.lpd-fc__modal-body {
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.lpd-fc__modal-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-bottom: 1.25rem;
}

.lpd-fc__modal-spinner span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lpd-fc-teal);
    animation: lpd-fc-bounce 1s infinite ease-in-out both;
}

.lpd-fc__modal-spinner span:nth-child(1) {
    animation-delay: -.28s;
    background: var(--lpd-fc-teal-light);
}

.lpd-fc__modal-spinner span:nth-child(2) {
    animation-delay: -.14s;
    background: var(--lpd-fc-teal);
}

.lpd-fc__modal-spinner span:nth-child(3) {
    background: var(--lpd-fc-red);
}

@keyframes lpd-fc-bounce {
    0%, 80%, 100% {
        transform: scale(.4);
        opacity: .5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.lpd-fc__modal-body .lpd-fc__progress {
    margin-top: 0;
}
