/* ── Meta Checker Tool ───────────────────────────────────── */

.meta-checker {
    padding: 0;
}

/* Two-column layout */
.mc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ── Panel shared styles ── */
.mc-inputs,
.mc-preview {
    background: var(--wp--preset--color--surface);
    border: 3px solid var(--wp--preset--color--contrast);
    box-shadow: 4px 4px 0 var(--wp--preset--color--contrast);
    border-radius: 4px;
    padding: 24px;
}

/* ── Input fields ── */
.mc-field {
    margin-bottom: 24px;
}

.mc-field:last-child {
    margin-bottom: 0;
}

.mc-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wp--preset--color--contrast);
    margin-bottom: 8px;
}

.mc-field input,
.mc-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    border: 2px solid var(--wp--preset--color--contrast);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    resize: vertical;
}

.mc-field textarea {
    min-height: 80px;
}

.mc-field input::placeholder,
.mc-field textarea::placeholder {
    color: #999;
}

.mc-field input:focus,
.mc-field textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    box-shadow: 3px 3px 0 var(--wp--preset--color--primary);
}

/* ── Counter row ── */
.mc-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
}

.mc-counter-info {
    display: flex;
    gap: 16px;
}

.mc-chars,
.mc-pixels {
    color: #666;
}

/* ── Status badge ── */
.mc-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid currentColor;
    background: transparent;
    color: #aaa;
}

.mc-status.optimal {
    color: var(--wp--preset--color--secondary);
    background: rgba(45, 155, 110, 0.12);
}

.mc-status.warning {
    color: #E8A030;
    background: rgba(232, 160, 48, 0.12);
}

.mc-status.error {
    color: var(--wp--preset--color--tertiary);
    background: rgba(232, 93, 117, 0.12);
}

/* ── Progress bar ── */
.mc-progress {
    height: 4px;
    background: #E0D8CE;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.mc-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--wp--preset--color--secondary);
    border-radius: 2px;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.mc-progress-fill.warning {
    background: #E8A030;
}

.mc-progress-fill.error {
    background: var(--wp--preset--color--tertiary);
}

/* ── Preview panel ── */
.mc-preview-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wp--preset--color--contrast);
    margin: 0 0 16px 0;
}

/* ── Device toggle ── */
.mc-device-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.mc-device-btn {
    padding: 7px 18px;
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    border: 2px solid var(--wp--preset--color--contrast);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 3px 3px 0 var(--wp--preset--color--contrast);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.mc-device-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--wp--preset--color--contrast);
}

.mc-device-btn.active {
    background: var(--wp--preset--color--primary);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--wp--preset--color--contrast);
}

/* ── Google preview box ── */
.mc-google-wrap {
    display: flex;
    justify-content: center;
}

.mc-google-preview {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    transition: max-width 0.3s ease;
}

.mc-google-preview.mobil {
    max-width: 360px;
}

.mc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.mc-favicon {
    width: 16px;
    height: 16px;
    background: #e0e0e0;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.mc-url-text {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-title-preview {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    color: #1a0dab;
    margin: 2px 0 4px 0;
    font-weight: 400;
    cursor: pointer;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mc-title-preview:hover {
    text-decoration: underline;
}

.mc-desc-preview {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #4d5156;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .mc-layout {
        grid-template-columns: 1fr;
    }

    .mc-counter-info {
        flex-direction: column;
        gap: 2px;
    }

    .mc-device-toggle {
        flex-direction: column;
    }

    .mc-device-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mc-inputs,
    .mc-preview {
        padding: 16px;
    }
}
