/* ================================================================
   PROJECT MEMORY — theme-clean-home.css
   pm-panel-home: hero, button groups, reminders summary strip.
   Depends on: theme-clean.css (tokens), theme-clean-shell.css
   ================================================================ */


/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Logo tap target inside pm-hero. Opens about modal.
 * @apps project-memory
 * @type        css-class
 * @name        pm-hero-logo
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-hero-logo {
    cursor: pointer;
    flex-shrink: 0;
}

/**
 * @pm-registry
 * @prefix pm
 * @description App logo image inside pm-hero.
 * @apps project-memory
 * @type        css-class
 * @name        pm-hero-logo-img
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-hero-logo-img {
    width: clamp(40px, 10vw, 64px);
    height: clamp(40px, 10vw, 64px);
    object-fit: contain;
    border-radius: 50%;
    opacity: 0.95;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Text block inside pm-hero — title and tagline.
 * @apps project-memory
 * @type        css-class
 * @name        pm-hero-text
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-hero-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/**
 * @pm-registry
 * @prefix pm
 * @description App name heading inside pm-hero.
 * @apps project-memory
 * @type        css-class
 * @name        pm-hero-title
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-hero-title {
    font-size: clamp(1rem, 5.5vw, 2.35rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
    line-height: 1.1;
    text-shadow: 0 2px 12px var(--pm-overlay-dark-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/**
 * @pm-registry
 * @prefix pm
 * @description App tagline below pm-hero-title.
 * @apps project-memory
 * @type        css-class
 * @name        pm-hero-tagline
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-hero-tagline {
    font-size: clamp(0.65rem, 3vw, 1.25rem);
    font-weight: 700;
    color: var(--pm-overlay-white-strong);
    letter-spacing: 0.5px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/**
 * @pm-registry
 * @prefix pm
 * @description User avatar button in pm-hero. Opens profile sheet.
 * @apps project-memory
 * @type        css-class
 * @name        pm-hero-avatar
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-hero-avatar {
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    border-radius: 50%;
    background: var(--pm-overlay-white-soft);
    color: white;
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pm-overlay-white-mid);
    cursor: pointer;
    flex-shrink: 0;
    align-self: flex-start;
}


/* ----------------------------------------------------------------
   HOME BUTTON GROUPS
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Outer wrapper for all home panel button groups.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-groups
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-groups {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
    flex-shrink: 0;
}

/**
 * @pm-registry
 * @prefix pm
 * @description A labelled group of home panel buttons
 *   (Record a Memory, Your Memories, Communications).
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-group
 * @tags        TODO
 * @called-by   pm-one-sheet.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Section label above each pm-home-group button row.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-group-label
 * @tags        TODO
 * @called-by   pm-one-sheet.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-group-label {
    font-size: clamp(0.7rem, 2.8vw, 1.1rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pm-overlay-white-strong);
    padding-left: 4px;
    margin-top: clamp(6px, 2dvh, 14px);
}

/**
 * @pm-registry
 * @prefix pm
 * @description A row of equally-spaced home panel buttons.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-button-row
 * @tags        TODO
 * @called-by   pm-one-sheet.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-button-row {
    display: flex;
    gap: 10px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Individual home panel action button — icon above label.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-button
 * @tags        TODO
 * @called-by   pm-one-sheet.html
 * @depends-on  --pm-radius-medium, --pm-shadow-small
 * @updated 2026-04-13
 */
.pm-home-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    aspect-ratio: 1;
    border-radius: var(--pm-radius-medium);
    background: var(--pm-overlay-dark-soft);
    border: 1.5px solid var(--pm-overlay-white-soft);
    box-shadow: var(--pm-shadow-small);
    transition: transform 0.15s, background 0.15s;
    cursor: pointer;
    position: relative;
}
.pm-home-button:active {
    transform: scale(0.95);
    background: var(--pm-overlay-white-soft);
}

/**
 * @pm-registry
 * @prefix pm
 * @description Modifier for stub/coming-soon home buttons.
 *   Slightly muted to signal they are not yet active.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-button-stub
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-button-stub {
    opacity: 0.6;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Emoji icon container inside pm-home-button.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-button-icon
 * @tags        TODO
 * @called-by   pm-one-sheet.html
 * @depends-on  --pm-radius-full
 * @updated 2026-04-13
 */
.pm-home-button-icon {
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    line-height: 1;
    width: clamp(40px, 10vw, 62px);
    height: clamp(40px, 10vw, 62px);
    border-radius: var(--pm-radius-full);
    background: var(--pm-overlay-white-faint);
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Dynamic calendar icon wrapper — replaces the static emoji.
 * @apps project-memory
 * @type        css-class
 * @name        pm-calendar-icon-dynamic
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-27
 */
.pm-calendar-icon-dynamic {
    width: clamp(42px, 12vw, 62px);
    height: clamp(42px, 12vw, 62px);
    background: white;
    border-radius: var(--pm-radius-xsmall);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--pm-border);
    box-shadow: var(--pm-shadow-small);
}

/**
 * @pm-registry
 * @prefix pm
 * @description Red header for the dynamic calendar icon showing the month.
 * @apps project-memory
 * @type        css-class
 * @name        pm-calendar-icon-dynamic-header
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-27
 */
.pm-calendar-icon-dynamic-header {
    height: 28%;
    background: var(--pm-danger);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(0.7rem, 3vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Body of the dynamic calendar icon showing the numeric day.
 * @apps project-memory
 * @type        css-class
 * @name        pm-calendar-icon-dynamic-day
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-27
 */
.pm-calendar-icon-dynamic-day {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    font-weight: 800;
    color: var(--pm-text-2);
    line-height: 1;
    padding-top: 1px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Footer of the dynamic calendar icon showing the weekday name.
 * @apps project-memory
 * @type        css-class
 * @name        pm-calendar-icon-dynamic-dayname
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-27
 */
.pm-calendar-icon-dynamic-dayname {
    font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    font-weight: 700;
    color: var(--pm-text-3);
    text-transform: uppercase;
    padding-bottom: 3px;
    text-align: center;
    line-height: 1;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Text label below pm-home-button-icon.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-button-label
 * @tags        TODO
 * @called-by   pm-one-sheet.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-button-label {
    font-size: clamp(0.7rem, 2.8vw, 1.05rem);
    font-weight: 700;
    color: white;
}


/* ----------------------------------------------------------------
   REMINDERS SUMMARY STRIP
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Urgent reminders strip on the home panel.
 *   Shows today's and overdue reminders at a glance.
 * @apps project-memory
 * @type        css-class
 * @name        pm-summary-reminders
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-summary-reminders {
    position: relative;
    z-index: 1;
    padding: 0 16px;
    margin-top: 20px;
    margin-bottom: 16px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Section heading above the reminders summary strip.
 * @apps project-memory
 * @type        css-class
 * @name        pm-summary-reminders-label
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-summary-reminders-label {
    font-size: clamp(0.7rem, 2.8vw, 1.1rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pm-overlay-white-strong);
    margin-bottom: 8px;
    padding-left: 4px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Individual reminder chip in the home summary strip.
 *   Tapping navigates to the Reminders panel.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-reminder-card
 * @tags        TODO
 * @called-by   none found
 * @depends-on  --pm-radius-medium
 * @updated 2026-04-13
 */
.pm-home-reminder-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: var(--pm-overlay-white-faint);
    border: 1px solid var(--pm-overlay-white-soft);
    border-radius: var(--pm-radius-medium);
    transition: background 0.15s;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Tappable body area (title + date) inside pm-home-reminder-card. Opens edit modal.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-reminder-card-body
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-reminder-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-home-reminder-card-header
 * @tags        home
 * @description A flex container for the header of a home panel reminder card, aligning the title and status badges on a single row.
 * @depends-on  reminderService.js:696
 * @called-by  none found
 * @updated     2026-04-14
 */
.pm-home-reminder-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Done button on the right of pm-home-reminder-card.
 *   Marks the reminder done without opening the edit modal.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-reminder-card-actions
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-reminder-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-home-reminder-card-edit
 * @tags        home
 * @description The circular 'Edit' button (✏️) on a home panel reminder card. It is hidden by default and appears when the card is in an active state.
 * @depends-on  --pm-radius-full, reminderService.js:706
 * @called-by  none found
 * @updated     2026-04-14
 */
.pm-home-reminder-card-edit {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--pm-radius-full);
    background: var(--pm-overlay-white-soft);
    border: 1.5px solid var(--pm-overlay-white-mid);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.pm-home-reminder-card.pm-active .pm-home-reminder-card-edit,
.pm-home-reminder-card.pm-active .pm-home-reminder-card-delete {
    display: flex;
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-home-reminder-card-delete
 * @tags        home
 * @description Styles a circular delete button on a home panel reminder card, hidden by default and shown on an active card.
 * @called-by   none found
 * @depends-on  --pm-radius-full, --pm-overlay-white-soft, --pm-overlay-white-mid
 * @updated     2026-05-05
 */
.pm-home-reminder-card-delete {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--pm-radius-full);
    background: var(--pm-overlay-white-soft);
    border: 1.5px solid var(--pm-overlay-white-mid);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.pm-home-reminder-card-delete:active {
    background: var(--pm-danger-light);
}

.pm-home-reminder-card-edit:active {
    background: var(--pm-overlay-white-soft);
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-home-reminder-card-done
 * @tags        home
 * @description The circular 'Mark Done' button (✓) on a reminder card in the home panel's summary strip.
 * @depends-on  --pm-radius-full, reminderService.js:704
 * @called-by  none found
 * @updated     2026-04-14
 */
.pm-home-reminder-card-done {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--pm-radius-full);
    background: var(--pm-overlay-white-soft);
    border: 1.5px solid var(--pm-overlay-white-mid);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.pm-home-reminder-card-done:active {
    background: var(--pm-overlay-success);
    border-color: var(--pm-overlay-success-border);
}

.pm-home-reminder-card:active {
    background: var(--pm-overlay-white-soft);
}

.pm-home-reminder-card.pm-active {
    background: var(--pm-overlay-white-soft);
    align-items: flex-start;
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-home-reminder-card-notes
 * @tags        home
 * @description Container for the optional notes text in a home panel reminder card. Hidden by default, it appears when the card is in an active state.
 * @depends-on  reminderService.js:691
 * @called-by  none found
 * @updated     2026-04-14
 */
.pm-home-reminder-card-notes {
    display: none;
    font-size: 0.82rem;
    color: var(--pm-overlay-white-muted);
    margin-top: 4px;
}

.pm-home-reminder-card.pm-active .pm-home-reminder-card-notes {
    display: block;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Reminder title inside pm-home-reminder-card.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-reminder-card-topic
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-reminder-card-topic {
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 700;
    color: white;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status badge inside home reminder cards — same token colours as reminders panel badges
   but inverted (white text on semi-transparent backgrounds) for the dark home panel */
.pm-home-reminder-card .pm-badge-reminder.pm-overdue {
    background: var(--pm-overlay-danger);
    color: white;
    border: none;
}
.pm-home-reminder-card .pm-badge-reminder.pm-soon {
    background: var(--pm-overlay-warning);
    color: white;
    border: none;
}
.pm-home-reminder-card .pm-badge-reminder.pm-today {
    background: var(--pm-overlay-white-soft);
    color: white;
    border: none;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Due date text inside pm-home-reminder-card.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-reminder-card-text
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-reminder-card-text {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    font-weight: 600;
    color: var(--pm-overlay-white-strong);
    white-space: nowrap;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Empty state message inside pm-home-reminders-list.
 * @apps project-memory
 * @type        css-class
 * @name        pm-home-reminders-empty
 * @tags        TODO
 * @called-by   none found
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-home-reminders-empty {
    color: var(--pm-overlay-white-muted);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 4px;
}
