/* ── ASPG Generate Weekly Prompts — Admin Styles ────────────────────────── */

.aspg-weekly-wrap {
    max-width: 900px;
}

.aspg-weekly-heading {
    font-size: 1.5rem;
    margin-bottom: 0.25rem !important;
}

.aspg-weekly-intro {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem !important;
}

/* ── Generate button ─────────────────────────────────────────────────────── */

.aspg-weekly-controls {
    margin-bottom: 1.25rem;
}

.aspg-weekly-btn.button-primary {
    background: #b8842a !important;
    border-color: #8a5f18 !important;
    color: #fff !important;
    font-size: 1rem !important;
    padding: 0.55rem 1.4rem !important;
    height: auto !important;
    box-shadow: 0 2px 8px rgba(184,132,42,0.3) !important;
    transition: background 0.15s, transform 0.1s !important;
}

.aspg-weekly-btn.button-primary:hover:not(:disabled) {
    background: #8a5f18 !important;
    transform: translateY(-1px) !important;
}

.aspg-weekly-btn.button-primary:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* ── Status bar ──────────────────────────────────────────────────────────── */

.aspg-weekly-status {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aspg-status-loading {
    background: #fef9ec;
    border: 1px solid #f0d080;
    color: #7a5c0a;
}

.aspg-status-error {
    background: #fdf0ef;
    border: 1px solid #e8a09a;
    color: #922b21;
}

.aspg-status-success {
    background: #edf7ef;
    border: 1px solid #90cfa0;
    color: #1e5c2e;
}

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

.aspg-status-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #c9a030;
    border-top-color: transparent;
    border-radius: 50%;
    animation: aspg-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ── Export bar ──────────────────────────────────────────────────────────── */

.aspg-weekly-export-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.aspg-weekly-results-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
}

.aspg-weekly-export-btns {
    display: flex;
    gap: 0.5rem;
}

.aspg-weekly-export-btns .button {
    font-size: 0.85rem !important;
    padding: 4px 12px !important;
    height: auto !important;
    border-color: #b8842a !important;
    color: #8a5f18 !important;
    transition: background 0.15s !important;
}

.aspg-weekly-export-btns .button:hover {
    background: #fdf6e8 !important;
}

/* ── Prompts table ───────────────────────────────────────────────────────── */

.aspg-weekly-table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.aspg-weekly-table thead tr {
    background: #b8842a;
}

.aspg-weekly-table thead th {
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.75rem 1rem;
    border: none !important;
}

.aspg-col-genre {
    width: 180px;
    white-space: nowrap;
}

.aspg-col-prompt {
    width: auto;
}

.aspg-weekly-table tbody tr {
    transition: background 0.15s;
}

.aspg-row-even {
    background: #fdf6e8;
}

.aspg-row-odd {
    background: #fff;
}

.aspg-weekly-table tbody tr:hover {
    background: #faebd4 !important;
}

.aspg-weekly-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #ede0c8 !important;
    vertical-align: top;
    font-size: 0.92rem;
    color: #2c1f0e;
    line-height: 1.55;
}

.aspg-weekly-table tbody tr:last-child td {
    border-bottom: none !important;
}

.aspg-genre-pill {
    display: inline-block;
    background: rgba(184,132,42,0.12);
    color: #7a4f10;
    border: 1px solid rgba(184,132,42,0.35);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Footer / clear button ───────────────────────────────────────────────── */

.aspg-weekly-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.aspg-clear-btn {
    color: #c0392b !important;
    border-color: #c0392b !important;
    font-size: 0.85rem !important;
    padding: 4px 14px !important;
    height: auto !important;
    transition: background 0.15s !important;
}

.aspg-clear-btn:hover {
    background: #fdf0ef !important;
}
