/* Video & Audio to MP3 converter — site integration layer.
   Global layout, cards, forms, buttons and encoder controls intentionally
   come from /assets/css/styles.css, matching /web-encoder/. */

/* Compact privacy reassurance inside the converter rather than a separate card. */
.converter-inline-note {
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid #dbe7ef;
    border-radius: 9px;
    background: #f7fafc;
    color: #425466;
    font-size: .94rem;
    line-height: 1.5;
}
.converter-inline-note strong {
    color: var(--brand-blue-dark);
}

/* Keep status subordinate while idle; it expands naturally once progress begins. */
.converter-status-panel {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e7edf2;
}
.converter-status-panel h3 {
    margin: 0 0 7px;
    color: var(--brand-blue-dark);
    font-size: 18px;
}
.converter-status-panel .encoder-status {
    margin-bottom: 8px;
}
.converter-status-panel .conversion-progress[hidden] {
    display: none;
}

/* Small additions that do not exist on the simpler web encoder. */
.custom-summary {
    display: grid;
    gap: 7px;
    margin-top: 16px;
}
.custom-summary > span {
    color: #374151;
    font-weight: 700;
}
.custom-summary code {
    display: block;
    width: 100%;
    overflow-x: auto;
    padding: 10px 12px;
    border: 1px solid #e7edf2;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: 13px/1.5 Consolas, Monaco, 'Courier New', monospace;
}

.converter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.converter-actions button {
    cursor: pointer;
}
.converter-actions button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.large-file-note {
    min-height: 0;
    margin-top: 14px !important;
    padding: 12px 14px;
    font-size: .94rem;
}

.converter-details {
    margin-top: 12px;
}
.converter-details summary {
    color: var(--brand-blue-dark);
    font-weight: 800;
    cursor: pointer;
}

.converter-result-name {
    font-weight: 700;
}
.converter-result-inner {
    padding-top: 4px;
}
.converter-result audio {
    width: 100%;
}

/* One simple drag state is enough; avoid the extra outline used in v21. */
.drop-zone {
    cursor: pointer;
}
.drop-zone.is-dragging {
    border-color: var(--brand-blue);
    background: var(--brand-blue-soft);
}

/* Mode-specific controls remain readable while clearly unavailable. */
.advanced-panel .form-grid label.is-disabled {
    opacity: .60;
}
.advanced-panel .form-grid label.is-disabled select,
.advanced-panel .form-grid label.is-disabled input {
    cursor: not-allowed;
}
.advanced-panel .form-grid label.is-disabled select:disabled,
.advanced-panel .form-grid label.is-disabled input:disabled {
    opacity: 1;
}

/* Consolidated explanatory copy: two short columns, then the site's definition list. */
.converter-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0 32px 22px;
}
.converter-copy-grid article {
    min-width: 0;
}
.converter-copy-grid h3 {
    margin: 0 0 7px;
    color: var(--brand-blue-dark);
    font-size: 18px;
}
.converter-copy-grid p {
    margin: 0;
}
.converter-capability-list {
    margin-top: 4px;
}

@media (max-width: 720px) {
    .converter-copy-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-left: 18px;
        margin-right: 18px;
    }
}

@media (max-width: 520px) {
    .converter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .converter-actions .primary-button,
    .converter-actions .secondary-button {
        width: 100%;
        justify-content: center;
    }
}

/* v23: editorial treatment for the three lower detail cards.
   Avoid the site's definition-list rows here; they read too much like a table. */
.converter-seo-copy .card-title-row {
    padding-bottom: 18px;
}

.converter-feature-grid,
.converter-detail-grid,
.converter-faq-grid {
    display: grid;
    gap: 14px;
    /* Match the horizontal inset used by the card heading/copy above. */
    margin: 0 32px 22px;
}

.converter-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.converter-detail-grid,
.converter-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.converter-feature-item,
.converter-detail-item,
.converter-faq-item {
    min-width: 0;
    padding: 16px 17px;
    border: 1px solid #e2eaf0;
    border-radius: 10px;
    background: #f8fafc;
}

/* v24: the three capability tiles are intentionally more compact than the
   larger quality and FAQ cards below them. */
.converter-feature-item {
    padding: 16px 17px;
}
.converter-feature-item h3,
.converter-detail-item h3,
.converter-faq-item h3 {
    margin: 0 0 6px;
    color: var(--brand-blue-dark);
    font-size: 17px;
    line-height: 1.25;
}

.converter-feature-item h3 {
    margin-bottom: 6px;
}

.converter-feature-item p,
.converter-detail-item p,
.converter-faq-item p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.converter-faq-item-wide {
    grid-column: 1 / -1;
}

.converter-seo-copy > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .converter-feature-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 720px) {
    .converter-feature-grid,
    .converter-detail-grid,
    .converter-faq-grid {
        margin-left: 18px;
        margin-right: 18px;
    }
}

@media (max-width: 720px) {
    .converter-detail-grid,
    .converter-faq-grid {
        grid-template-columns: 1fr;
    }
    .converter-faq-item-wide {
        grid-column: auto;
    }
}

/* v28: align the guide-links paragraph and guarantee breathing room below it. */
.converter-guide-links {
    margin: 0 32px;
    padding-bottom: 28px;
}

@media (max-width: 720px) {
    .converter-guide-links {
        margin-left: 18px;
        margin-right: 18px;
    }
}
