/* ============================================================
   LinkedIn Post Scheduler — Frontend Styles
   ============================================================ */

.lps-frontend-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #1d2226;
}

.lps-no-posts {
    text-align: center;
    padding: 48px 24px;
    color: #666d74;
    font-size: 16px;
    background: #f3f6fb;
    border-radius: 12px;
}

/* Post List */
.lps-post-list { display: flex; flex-direction: column; gap: 14px; }

/* Post Item */
.lps-post-item {
    border: 1.5px solid #dde1e6;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.lps-post-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,.11); }

/* Post Header (clickable) */
.lps-post-header {
    padding: 18px 22px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    align-items: center;
    transition: background .15s;
    user-select: none;
}
.lps-post-header:hover { background: #f7f9fc; }

.lps-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    grid-column: 1;
    grid-row: 1;
}
.lps-product-badge {
    background: #0a66c2;
    color: #fff;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.lps-post-datetime {
    font-size: 12px;
    color: #666d74;
}

.lps-post-preview-text {
    grid-column: 1;
    grid-row: 2;
    font-size: 14px;
    color: #1d2226;
    line-height: 1.5;
}

.lps-expand-icon {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f6fb;
    flex-shrink: 0;
    transition: background .2s;
}
.lps-post-header:hover .lps-expand-icon { background: #e0eaf5; }
.lps-arrow {
    font-size: 11px;
    color: #0a66c2;
    transition: transform .25s ease;
    display: inline-block;
}
.lps-post-item.is-open .lps-arrow { transform: rotate(180deg); }

/* Post Body */
.lps-post-body {
    border-top: 1.5px solid #dde1e6;
    animation: lps-slide-down .25s ease;
}

@keyframes lps-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* LinkedIn-style preview */
.lps-linkedin-preview { padding: 20px 22px; background: #f3f6fb; }

.lps-li-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.lps-li-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0a66c2;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lps-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #0a66c2;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .01em;
}
.lps-copy-btn:hover { background: #004182; transform: translateY(-1px); }
.lps-copy-btn:active { transform: scale(.97); }
.lps-copy-btn.copied { background: #057642; }

/* LinkedIn Card mockup */
.lps-li-card {
    background: #fff;
    border: 1px solid #dde1e6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.lps-li-card-header { padding: 16px 18px 12px; border-bottom: 1px solid #f0f2f4; }
.lps-li-avatar-wrap { display: flex; align-items: center; gap: 11px; }
.lps-li-avatar-circle {
    width: 44px;
    height: 44px;
    background: #0a66c2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.lps-li-author { font-size: 14px; font-weight: 700; color: #1d2226; line-height: 1.3; }
.lps-li-timing { font-size: 12px; color: #666d74; margin-top: 2px; }

.lps-li-content {
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.75;
    color: #1d2226;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.lps-li-reactions {
    display: flex;
    gap: 0;
    border-top: 1px solid #f0f2f4;
}
.lps-li-reactions span {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 13px;
    color: #666d74;
    font-weight: 600;
    cursor: default;
    border-right: 1px solid #f0f2f4;
    transition: background .15s;
}
.lps-li-reactions span:last-child { border-right: none; }
.lps-li-reactions span:hover { background: #f3f6fb; }
.lps-li-react-label { font-size: 11px; }

/* Tip */
.lps-copy-tip {
    margin-top: 14px;
    font-size: 12.5px;
    color: #666d74;
    background: #fff;
    border: 1px solid #dde1e6;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.6;
}

/* Toast */
.lps-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #057642;
    color: #fff;
    padding: 13px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
    z-index: 9999;
    animation: lps-toast-in .3s ease;
    white-space: nowrap;
}
@keyframes lps-toast-in {
    from { opacity: 0; bottom: 10px; }
    to   { opacity: 1; bottom: 30px; }
}

/* Responsive */
@media (max-width: 520px) {
    .lps-post-header { padding: 14px 16px; }
    .lps-linkedin-preview { padding: 14px 14px; }
    .lps-li-reactions span { font-size: 11px; padding: 9px 4px; }
    .lps-li-react-label { display: none; }
    .lps-copy-btn { padding: 8px 14px; font-size: 12px; }
}
