/**
 * SEO & AI Page Styles
 *
 * Pure SCSS — NO CSS custom properties. No var(--*).
 * All colors use $presszone-forum-* SCSS variables with explicit dark-mode overrides.
 *
 * @package ForumPressZone
 */

@use 'abstracts/variables' as *;

// ─────────────────────────────────────────────
// Page wrapper — inherits .presszone-forum-settings layout
// ─────────────────────────────────────────────

.presszone-forum-seo-ai {
    // Layout shared with settings page — no extra wrapper needed.
}

// ─────────────────────────────────────────────
// Key display row
// ─────────────────────────────────────────────

.presszone-forum-seo-ai__key-row {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.presszone-forum-seo-ai__key-display {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    font-family: monospace;
    font-size: 13px;
    background: $presszone-forum-surface-2;
    border: 1px solid $presszone-forum-border;
    border-radius: 4px;
    color: $presszone-forum-text;
    letter-spacing: 0.02em;
    word-break: break-all;
}

body.dark-mode .presszone-forum-seo-ai__key-display {
    background: $presszone-forum-surface-2-dark;
    border-color: $presszone-forum-border-dark;
    color: $presszone-forum-text-dark;
}

// ─────────────────────────────────────────────
// Key action buttons row
// ─────────────────────────────────────────────

.presszone-forum-seo-ai__key-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

// ─────────────────────────────────────────────
// Key file link — styled as ghost button
// Override link styles so it matches button appearance
// ─────────────────────────────────────────────

a.presszone-forum-seo-ai__key-link {
    text-decoration: none;
    color: $presszone-forum-primary;

    &:hover {
        color: $presszone-forum-primary-hover;
        text-decoration: underline;
    }

    &:focus-visible {
        outline: 2px solid $presszone-forum-primary;
        outline-offset: 2px;
        border-radius: 4px;
    }
}

body.dark-mode a.presszone-forum-seo-ai__key-link {
    color: $presszone-forum-primary-dark;

    &:hover {
        color: $presszone-forum-primary-hover-dark;
    }
}

// ─────────────────────────────────────────────
// Responsive
// ─────────────────────────────────────────────

@media (max-width: 600px) {
    .presszone-forum-seo-ai__key-row {
        flex-direction: column;
        align-items: stretch;
    }

    .presszone-forum-seo-ai__key-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

// ─────────────────────────────────────────────
// Reduced motion
// ─────────────────────────────────────────────

@media (prefers-reduced-motion: reduce) {
    .presszone-forum-seo-ai__key-display {
        transition: none !important;
    }
}
