/* Native Sitemap Customizer - Admin Styles */

/* ==========================================================================
   Settings grid - row-aligned two-column layout
   Each row shares left/right sections so tops align
   ========================================================================== */

.ayudawp-nsm-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

/* Responsive: single column on smaller screens */
@media (max-width: 1280px) {
    .ayudawp-nsm-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Sitemap URL info bar
   ========================================================================== */

.ayudawp-nsm-info-bar {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ayudawp-nsm-info-bar .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #2271b1;
}

.ayudawp-nsm-info-bar code {
    background: #f0f6fc;
    color: #2271b1;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* ==========================================================================
   Section styling
   ========================================================================== */

.ayudawp-nsm-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.ayudawp-nsm-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcde;
    font-size: 14px;
    font-weight: 600;
}

.ayudawp-nsm-section label {
    display: block;
    padding: 6px 0;
    font-size: 13px;
}

.ayudawp-nsm-section label:hover {
    background-color: #f6f7f7;
    padding-left: 5px;
    margin-left: -5px;
}

.ayudawp-nsm-section code {
    font-size: 11px;
    color: #646970;
    background: #f0f0f1;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
}

/* ==========================================================================
   Action buttons
   ========================================================================== */

.ayudawp-nsm-actions {
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #dcdcde;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ayudawp-nsm-actions .button {
    margin-right: 0;
}

.ayudawp-nsm-actions .button.disabled,
.ayudawp-nsm-actions .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Tips accordion (collapsible)
   ========================================================================== */

.ayudawp-nsm-tips-accordion {
    margin-bottom: 20px;
}

.ayudawp-nsm-tips-accordion summary {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
}

.ayudawp-nsm-tips-accordion summary::-webkit-details-marker {
    display: none;
}

.ayudawp-nsm-tips-accordion summary::before {
    content: "\f345";
    font-family: dashicons;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
    color: #2271b1;
    transition: transform 0.2s;
}

.ayudawp-nsm-tips-accordion[open] summary::before {
    transform: rotate(90deg);
}

.ayudawp-nsm-tips-content {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    padding: 16px 20px;
}

.ayudawp-nsm-tips-content ul {
    margin: 0 0 0 18px;
    line-height: 2;
}

.ayudawp-nsm-tips-content code {
    background: #f0f6fc;
    color: #2271b1;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.ayudawp-nsm-tips-content a {
    color: #2271b1;
    text-decoration: none;
}

/* ==========================================================================
   Promotional banner - Rotative 3-column layout
   ========================================================================== */

.ayudawp-nsm-promo-banner {
    background: #f6f7f7;
}

.ayudawp-nsm-promo-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 1200px) {
    .ayudawp-nsm-promo-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .ayudawp-nsm-promo-columns {
        grid-template-columns: 1fr;
    }
}

.ayudawp-nsm-promo-column {
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.ayudawp-nsm-promo-column .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #2271b1;
    margin-bottom: 10px;
}

.ayudawp-nsm-promo-column h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.ayudawp-nsm-promo-column p {
    margin: 0 0 14px;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
    flex-grow: 1;
}

/* 3-class specificity (0,3,0) to override WP core .wp-core-ui .button */
.ayudawp-nsm-promo-banner .ayudawp-nsm-promo-column .button {
    align-self: flex-start;
    margin-top: auto;
    white-space: normal;
    height: auto;
    min-height: auto;
    line-height: 1.4;
    padding: 6px 12px;
    text-align: center;
}

/* ==========================================================================
   Form elements within sections
   ========================================================================== */

.ayudawp-nsm-section textarea {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.ayudawp-nsm-section .form-table {
    margin-top: 10px;
}

.ayudawp-nsm-section .form-table th {
    padding-left: 0;
    font-weight: 600;
}

.ayudawp-nsm-section .form-table td {
    padding-bottom: 20px;
}

.ayudawp-nsm-section input[type="checkbox"] {
    margin-right: 6px;
}

.ayudawp-nsm-section input[type="number"] {
    width: 80px;
}

/* ==========================================================================
   Notice styling improvements
   ========================================================================== */

.notice.notice-error strong,
.notice.notice-warning strong {
    display: inline-block;
    margin-bottom: 5px;
}