/* PPF News & Events Floating Popup */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@700&display=swap');

#ppf-popup-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: 'Barlow', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#ppf-popup-wrap.ppf-left {
    right: auto;
    left: 24px;
    align-items: flex-start;
}

/* ── Toggle button ─────────────────────────────────────── */
#ppf-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #D2600A;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 18px 10px 14px;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(210,96,10,0.45);
    transition: transform 0.15s, background 0.15s;
    letter-spacing: 0.3px;
}

#ppf-toggle:hover {
    background: #b85209;
    transform: translateY(-1px);
}

#ppf-toggle:active { transform: scale(0.97); }

.ppf-bell { display: flex; align-items: center; animation: ppf-ring 4s ease-in-out infinite; }

@keyframes ppf-ring {
    0%,85%,100% { transform: rotate(0deg); }
    88% { transform: rotate(-18deg); }
    92% { transform: rotate(18deg); }
    96% { transform: rotate(-10deg); }
    98% { transform: rotate(6deg); }
}

.ppf-count-badge {
    background: #fff;
    color: #D2600A;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* ── Panel ─────────────────────────────────────────────── */
#ppf-panel {
    width: 270px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(210,96,10,0.15);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,0,0,0.13);
    transform-origin: bottom right;
    animation: ppf-open 0.22s cubic-bezier(0.34,1.2,0.64,1) forwards;
}

#ppf-panel[hidden] { display: none; }

.ppf-left #ppf-panel { transform-origin: bottom left; }

@keyframes ppf-open {
    from { opacity: 0; transform: scale(0.88) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Panel header ──────────────────────────────────────── */
.ppf-panel-header {
    background: #D2600A;
    padding: 9px 11px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ppf-panel-title { display: flex; align-items: baseline; gap: 6px; }

.ppf-logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
}

.ppf-panel-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.ppf-header-controls { display: flex; align-items: center; gap: 8px; }

.ppf-tabs {
    display: flex;
    background: rgba(0,0,0,0.15);
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}

.ppf-tab {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    background: transparent;
    transition: all 0.15s;
}

.ppf-tab.active {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.ppf-tab:hover:not(.active) { color: #fff; }

#ppf-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

#ppf-close:hover { background: rgba(255,255,255,0.28); }

/* ── Feed list ─────────────────────────────────────────── */
.ppf-list {
    max-height: 220px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.ppf-list::-webkit-scrollbar { width: 4px; }
.ppf-list::-webkit-scrollbar-track { background: transparent; }
.ppf-list::-webkit-scrollbar-thumb { background: #f0d0bb; border-radius: 2px; }

.ppf-loading {
    text-align: center;
    padding: 28px 16px;
    font-size: 13px;
    color: #aaa;
}

.ppf-feed-item {
    display: flex;
    align-items: stretch;
    border-bottom: 0.5px solid #f5ede6;
    text-decoration: none;
    transition: background 0.12s;
    cursor: pointer;
}

.ppf-feed-item:last-child { border-bottom: none; }
.ppf-feed-item:hover { background: #fff8f4; }
.ppf-feed-item:hover .ppf-item-bar { opacity: 1; }
.ppf-feed-item:hover .ppf-arrow { color: #D2600A; }

.ppf-item-bar {
    width: 3px;
    flex-shrink: 0;
    background: #D2600A;
    opacity: 0.12;
    transition: opacity 0.15s;
}

.ppf-item-content {
    flex: 1;
    padding: 8px 10px 8px 9px;
}

.ppf-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.ppf-tag {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    padding: 1px 6px;
    border-radius: 10px;
}

.ppf-tag-news  { background: #fff0e0; color: #b85209; }
.ppf-tag-event { background: #e8f1ff; color: #1a5fbf; }

.ppf-item-date {
    font-size: 9px;
    color: #bbb;
}

.ppf-item-title {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ppf-item-excerpt {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ppf-arrow {
    font-size: 16px;
    color: #ddd;
    display: flex;
    align-items: center;
    padding-right: 12px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.ppf-empty {
    text-align: center;
    padding: 24px 16px;
    font-size: 13px;
    color: #bbb;
}

/* ── Ticker ────────────────────────────────────────────── */
.ppf-ticker-bar {
    background: #fff7f0;
    border-top: 0.5px solid #f5e0d0;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.ppf-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D2600A;
    flex-shrink: 0;
    animation: ppf-pulse 1.8s ease-in-out infinite;
}

@keyframes ppf-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

.ppf-ticker-track { overflow: hidden; flex: 1; }

.ppf-ticker-inner {
    display: flex;
    white-space: nowrap;
    animation: ppf-ticker 12s linear infinite;
}

.ppf-ticker-inner:hover { animation-play-state: paused; }

@keyframes ppf-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ppf-ticker-item {
    font-size: 11px;
    color: #8a5030;
    padding-right: 32px;
}

.ppf-ticker-sep {
    font-size: 10px;
    color: #D2600A;
    padding-right: 32px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 400px) {
    #ppf-popup-wrap { right: 12px; bottom: 12px; }
    #ppf-panel { width: calc(100vw - 24px); }
}
