/* ============================================================
   DedicaQR — Sprint 33 — Settings Extension
   CSS namespace: .set-*
   Hub + forms para SEO, Social, Contact, Recaptcha, Google OAuth, Sitemap
   ============================================================ */

.set-page { padding: 24px; max-width: 1100px; margin: 0 auto; color: #1a1a1a; }

.set-page-head { display: flex; justify-content: space-between; align-items: flex-start;
                 gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.set-back {
    display: inline-block;
    margin-bottom: 6px;
    color: #6b6b6b;
    text-decoration: none;
    font-size: 13px;
}
.set-back:hover { color: #C9184A; }
.set-title { margin: 0 0 4px; font-family: 'Playfair Display', Georgia, serif;
             color: #C9184A; font-size: 28px; font-weight: 700; }
.set-subtitle { margin: 0; color: #6b6b6b; font-size: 14px; max-width: 800px; }
.set-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* === FLASH MESSAGE === */
.set-flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    border-left: 4px solid;
}
.set-flash-success { background: #DCFCE7; color: #166534; border-color: #10b981; }
.set-flash-error   { background: #FEE2E2; color: #991B1B; border-color: #ef4444; }
.set-flash-info    { background: #DBEAFE; color: #1E40AF; border-color: #3b82f6; }

/* === HUB GRID (cards de secciones) === */
.set-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.set-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}
.set-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,24,74,0.10);
    border-color: #FFD6DD;
    color: inherit;
}
.set-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
    display: inline-flex;
    width: 56px; height: 56px;
    align-items: center; justify-content: center;
    border-radius: 12px;
    background: #FFF1EE;
}
.set-card-icon-smtp      { background: #DBEAFE; }
.set-card-icon-seo       { background: #DCFCE7; }
.set-card-icon-social    { background: #F3E8FF; }
.set-card-icon-contact   { background: #FEF3C7; }
.set-card-icon-recaptcha { background: #FEE2E2; }
.set-card-icon-google    { background: #FFF1EE; }
.set-card-icon-sitemap   { background: #DBEAFE; }
.set-card-icon-sharing   { background: #DCFCE7; }
.set-card-icon-qr        { background: #FEF3C7; }
.set-card-icon-payments  { background: #F3E8FF; }
.set-card-icon-gdpr      { background: #E5E7EB; }

.set-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Playfair Display', Georgia, serif;
}
.set-card-desc {
    margin: 0;
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.5;
}

/* === FORM === */
.set-form {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.set-fieldset {
    border: none;
    padding: 0 0 18px;
    margin: 0 0 18px;
    border-bottom: 1px solid #FFE4EC;
}
.set-fieldset:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.set-fieldset legend {
    font-size: 13px;
    font-weight: 700;
    color: #C9184A;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    padding: 0;
}

.set-help {
    margin: -6px 0 14px;
    color: #6b6b6b;
    font-size: 12px;
    font-style: italic;
}

.set-field { margin-bottom: 14px; }
.set-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4b4b4b;
    margin-bottom: 5px;
}
.set-field input[type="text"],
.set-field input[type="email"],
.set-field input[type="url"],
.set-field input[type="password"],
.set-field input[type="number"],
.set-field select,
.set-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.set-field input:focus,
.set-field select:focus,
.set-field textarea:focus {
    outline: none;
    border-color: #C9184A;
    box-shadow: 0 0 0 3px rgba(201,24,74,0.10);
}
.set-field textarea { resize: vertical; min-height: 60px; font-family: inherit; }

.set-field small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6b6b6b;
}

.set-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.set-field-check label {
    font-weight: 400;
    color: #1a1a1a;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.set-field-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #C9184A;
}
.set-toggle-label strong {
    font-weight: 700;
}

.set-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #FFE4EC;
}

/* === INFO BOX (Recaptcha, Google OAuth) === */
.set-info-box {
    background: #FFFAFA;
    border-left: 4px solid #D4A24C;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}
.set-info-box strong { display: block; margin-bottom: 6px; color: #4b4b4b; }
.set-info-box p { margin: 0 0 8px; color: #6b6b6b; line-height: 1.5; }
.set-info-box a {
    color: #C9184A;
    text-decoration: none;
    font-weight: 600;
}
.set-info-box a:hover { text-decoration: underline; }

.set-redirect-uri {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px dashed #FFD6DD;
    border-radius: 6px;
    flex-wrap: wrap;
}
.set-redirect-uri span {
    font-size: 11px;
    color: #6b6b6b;
    text-transform: uppercase;
    font-weight: 600;
}
.set-redirect-uri code {
    flex: 1;
    background: transparent;
    color: #C9184A;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    min-width: 200px;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .set-page { padding: 16px; }
    .set-hub-grid { grid-template-columns: 1fr; }
    .set-field-row { grid-template-columns: 1fr; }
    .set-form-actions { flex-direction: column-reverse; }
    .set-form-actions .btn { width: 100%; }
}


/* === Callout Google OAuth Benefits === */
.set-callout-google-benefits {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 2px solid #10b981;
    border-left: 6px solid #10b981;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}
.set-callout-google-benefits .set-callout-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}
.set-callout-google-benefits .set-callout-body {
    flex: 1;
}
.set-callout-google-benefits strong {
    display: block;
    color: #065f46;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.set-callout-google-benefits p {
    color: #064e3b;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
}
.set-callout-google-benefits ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.set-callout-google-benefits ul li {
    color: #064e3b;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    line-height: 1.5;
}
.set-callout-google-benefits ul li strong {
    display: inline;
    color: #047857;
    font-size: inherit;
    margin-bottom: 0;
}
