@import url('fonts.css');

/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /home/ploi/automarketer-ai.com/public/wp-content/plugins/automarketer-ai/assets/css/link-checker.css
   Description: Link Checker admin page styles - NUCLEAR+++
   Last Edited: 2026-05-16
   ================================================== */

#wpcontent,
#wpbody,
#wpbody-content {
    background: #F9FAFB;
}

.amai-lc-wrap {
    max-width: 1100px;
    margin: 32px auto 60px;
    padding: 0 24px;
    font-family: 'DM Sans', sans-serif;
    color: #1C1917;
}

/* Header */
.amai-lc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.amai-lc-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding-top: 6px;
}

.amai-lc-title {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #D97757;
    margin: 0 0 6px;
    line-height: 1.2;
}

.amai-lc-subtitle {
    font-size: 14px;
    color: #78716C;
    margin: 0;
}

.amai-lc-last-scan {
    font-size: 12px;
    color: #A8A29E;
}

/* Buttons */
.amai-lc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.amai-lc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.amai-lc-btn--primary {
    background: #D97757;
    color: #fff;
}

.amai-lc-btn--primary:hover:not(:disabled) {
    background: #C4633F;
}

.amai-lc-btn--secondary {
    background: #fff;
    color: #D97757;
    border: 1.5px solid #D97757;
}

.amai-lc-btn--secondary:hover:not(:disabled) {
    background: #FEF3EE;
}

.amai-lc-btn--ghost {
    background: transparent;
    color: #78716C;
    border: 1.5px solid #E7E5E4;
}

.amai-lc-btn--ghost:hover:not(:disabled) {
    background: #F5F5F4;
}

.amai-lc-btn--ai {
    background: #F5F5F4;
    color: #44403C;
    border: 1.5px solid #E7E5E4;
    font-size: 12px;
    padding: 6px 12px;
}

.amai-lc-btn--ai:hover:not(:disabled) {
    background: #FEF3EE;
    border-color: #D97757;
    color: #D97757;
}

.amai-lc-btn--fix {
    background: #fff;
    color: #D97757;
    border: 1.5px solid #E7DDD5;
    font-size: 12px;
    padding: 6px 12px;
}

.amai-lc-btn--fix:hover:not(:disabled) {
    background: #FEF3EE;
    border-color: #D97757;
}

/* Progress bar */
.amai-lc-progress {
    margin-bottom: 20px;
}

.amai-lc-progress__bar {
    height: 6px;
    background: #E7E5E4;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.amai-lc-progress__fill {
    height: 100%;
    background: #D97757;
    border-radius: 99px;
    width: 0%;
    transition: width 0.3s ease;
}

.amai-lc-progress__label {
    font-size: 12px;
    color: #78716C;
}

/* Summary stats */
.amai-lc-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.amai-lc-summary__stat {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.amai-lc-summary__num {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #D97757;
    line-height: 1;
}

.amai-lc-summary__label {
    font-size: 12px;
    color: #78716C;
}

/* Loading */
.amai-lc-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 48px 0;
    color: #78716C;
    font-size: 14px;
}

.amai-lc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #E7E5E4;
    border-top-color: #D97757;
    border-radius: 50%;
    animation: amai-lc-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes amai-lc-spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.amai-lc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 64px 0;
    text-align: center;
}

.amai-lc-empty p {
    font-size: 16px;
    font-weight: 600;
    color: #1C1917;
    margin: 8px 0 0;
}

.amai-lc-empty span {
    font-size: 13px;
    color: #A8A29E;
}

/* Table */
.amai-lc-table-wrap {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    overflow: hidden;
}

.amai-lc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.amai-lc-table thead th {
    background: #FAFAF9;
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #78716C;
    border-bottom: 1.5px solid #E7E5E4;
}

.amai-lc-table tbody tr {
    border-bottom: 1px solid #F5F5F4;
    transition: background 0.1s;
}

.amai-lc-table tbody tr:last-child {
    border-bottom: none;
}

.amai-lc-table tbody tr:hover {
    background: #FAFAF9;
}

.amai-lc-table tbody tr.amai-lc-row--scanning {
    opacity: 0.6;
}

.amai-lc-table td {
    padding: 14px 16px;
    vertical-align: top;
}

.amai-lc-col--post { width: 22%; }
.amai-lc-col--anchor { width: 18%; }
.amai-lc-col--url { width: 30%; }
.amai-lc-col--status { width: 10%; }
.amai-lc-col--actions { width: 20%; }

/* Post title cell */
.amai-lc-post-title {
    font-weight: 600;
    color: #1C1917;
    display: block;
    margin-bottom: 4px;
}

.amai-lc-post-edit {
    font-size: 11px;
    color: #A8A29E;
    text-decoration: none;
}

.amai-lc-post-edit:hover {
    color: #D97757;
}

/* URL cell */
.amai-lc-url {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #78716C;
    word-break: break-all;
    display: block;
    max-width: 320px;
}

/* Anchor text */
.amai-lc-anchor {
    color: #44403C;
    font-style: italic;
}

/* Status badge */
.amai-lc-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.amai-lc-status--4xx {
    background: #FEF2F2;
    color: #DC2626;
}

.amai-lc-status--5xx {
    background: #FFF7ED;
    color: #EA580C;
}

.amai-lc-status--timeout {
    background: #F5F5F4;
    color: #78716C;
}

/* Actions cell */
.amai-lc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Suggestion panel */
.amai-lc-suggestion {
    margin-top: 12px;
    background: #FFFBF9;
    border: 1.5px solid #E7DDD5;
    border-left: 4px solid #D97757;
    border-radius: 12px;
    padding: 20px;
}

.amai-lc-suggestion__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amai-lc-suggestion__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #D97757;
}

.amai-lc-suggestion__source {
    font-size: 13px;
    font-weight: 600;
    color: #1C1917;
}

.amai-lc-suggestion__reason {
    font-size: 13px;
    color: #78716C;
    line-height: 1.5;
}

.amai-lc-suggestion__url-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.amai-lc-url-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1.5px solid #E7E5E4;
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #1C1917;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.amai-lc-url-input:focus {
    border-color: #D97757;
}

/* Row-level suggestion (injected below the row) */
.amai-lc-suggestion-row td {
    padding: 0 16px 16px;
    background: #FAFAF9;
}

/* Scanning row indicator */
.amai-lc-scan-row {
    background: #FFFBF9;
    border-bottom: 1px solid #F5F5F4;
}

.amai-lc-scan-row td {
    padding: 10px 16px;
    color: #78716C;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Inline AI spinner */
.amai-lc-ai-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #E7E5E4;
    border-top-color: #D97757;
    border-radius: 50%;
    animation: amai-lc-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

/* Section divider rows (post grouping) */
.amai-lc-group-header td {
    background: #F9FAFB;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #A8A29E;
    border-bottom: 1px solid #F0F0EF;
}

/* Toast notifications */
#amai-lc-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 380px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

#amai-lc-toast.amai-lc-toast--in {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#amai-lc-toast.amai-lc-toast--out {
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
}

.amai-lc-toast--error {
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    color: #991B1B;
}

.amai-lc-toast--error svg {
    color: #DC2626;
    flex-shrink: 0;
    margin-top: 1px;
}

.amai-lc-toast--success {
    background: #F0FDF4;
    border: 1.5px solid #BBF7D0;
    color: #166534;
}

.amai-lc-toast--success svg {
    color: #16A34A;
    flex-shrink: 0;
    margin-top: 1px;
}

.amai-lc-toast span {
    flex: 1;
}

.amai-lc-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.5;
    flex-shrink: 0;
    margin-top: 2px;
    transition: opacity 0.15s;
}

.amai-lc-toast__close:hover {
    opacity: 1;
}