/* Per-page hero preview mocks: Features */

/* ─── asset-library (hpf-gal-) ─────────────────────────────────────────── */

.hpf-gal-search {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    background: #f4f7fd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.hpf-gal-search-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #dce6f7;
}

.hpf-gal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.hpf-gal-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e6eefb;
    background: #f6faff;
}

.hpf-gal-thumb {
    height: 48px;
    background: linear-gradient(135deg, #e7f0ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #59B5F9;
}

.hpf-gal-label {
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 700;
    color: #9aa6c4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hpf-gal-item--pdf .hpf-gal-thumb { background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%); color: #e11d48; }
.hpf-gal-item--doc .hpf-gal-thumb { background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%); color: #2563eb; }
.hpf-gal-item--vid .hpf-gal-thumb { background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%); color: #7c3aed; }


/* ─── change-tracking (hpf-chg-) ───────────────────────────────────────── */

.hpf-chg-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.hpf-chg-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #eef3fb;
}

.hpf-chg-ins {
    padding: 1px 4px;
    border-radius: 3px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.hpf-chg-del {
    padding: 1px 4px;
    border-radius: 3px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 11px;
    text-decoration: line-through;
    white-space: nowrap;
}

.hpf-chg-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f4fb;
}

.hpf-chg-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.hpf-chg-btn--accept {
    background: #dcfce7;
    color: #15803d;
}

.hpf-chg-btn--reject {
    background: #fee2e2;
    color: #dc2626;
}

.hpf-chg-meta {
    margin-left: auto;
    font-size: 10px;
    color: #9aa6c4;
    white-space: nowrap;
}


/* ─── content-workflow status badges (hpf-wf-) ─────────────────────────── */

.hpf-wf-counts {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.hpf-wf-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}

.hpf-wf-badge--overdue {
    background: #fee2e2;
    color: #dc2626;
}

.hpf-wf-badge--soon {
    background: #fef3c7;
    color: #d97706;
}


/* ─── content-calendar (hpf-cal-) ──────────────────────────────────────── */

.hpf-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-top: 6px;
}

.hpf-cal-day-hdr {
    font-size: 8.5px;
    font-weight: 700;
    color: #9aa6c4;
    text-align: center;
    padding: 2px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hpf-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 30px;
    border-radius: 5px;
    padding: 3px 2px;
    font-size: 10px;
    font-weight: 600;
    color: #3a4564;
    text-align: center;
    line-height: 1.2;
}

.hpf-cal-cell--today {
    background: #eaf2ff;
    color: #0961DB;
}

.hpf-cal-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 2px;
    flex: none;
}

.hpf-cal-items {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f4fb;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hpf-cal-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hpf-cal-item__date {
    font-size: 10px;
    font-weight: 600;
    color: #9aa6c4;
    min-width: 34px;
    flex-shrink: 0;
}

.hpf-cal-item__type {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    flex-shrink: 0;
}

.hpf-cal-item__title {
    font-size: 11px;
    font-weight: 500;
    color: #3a4564;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ─── content-collaboration (hpf-collab-) ──────────────────────────────── */

.hpf-collab-avstack {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.hpf-collab-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #e7f0ff;
    background-size: 400% 200%;
    margin-left: -8px;
    flex: none;
}

.hpf-collab-av:not(.av) {
    background-size: cover;
    background-position: center;
}

.hpf-collab-av:first-child {
    margin-left: 0;
}

.hpf-collab-avmore {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #eaf2ff;
    color: #0961DB;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    flex: none;
}

.hpf-collab-online {
    margin-left: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hpf-collab-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex: none;
}

.hpf-collab-comment {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 7px;
}

.hpf-collab-av-sm {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #e7f0ff;
    background-size: 400% 200%;
    margin-top: 1px;
}

.hpf-collab-av-sm:not(.av) {
    background-size: cover;
    background-position: center;
}

.hpf-collab-bubble {
    flex: 1;
    padding: 7px 9px;
    background: #f4f7fd;
    border-radius: 0 8px 8px 8px;
    border: 1px solid #e6eefb;
}

.hpf-collab-bubble--reply {
    background: #fff;
    border-color: #d4e6ff;
}

.hpf-collab-bubble__name {
    font-size: 10px;
    font-weight: 700;
    color: #0961DB;
    margin-bottom: 4px;
}

.hpf-collab-bubble__line {
    height: 7px;
    border-radius: 3px;
    background: #dce6f7;
    margin-bottom: 3px;
}

.hpf-collab-bubble__line:last-child {
    margin-bottom: 0;
}


/* ─── content-editor (hpf-doc-) ────────────────────────────────────────── */

.hpf-doc-lines {
    margin: 6px 0;
}

.hpf-doc-line {
    height: 9px;
    border-radius: 4px;
    background: #eef3fb;
    margin-bottom: 5px;
}

.hpf-doc-line--title {
    height: 13px;
    background: #dce6f7;
    width: 72%;
    margin-bottom: 8px;
}

.hpf-doc-line--cursor {
    display: flex;
    align-items: center;
    background: transparent;
    height: 12px;
}

.hpf-doc-cursor {
    display: inline-block;
    width: 2px;
    height: 11px;
    background: #0961DB;
    border-radius: 1px;
    animation: hpfDocBlink 1s step-start infinite;
}

.hpf-doc-line--selected {
    background: rgba(59, 130, 246, 0.18);
    border-radius: 2px;
    position: relative;
}

.hpf-doc-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f4fb;
    font-size: 10px;
    font-weight: 500;
    color: #9aa6c4;
}

.hpf-doc-status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex: none;
    animation: hpfStatusPulse 2.5s ease-in-out infinite;
}

@keyframes hpfStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hpf-doc-comment {
    margin: 6px 0;
    padding: 7px 10px;
    background: #fffbe6;
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    font-size: 10.5px;
    color: #7a5a0a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hpf-doc-comment__av {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e7f0ff;
}

.hpf-doc-comment__av:not(.av) {
    background-size: cover;
    background-position: center;
}

@keyframes hpfDocBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* ─── content-hierarchy (hpf-hier-) ────────────────────────────────────── */

.hpf-hier-tree {
    margin-top: 4px;
}

.hpf-hier-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #3a4564;
    border-bottom: 1px solid #f0f4fb;
}

.hpf-hier-row:last-child {
    border-bottom: none;
}

.hpf-hier-row--l2 {
    padding-left: 16px;
    font-weight: 400;
    color: #5a6484;
}

.hpf-hier-row--l3 {
    padding-left: 32px;
    font-size: 11px;
    font-weight: 400;
    color: #9aa6c4;
}

.hpf-hier-icon {
    flex: none;
    width: 14px;
    height: 14px;
    color: #59B5F9;
}

.hpf-hier-icon--folder {
    color: #f59e0b;
}

.hpf-hier-badge {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: #eef3fb;
    color: #9aa6c4;
    white-space: nowrap;
    flex: none;
}

.hpf-hier-badge--blue {
    background: #eaf2ff;
    color: #0961DB;
}

.hpf-hier-badge--done {
    background: #dcfce7;
    color: #16a34a;
}

.hpf-hier-ai-cta {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(90deg, #eef4ff, #f5f0ff);
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    flex: none;
    white-space: nowrap;
}


/* ─── content-templates (hpf-tmpl-) ────────────────────────────────────── */

.hpf-tmpl-field {
    margin-bottom: 8px;
    border-radius: 7px;
}

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

.hpf-tmpl-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #9aa6c4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.hpf-tmpl-input {
    height: 28px;
    border-radius: 6px;
    background: #f4f7fd;
    border: 1px solid #e6eefb;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.hpf-tmpl-input-bar {
    height: 8px;
    border-radius: 3px;
    background: #dce6f7;
    width: 65%;
    display: block;
}

.hpf-tmpl-textarea {
    min-height: 44px;
    border-radius: 6px;
    background: #f4f7fd;
    border: 1px solid #e6eefb;
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hpf-tmpl-textarea-line {
    height: 7px;
    border-radius: 3px;
    background: #dce6f7;
    display: block;
}

.hpf-tmpl-select {
    height: 28px;
    border-radius: 6px;
    background: #f4f7fd;
    border: 1px solid #e6eefb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.hpf-tmpl-select-val {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #3a4564;
}

.hpf-tmpl-select-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}

.hpf-tmpl-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hpf-tmpl-limit {
    font-size: 9.5px;
    font-weight: 500;
    color: #b0bbd4;
    margin-left: auto;
}

.hpf-tmpl-wordcount {
    font-size: 9.5px;
    font-weight: 600;
    color: #0961DB;
    margin-left: auto;
}

.hpf-tmpl-progress {
    margin-top: 4px;
    height: 3px;
    border-radius: 999px;
    background: #eef3fb;
    overflow: hidden;
}

.hpf-tmpl-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #59B5F9, #0961DB);
}

/* Sequential field highlight — Title, Target Keyword, Content (3 s each, 9 s loop) */
@keyframes hpfTmplInputHighlight {
    0%    { background: #e6effe; border-color: #adc4f0; }
    33%   { background: #e6effe; border-color: #adc4f0; }
    38%   { background: #f4f7fd; border-color: #e6eefb; }
    100%  { background: #f4f7fd; border-color: #e6eefb; }
}

@keyframes hpfTmplLabelActive {
    0%    { color: #4a5780; }
    33%   { color: #4a5780; }
    38%   { color: #9aa6c4; }
    100%  { color: #9aa6c4; }
}

/* lhp-mock__head is child 1, fields are children 2–4 (Title, Target Keyword, Content) */
.lhp-mock > .hpf-tmpl-field:nth-child(2) .hpf-tmpl-input    { animation: hpfTmplInputHighlight 9s ease infinite 0s; }
.lhp-mock > .hpf-tmpl-field:nth-child(3) .hpf-tmpl-input    { animation: hpfTmplInputHighlight 9s ease infinite 3s; }
.lhp-mock > .hpf-tmpl-field:nth-child(4) .hpf-tmpl-textarea { animation: hpfTmplInputHighlight 9s ease infinite 6s; }

.lhp-mock > .hpf-tmpl-field:nth-child(2) .hpf-tmpl-label    { animation: hpfTmplLabelActive 9s ease infinite 0s; }
.lhp-mock > .hpf-tmpl-field:nth-child(3) .hpf-tmpl-label    { animation: hpfTmplLabelActive 9s ease infinite 3s; }
.lhp-mock > .hpf-tmpl-field:nth-child(4) .hpf-tmpl-label    { animation: hpfTmplLabelActive 9s ease infinite 6s; }


/* ─── easy-ai (hpf-ai-) ────────────────────────────────────────────────── */

.hpf-ai-prompt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #f0f7ff, #e8f3ff);
    border: 1px solid #c7def9;
    border-radius: 10px;
    margin-bottom: 10px;
}

.hpf-ai-prompt__icon {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #0961DB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hpf-ai-prompt__text {
    flex: 1;
    font-size: 10.5px;
    color: #3a4564;
    line-height: 1.45;
}

.hpf-ai-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eaf2ff;
    font-size: 10px;
    font-weight: 700;
    color: #0961DB;
    margin-bottom: 8px;
}

.hpf-ai-shimmer {
    position: relative;
    overflow: hidden;
    padding: 2px 0;
}

.hpf-ai-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
    animation: hpfAiShimmer 1.6s ease-in-out infinite;
}

@keyframes hpfAiShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hpf-ai-row {
    height: 9px;
    border-radius: 4px;
    background: #eef3fb;
    margin-bottom: 6px;
}

.hpf-ai-row--wide  { width: 90%; }
.hpf-ai-row--mid   { width: 70%; }
.hpf-ai-row--short { width: 50%; }


/* ─── Responsive ≤900px ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .hpf-cal-grid {
        gap: 1px;
    }

    .hpf-cal-cell {
        min-height: 24px;
        font-size: 9px;
    }

    .hpf-gal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


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

.hpf-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
}

.hpf-typing-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0961DB;
    animation: hpfTyping 1.2s ease-in-out infinite;
}

.hpf-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.hpf-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes hpfTyping {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ─── content-workflow approve-button shimmer (hpf-approve-shimmer) ─────── */

@keyframes hpf-shimmer-sweep {
    0%      { transform: translateX(-150%) skewX(-15deg); }
    19.35%  { transform: translateX(300%) skewX(-15deg); }
    100%    { transform: translateX(300%) skewX(-15deg); }
}

.hpf-approve-shimmer {
    position: relative;
    overflow: hidden;
}

.hpf-approve-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 80%
    );
    animation: hpf-shimmer-sweep 3.1s ease-in-out infinite;
    pointer-events: none;
}


@media (prefers-reduced-motion: reduce) {
    .hpf-doc-cursor,
    .hpf-doc-status__dot,
    .hpf-ai-shimmer::after,
    .hpf-approve-shimmer::after,
    .hpf-typing-dots span,
    .lhp-mock > .hpf-tmpl-field .hpf-tmpl-input,
    .lhp-mock > .hpf-tmpl-field .hpf-tmpl-textarea,
    .lhp-mock > .hpf-tmpl-field .hpf-tmpl-label {
        animation: none !important;
    }
}
