/* Container */
.wpwp-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 320px;
    margin: 20px auto;
}

/* Header bar */
.wpwp-header-bar {
    background: #007bff;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.wpwp-header-title {
    display: inline-block;
}

/* Notices */
.wpwp-notices {
    margin-bottom: 8px;
}

.wpwp-notice {
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 4px;
}

.wpwp-notice-error {
    background: #ffecec;
    color: #a20000;
    border: 1px solid #ffb3b3;
}

/* Post form wrapper */
.wpwp-post-form {
    border: 1px solid #e3e7ef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 12px 12px 10px 12px;
    background: #ffffff;
    margin-bottom: 4px;
}

/* Dashed tap-to-post pill */
.wpwp-upload-area {
    border: 2px dashed #007bff;
    border-radius: 999px;
    background: #f9fbff;
    padding: 12px;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpwp-upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wpwp-upload-label span {
    pointer-events: none;
}

.wpwp-upload-input {
    display: none;
}

/* Small preview thumbnail */
.wpwp-upload-preview {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.wpwp-upload-preview img {
    max-width: 50px;
    max-height: 38px;
    border-radius: 8px;
    display: block;
}

/* Inputs */
.wpwp-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
}

.wpwp-textarea {
    border-radius: 10px;
    border: 1px solid #ccd0d5;
    padding: 8px;
    resize: vertical;
    margin-bottom: 8px;
}

/* Buttons */
.wpwp-post-actions {
    text-align: right;
}

.wpwp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

/* Fixed blue button */
.wpwp-btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.wpwp-btn-primary:hover {
    background-color: #0069d9;
}

.wpwp-btn-primary:active {
    background-color: #005cbf;
}

.wpwp-btn-secondary {
    background: #f0f2f5;
    color: #111827;
}

/* Login note */
.wpwp-login-note,
.wpwp-login-note-small {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 8px 0;
}

/* Posts */
.wpwp-post-list {
    margin-top: 6px;
}

.wpwp-post-item {
    margin-bottom: 14px;
}

/* Post header */
.wpwp-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 4px;
    padding: 0 2px;
}

.wpwp-post-author {
    font-weight: 600;
    color: #111827;
}

.wpwp-post-time {
    color: #9ca3af;
}

/* Image card */
.wpwp-post-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 6px 6px 8px 6px;
}

.wpwp-post-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.wpwp-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Caption overlay */
.wpwp-post-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.1));
    color: #ffffff;
    font-size: 12px;
    font-style: italic;
}

/* Text-only post */
.wpwp-post-text-only {
    font-size: 13px;
    padding: 8px;
}

/* Actions row under image */
.wpwp-post-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 0 2px;
}

.wpwp-share-btn {
    background: #f0f2f5;
    border-radius: 999px;
    border: none;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
    text-transform: lowercase;
}

.wpwp-like-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wpwp-like-emoji {
    font-size: 13px;
}

/* Delete button (small X) */
.wpwp-delete-form {
    margin-left: auto;
}

.wpwp-delete-btn {
    background: #ffecec;
    color: #b91c1c;
    border-radius: 999px;
    border: none;
    font-size: 11px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}

/* Comments card */
.wpwp-comments-card {
    margin-top: 6px;
    background: #ffffff;
    border-radius: 18px;
    padding: 8px 10px 10px 10px;
    border: 1px solid #e3e7ef;
}

.wpwp-comments-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Comment list */
.wpwp-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 6px 0;
}

.wpwp-comment-item {
    font-size: 12px;
    margin-bottom: 4px;
}

.wpwp-comment-author {
    font-weight: 600;
}

.wpwp-comment-text {
    color: #374151;
}

/* Comment form */
.wpwp-comment-form .wpwp-textarea {
    margin-top: 4px;
    margin-bottom: 6px;
}

.wpwp-empty {
    font-size: 13px;
    text-align: center;
    color: #6b7280;
    margin-top: 10px;
}
