/* ==========================================================================
   SkySEOManager — LLMs.txt Manager Tab
   ========================================================================== */

/* -------------------------------------------------------------------------
   Stat Cards
   ------------------------------------------------------------------------- */
.skyllm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.skyllm-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 20px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.skyllm-stat-card:hover {
    border-color: #c9c9c9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skyllm-stat-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.skyllm-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.skyllm-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.skyllm-stat-body strong {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.3;
}

.skyllm-stat-body strong a {
    color: #2271b1;
    text-decoration: none;
}

.skyllm-stat-body strong a:hover {
    text-decoration: underline;
}

.skyllm-stat-body span {
    font-size: 12px;
    color: #646970;
}

/* -------------------------------------------------------------------------
   Mode Tabs
   ------------------------------------------------------------------------- */
.skyllm-mode-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 18px;
    width: fit-content;
}

.skyllm-mode-tab {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #f6f7f7;
    border: none;
    border-right: 1px solid #c9c9c9;
    color: #50575e;
    transition: background 0.15s ease, color 0.15s ease;
}

.skyllm-mode-tab:last-child {
    border-right: none;
}

.skyllm-mode-tab:hover {
    background: #e9e9e9;
    color: #1d2327;
}

.skyllm-mode-tab.skyllm-mode-active {
    background: #2271b1;
    color: #fff;
}

/* -------------------------------------------------------------------------
   Panels
   ------------------------------------------------------------------------- */
.skyllm-panel {
    background: #f9f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 18px;
}

.skyllm-field {
    margin-bottom: 18px;
}

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

.skyllm-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.skyllm-field textarea,
.skyllm-field input[type="number"] {
    width: 100%;
    max-width: 640px;
    font-size: 13px;
}

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

.skyllm-field .description {
    margin-top: 6px;
    margin-bottom: 0;
}

.skyllm-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: start;
}

.skyllm-field-row .skyllm-field {
    margin-bottom: 0;
}

.skyllm-field-row label input[type="checkbox"] {
    margin-right: 6px;
}

.skyllm-post-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 4px;
}

.skyllm-pt {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    font-weight: 400 !important;
}

.skyllm-pt input {
    margin: 0 !important;
}

/* -------------------------------------------------------------------------
   Content Editor
   ------------------------------------------------------------------------- */
.skyllm-content-editor {
    width: 100%;
    min-height: 320px;
    padding: 14px 16px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    background: #282c34;
    color: #abb2bf;
    font-size: 13px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    line-height: 1.6;
    resize: vertical;
    tab-size: 4;
}

.skyllm-content-editor:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* -------------------------------------------------------------------------
   Actions / Save
   ------------------------------------------------------------------------- */
.skyllm-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

#skyllm-generate-ai {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

#skyllm-generate-ai .dashicons {
    margin: 0 !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.skyllm-savebar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* -------------------------------------------------------------------------
   Toast
   ------------------------------------------------------------------------- */
.skyllm-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    background: #1d2327;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    animation: skyllm-toast-in 0.3s ease forwards;
}

.skyllm-toast.skyllm-toast-out {
    animation: skyllm-toast-out 0.3s ease forwards;
}

@keyframes skyllm-toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skyllm-toast-out {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}