/* =============================================================
   Conference Favorites — Star Button + Favorites List
   ============================================================= */

:root {
    --cf-star:   #f5a623;
    --cf-muted:  #6b7280;
    --cf-border: #e5e7eb;
    --cf-danger: #ef4444;
    --cf-ease:   0.2s ease;
}

/* =============================================================
   Favorite button wrapper — invisible, just sets alignment
   ============================================================= */

.cf-fav-wrap {
    display: flex;
}

/* =============================================================
   Favorite button base — all visual chrome comes from
   Elementor controls; this is just the functional skeleton
   ============================================================= */

.cf-fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    background: none;
    border: 1.5px solid currentColor;
    border-radius: 30px;
    padding: 7px 16px;
    color: var(--cf-muted);
    transition: color var(--cf-ease), background var(--cf-ease),
                border-color var(--cf-ease), box-shadow var(--cf-ease);
}

/* Ghost — no border */
.cf-btn--ghost      { border-color: transparent !important; padding-left: .2rem; padding-right: .2rem; }

/* Icon-only — circular */
.cf-btn--icon-only  { padding: .35rem; border-radius: 50%; }

/* Filled default state */
.cf-btn--filled {
    background: var(--cf-border);
    border-color: transparent;
}

.cf-fav-btn:hover {
    color: var(--cf-star);
    border-color: var(--cf-star);
    background: rgba(245,166,35,.07);
}

/* Star SVG */
.cf-star-icon {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: fill var(--cf-ease), stroke var(--cf-ease);
}

/* ── Saved / active state ── */
.cf-card.is-favorite .cf-fav-btn {
    color: var(--cf-star);
    border-color: var(--cf-star);
    background: rgba(245,166,35,.08);
}

.cf-card.is-favorite .cf-star-icon {
    fill: var(--cf-star);
    stroke: var(--cf-star);
}

/* ── Pop animation on click ── */
@keyframes cf-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.52); }
    70%  { transform: scale(.84); }
    100% { transform: scale(1); }
}

.cf-card.cf-popping .cf-star-icon {
    animation: cf-pop .38s cubic-bezier(.36,.07,.19,.97) both;
}

/* =============================================================
   Favorites List Widget
   ============================================================= */

.cf-favorites-list {
    font-size: .9rem;
}

/* Heading — base only; color/typo come from Elementor */
.cf-fl-heading {
    margin: 0 0 12px;
}

/* Items container */
.cf-fl-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Empty state — hidden via CSS when items exist */
.cf-fl-items:not(:empty) ~ .cf-fl-empty { display: none !important; }

.cf-fl-empty {
    color: var(--cf-muted);
    font-size: .84rem;
    text-align: center;
    padding: 1.2rem .75rem;
    border: 1.5px dashed var(--cf-border);
    border-radius: 8px;
    line-height: 1.5;
    margin: 0;
}

/* ── Single favorite item ── */
.cf-fl-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    transition: box-shadow var(--cf-ease);
}

@keyframes cf-fl-in {
    from { opacity: 0; transform: translateX(-7px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cf-fl-out {
    from { opacity: 1; max-height: 120px; padding-top: 10px; padding-bottom: 10px; }
    to   { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; overflow: hidden; }
}

.cf-fl-item           { animation: cf-fl-in .22s ease both; }
.cf-fl-item.cf-removing { animation: cf-fl-out .24s ease both; overflow: hidden; }

/* Item body */
.cf-fl-body {
    flex: 1;
    min-width: 0;
}

/* Title */
.cf-fl-title {
    display: block;
    font-weight: 600;
    font-size: .84rem;
    color: var(--cf-text, #111827);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    margin-bottom: .2rem;
    transition: color var(--cf-ease);
}

/* Meta row */
.cf-fl-meta {
    font-size: .72rem;
    color: var(--cf-muted);
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
}

.cf-fl-timeslot {
    color: var(--cf-star);
    font-weight: 700;
}

.cf-fl-sep {
    color: var(--cf-border);
    user-select: none;
}

/* Remove button */
.cf-fl-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cf-muted);
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color var(--cf-ease), background var(--cf-ease);
    margin-top: 1px;
}

.cf-fl-remove svg {
    display: block;
    width: 14px;
    height: 14px;
}

.cf-fl-remove:hover {
    color: var(--cf-danger);
    background: rgba(239,68,68,.08);
}

/* Clear all button — base; styled via Elementor */
.cf-fl-clear {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: .38rem .75rem;
    background: none;
    border: 1px solid var(--cf-border);
    border-radius: 6px;
    font-size: .75rem;
    color: var(--cf-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--cf-ease);
    text-align: center;
}

.cf-fl-clear:hover {
    border-color: var(--cf-danger);
    color: var(--cf-danger);
    background: rgba(239,68,68,.05);
}

/* =============================================================
   Print button
   ============================================================= */

.cf-fl-print {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 9px 16px;
    background: #1a1a2e;
    border: none;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--cf-ease), color var(--cf-ease);
    gap: 6px;
}

.cf-fl-print:hover {
    background: #2d2d4e;
}

/* Hide print button when favorites list is empty */
.cf-fl-items:empty ~ .cf-fl-print {
    display: none;
}
