/**
 * Version Notes:
 * File: /assets/css/pf-social-style.css
 * Version: 0.0.6
 * Last Modified: 2025-12-09 11:55 AM
 * Changes:
 * - Added Modal styles
 * - Updated Comment styles
 * - Added .pf-social-spacer
 */

/* Container */
.pf-social-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #e2e8f0;
}

.pf-social-wrapper * {
    box-sizing: border-box;
}

/* Publisher Box */
.pf-social-publisher {
    margin-bottom: 30px;
    background: var(--um-web3-glass, rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

.pf-publisher-header h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.pf-publisher-body textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 15px !important;
    min-height: 100px;
    resize: vertical;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.pf-publisher-body textarea:focus {
    border-color: var(--um-web3-accent, #00b4d8) !important;
    box-shadow: 0 0 10px var(--um-web3-accent, #00b4d8);
}

.pf-remove-media-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.pf-remove-media-btn:hover {
    background: red;
    transform: scale(1.1);
}

.pf-video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.pf-publisher-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    /* Separate tools (left) and button (right) */
    align-items: center;
}

.pf-publisher-tools {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pf-icon-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.pf-icon-btn:hover {
    color: #fff;
}

.pf-publisher-footer button#pf-submit-post {
    background: linear-gradient(45deg, var(--um-web3-accent, #00b4d8), #7928ca) !important;
    background-color: transparent !important;
    color: white !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 10px 24px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pf-publisher-footer button#pf-submit-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--um-web3-accent, #00b4d8);
}

/* Feed Cards */
.pf-social-card {
    background: var(--um-web3-glass, rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 100%;
    /* Fix layout issues */
    display: flex;
    flex-direction: column;
}

.pf-inline-editor {
    margin-bottom: 15px;
}

.pf-edit-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.pf-edit-controls {
    text-align: right;
    gap: 10px;
    display: flex;
    justify-content: flex-end;
}

.pf-btn-small {
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.pf-cancel-edit {
    background: transparent;
    color: #94a3b8;
}

.pf-cancel-edit:hover {
    color: #fff;
}

.pf-save-inline {
    background: var(--um-web3-accent, #00b4d8);
    color: #fff;
}

/* Card Header */
.pf-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pf-author-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid var(--um-web3-accent, #00b4d8);
    box-shadow: 0 0 8px var(--um-web3-accent, #00b4d8);
}

.pf-author-info {
    margin-left: 15px;
    flex-grow: 1;
}

.pf-author-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.pf-time {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 3px;
}

/* Content */
.pf-card-body {
    margin-top: 10px;
    margin-bottom: 25px;
    /* Added spacing */
}

.pf-content {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    word-wrap: break-word;
    /* Prevent overflow */
}

.pf-card-body .pf-content:empty {
    display: none;
    margin-bottom: 0;
}

.pf-hashtag {
    color: var(--um-web3-accent, #00b4d8);
    /* Active blue */
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.pf-c-likes {
    color: #94a3b8;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pf-c-likes i {
    color: var(--um-web3-accent, #00b4d8);
}

.pf-hashtag:hover {
    text-decoration: underline;
}

/* Media */
.pf-social-media {
    margin-top: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-social-spacer {
    height: 30px;
    width: 100%;
    clear: both;
}

/* Video Embed Override for Enfold/Avia */
.pf-social-media .avia-iframe-wrap {
    /* Reset the theme's aspect ratio hack */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    position: static !important;
}

.pf-social-media iframe {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Reset absolute positioning from hack */
    position: static !important;
    top: auto !important;
    left: auto !important;
}

.pf-social-media img {
    width: 100%;
    max-height: 500px;
    /* Prevent extremely tall images */
    object-fit: cover;
    /* Crop nicely if too tall */
    height: auto;
    display: block;
}

.pf-social-media iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    margin: 0;
    padding: 0;
    margin-bottom: 25px !important;
    /* Specificity Update: Force spacing */
}

.pf-social-media iframe:last-child {
    margin-bottom: 0 !important;
}

/* Link Preview (Internal) */
.pf-link-preview {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.pf-link-preview:hover {
    background: rgba(0, 0, 0, 0.4);
}

.pf-link-preview a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.pf-lp-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    width: 100%;
}

.pf-lp-content {
    padding: 15px;
}

.pf-lp-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}

.pf-lp-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pf-lp-meta {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
}

/* Action Buttons (Footer) */


/* Stats (UM Style) */
.pf-post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.pf-stat-left {
    display: flex;
    gap: 20px;
}

.pf-stat-item {
    display: flex;
    flex-direction: column;
}

.pf-stat-num {
    color: var(--um-web3-accent, #00b4d8);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.pf-stat-label {
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: lowercase;
}

.pf-faces {
    display: flex;
    flex-direction: row-reverse;
    /* Overlap effect */
}

.pf-face img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #1e293b;
    /* Match card bg */
    margin-left: -8px;
    transition: transform 0.2s;
}

.pf-face:hover img {
    transform: scale(1.1);
    z-index: 10;
}

/* Cleaned up Actions Bar */
.pf-card-footer .pf-actions {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    margin: 10px 0 20px 0;
    /* Space above and below */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-action-btn {
    cursor: pointer;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.pf-action-btn:hover {
    color: #fff;
}

.pf-action-btn i {
    font-size: 1.1rem;
}

/* Emoji Picker */
.pf-emoji-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.2rem;
    padding: 0 10px;
    transition: color 0.3s;
}

.pf-emoji-trigger:hover {
    color: #ffd700;
}

.pf-emoji-picker {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 200px;
    backdrop-filter: blur(10px);
}

.pf-emoji-item {
    font-size: 1.5rem;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none;
}

.pf-emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

/* Adjust Comment Input Wrap to accommodate new button */
.pf-comment-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-comment-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    resize: none;
    outline: none;
    padding: 8px 0;
    font-family: inherit;
    min-height: 36px;
}



.pf-comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s;
}

.pf-comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.pf-comment-body {
    flex-grow: 1;
}

.pf-comment-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-block;
    min-width: 200px;
}

.pf-comment-author-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    margin-right: 5px;
    font-size: 0.95rem;
}

.pf-comment-text {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.pf-comment-meta {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #94a3b8;
    padding-left: 5px;
}

.pf-c-action {
    color: #00b4d8;
    /* UM Blue */
    cursor: pointer;
    font-weight: 600;
    margin-right: 5px;
}

.pf-c-action:hover {
    text-decoration: underline;
}

.pf-sep {
    color: #475569;
    margin: 0 4px;
}

.pf-c-date {
    color: #64748b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pf-comment-author strong {
    color: #fff;
    margin-right: 5px;
}

.pf-comment-form {
    margin-top: 15px;
}

.pf-comment-input-wrap {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.pf-comment-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* border-radius: 20px; removed inner radius */
    padding: 10px 40px 10px 0;
    /* Remove left padding as wrapper has it */
    /* Right padding for icon */
    color: #fff;
    font-size: 0.95rem;
    resize: none;
    /* If using textarea */
    height: 44px;
    /* Fixed height for single line look */
    line-height: 24px;
    overflow: hidden;
    margin: 0;
}

.pf-comment-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.pf-comment-input:focus {
    outline: none;
}

.pf-comment-submit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--um-web3-accent, #00b4d8);
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    background: transparent !important;
    border: none;
}

.pf-comment-submit:hover {
    opacity: 1;
}


/* Actions Menu (Top Right) */
.pf-social-actions-menu {
    position: relative;
}

.pf-trigger {
    cursor: pointer;
    font-size: 0.8rem;
    color: #94a3b8;
    padding: 5px;
}

.pf-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 100;
    min-width: 100px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.pf-social-actions-menu:hover .pf-menu {
    display: block;
}

.pf-menu li {
    padding: 10px 15px;
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.pf-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Loader */
.pf-spinner {
    display: inline-block;
    color: var(--um-web3-accent, #00b4d8);
    font-weight: bold;
    animation: pulse 1.5s infinite;
}


/* === END OF FILE (FILENAME: /assets/css/pf-social-style.css) === */