/* Previzualizator Meta Google - seotoolpro.ro */

.pmg-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Inputs */
.pmg-inputs {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pmg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pmg-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pmg-field-header label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.pmg-hint {
    font-size: 12px;
    color: #9ca3af;
}

.pmg-counter {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.2s;
}

.pmg-counter.verde  { color: #059669; }
.pmg-counter.galben { color: #d97706; }
.pmg-counter.rosu   { color: #dc2626; }

.pmg-field input,
.pmg-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    resize: vertical;
}

.pmg-field input:focus,
.pmg-field textarea:focus {
    border-color: #7c3aed;
}

/* Progress bar */
.pmg-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}

.pmg-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
    background: #e5e7eb;
}

.pmg-progress-fill.verde  { background: #059669; }
.pmg-progress-fill.galben { background: #d97706; }
.pmg-progress-fill.rosu   { background: #dc2626; }

/* Status text */
.pmg-field-status {
    font-size: 12px;
    min-height: 16px;
    transition: color 0.2s;
}
.pmg-field-status.verde  { color: #059669; }
.pmg-field-status.galben { color: #d97706; }
.pmg-field-status.rosu   { color: #dc2626; }

/* Toggle desktop/mobil */
.pmg-toggle-row {
    display: flex;
    gap: 10px;
}

.pmg-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pmg-toggle-btn.active,
.pmg-toggle-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #f5f3ff;
}

/* Preview wrap */
.pmg-preview-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.pmg-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Preview Desktop */
.pmg-desktop {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.pmg-google-logo {
    margin-bottom: 16px;
}

.pmg-result-url {
    font-size: 13px;
    color: #202124;
    margin-bottom: 4px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmg-result-title {
    font-size: 20px;
    color: #1a0dab;
    font-family: Arial, sans-serif;
    margin-bottom: 6px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: normal;
}

.pmg-result-title:hover {
    text-decoration: underline;
}

.pmg-result-desc {
    font-size: 14px;
    color: #4d5156;
    font-family: Arial, sans-serif;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Preview Mobil */
.pmg-mobil-frame {
    max-width: 375px;
    margin: 0 auto;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.pmg-mobil {
    padding: 0;
}

.pmg-result-favicon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pmg-favicon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    flex-shrink: 0;
}

.pmg-result-url-mobil {
    font-size: 12px;
    color: #202124;
    font-family: Arial, sans-serif;
}

.pmg-mobil-title {
    font-size: 17px !important;
    -webkit-line-clamp: 3 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    overflow: hidden !important;
}

.pmg-mobil-desc {
    font-size: 13px !important;
    -webkit-line-clamp: 3 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Sugestii */
.pmg-sugestii {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.pmg-sugestii-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 14px;
}

.pmg-sugestie {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pmg-sugestie:last-child {
    margin-bottom: 0;
}

.pmg-sugestie.bine   { background: #ecfdf5; color: #065f46; border-left: 3px solid #059669; }
.pmg-sugestie.atentie { background: #fffbeb; color: #92400e; border-left: 3px solid #d97706; }
.pmg-sugestie.eroare { background: #fef2f2; color: #991b1b; border-left: 3px solid #dc2626; }
.pmg-sugestie.info   { background: #eff6ff; color: #1e40af; border-left: 3px solid #3b82f6; }

/* Scor SEO */
.pmg-scor-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-align: center;
}

.pmg-scor-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.pmg-scor-bar-wrap {
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pmg-scor-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s;
    background: #059669;
}

.pmg-scor-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

@media (max-width: 600px) {
    .pmg-result-title {
        font-size: 17px;
    }
    .pmg-inputs {
        padding: 16px;
    }
}
