/**
 * Social Composer Styles
 *
 * Styles for the social media composer interface.
 *
 * @package SCDEV_Composer
 */

/* Social Composer Container */
.scdev-social-composer-wrapper {
    max-width: 600px;
    margin: 0 auto 30px;
}

.scdev-social-composer {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Composer Header */
.scdev-social-composer .composer-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.scdev-social-composer .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.scdev-social-composer .user-info {
    flex: 1;
}

.scdev-social-composer .user-name {
    font-weight: 600;
    font-size: 15px;
    color: #050505;
}

/* Composer Body */
.scdev-social-composer .composer-body {
    margin-bottom: 12px;
}

.scdev-social-composer .social-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.scdev-social-composer .social-textarea:focus {
    outline: none;
    border-color: #1877f2;
}

.scdev-social-composer .social-textarea::placeholder {
    color: #65676b;
}

/* Media Preview */
.scdev-social-composer .media-preview {
    margin-top: 12px;
    position: relative;
}

.scdev-social-composer .preview-container {
    position: relative;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    overflow: hidden;
}

.scdev-social-composer .preview-image,
.scdev-social-composer .preview-video {
    width: 100%;
    height: auto;
    display: block;
}

.scdev-social-composer .remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.scdev-social-composer .remove-media:hover {
    background: rgba(0, 0, 0, 0.8);
}

.scdev-social-composer .remove-media .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Emoji Picker */
.scdev-social-composer .emoji-picker-container {
    margin-top: 12px;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    background: #f7f8fa;
}

.scdev-social-composer .emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 4px;
}

.scdev-social-composer .emoji-item {
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.scdev-social-composer .emoji-item:hover {
    background: #e4e6eb;
}

/* Composer Footer */
.scdev-social-composer .composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e4e6eb;
}

.scdev-social-composer .composer-actions {
    display: flex;
    gap: 8px;
}

.scdev-social-composer .action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #65676b;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.scdev-social-composer .action-btn:hover {
    background: #f2f3f5;
}

.scdev-social-composer .action-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.scdev-social-composer .action-label {
    font-weight: 500;
}

.scdev-social-composer .post-btn {
    padding: 8px 24px;
    background: #1877f2;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;

/* No duplicate CSS rules found in this file (first 200 lines). */
    transition: background 0.2s;
}

.scdev-social-composer .post-btn:hover:not(:disabled) {
    background: #166fe5;
}

.scdev-social-composer .post-btn:disabled {
    background: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Composer Message */
.scdev-social-composer .composer-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.scdev-social-composer .composer-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.scdev-social-composer .composer-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Social Feed Styles */
.scdev-social-feed {
    max-width: 600px;
    margin: 0 auto;
}

.scdev-social-feed .feed-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scdev-social-feed .feed-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.scdev-social-feed .feed-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.scdev-social-feed .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.scdev-social-feed .author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scdev-social-feed .author-name {
    font-weight: 600;
    font-size: 15px;
    color: #050505;
}

.scdev-social-feed .post-date {
    font-size: 13px;
    color: #65676b;
}

.scdev-social-feed .post-options {
    position: relative;
}

.scdev-social-feed .options-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #050505;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-weight: bold;
}

.scdev-social-feed .options-btn:hover {
    background: #f2f3f5;
}

.scdev-social-feed .options-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.scdev-social-feed .options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 10;
    overflow: hidden;
}

.scdev-social-feed .options-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 14px;
    color: #050505;
    cursor: pointer;
    transition: background 0.2s;
}

.scdev-social-feed .options-menu button:hover {
    background: #f2f3f5;
}

.scdev-social-feed .options-menu button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #65676b;
}

.scdev-social-feed .options-menu button.option-delete {
    color: #d63638;
}

.scdev-social-feed .options-menu button.option-delete .dashicons {
    color: #d63638;
}

.scdev-social-feed .options-menu button.option-report {
    color: #d63638;
}

.scdev-social-feed .options-menu button.option-report .dashicons {
    color: #d63638;
}

.scdev-social-feed .options-menu button.favorited {
    color: #f0b429;
}

.scdev-social-feed .options-menu button.favorited .dashicons {
    color: #f0b429;
}

.scdev-social-feed .feed-item-content {
    margin-bottom: 12px;
}

.scdev-social-feed .post-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #050505;
}

.scdev-social-feed .content-text {
    font-size: 15px;
    line-height: 1.5;
    color: #050505;
    word-wrap: break-word;
}

.scdev-social-feed .post-media {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.scdev-social-feed .post-media img,
.scdev-social-feed .post-media video {
    width: 100%;
    height: auto;
    display: block;
}

.scdev-social-feed .feed-item-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4e6eb;
}

.scdev-social-feed .feed-item-actions button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #65676b;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.scdev-social-feed .feed-item-actions button:hover:not(:disabled) {
    background: #f2f3f5;
}

.scdev-social-feed .feed-item-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.scdev-social-feed .feed-item-actions .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.scdev-social-feed .feed-item-actions .action-text {
    font-weight: 500;
}

.scdev-social-feed .feed-item-actions .reaction-count,
.scdev-social-feed .feed-item-actions .share-count {
    font-size: 13px;
    color: #65676b;
}

.scdev-social-feed .feed-item-actions .post-views {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: #65676b;
    font-size: 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
}

.scdev-social-feed .feed-item-actions .post-views .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #65676b;
}

.scdev-social-feed .feed-item-actions .view-count,
.scdev-social-feed .feed-item-actions .comment-count {
    font-size: 13px;
    color: #65676b;
}

/* Reacted state - red color */
.scdev-social-feed .feed-item-actions .btn-react.reacted {
    color: #e74c3c;
}

.scdev-social-feed .feed-item-actions .btn-react.reacted .dashicons {
    color: #e74c3c;
}

.scdev-social-feed .feed-load-more {
    text-align: center;
    margin-top: 20px;
}

.scdev-social-feed .btn-load-more {
    padding: 10px 24px;
    background: #f2f3f5;
    border: none;
    border-radius: 6px;
    color: #050505;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.scdev-social-feed .btn-load-more:hover {
    background: #e4e6eb;
}

.scdev-social-feed-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.scdev-social-feed-empty p {
    font-size: 16px;
    color: #65676b;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scdev-social-composer-wrapper,
    .scdev-social-feed {
        max-width: 100%;
    }

    .scdev-social-composer {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .scdev-social-feed .feed-item {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .scdev-social-composer .action-label {
        display: none;
    }

    .scdev-social-composer .action-btn {
        padding: 8px;
    }
}

/* Notice Styles */
.scdev-composer-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.scdev-composer-notice p {
    margin: 0 0 10px;
    color: #856404;
}

.scdev-composer-notice .login-link {
    display: inline-block;
    padding: 8px 16px;
    background: #ffc107;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.scdev-composer-notice .login-link:hover {
    background: #e0a800;
}

/* ==========================================================================
   Multiple Image Grid Layouts
   ========================================================================== */

/* Visibility Select */
.scdev-social-composer .visibility-select {
    padding: 4px 8px;
    border: 1px solid #e4e6eb;
    border-radius: 4px;
    font-size: 13px;
    background: #f7f8fa;
    cursor: pointer;
    margin-top: 4px;
}

/* Media Preview Grid */
.scdev-social-composer .media-preview-grid {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.scdev-social-composer .image-grid {
    display: grid;
    gap: 2px;
    background: #000;
}

.scdev-social-composer .grid-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f1;
}

.scdev-social-composer .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scdev-social-composer .remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.scdev-social-composer .remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.scdev-social-composer .remove-image-btn .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Grid Layout: 1 Image */
.scdev-social-composer .grid-1 {
    grid-template-columns: 1fr;
}

.scdev-social-composer .grid-1 .grid-item {
    aspect-ratio: 16 / 9;
    max-height: 400px;
}

/* Grid Layout: 2 Images - Side by Side */
.scdev-social-composer .grid-2 {
    grid-template-columns: 1fr 1fr;
}

.scdev-social-composer .grid-2 .grid-item {
    aspect-ratio: 1 / 1;
}

/* Grid Layout: 3 Images - 1 Big, 2 Small */
.scdev-social-composer .grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.scdev-social-composer .grid-3 .grid-item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: 1 / 1;
}

.scdev-social-composer .grid-3 .grid-item:not(:first-child) {
    aspect-ratio: 1 / 1;
}

/* Grid Layout: 4 Images - 2x2 Grid */
.scdev-social-composer .grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.scdev-social-composer .grid-4 .grid-item {
    aspect-ratio: 1 / 1;
}

/* Grid Layout: 5 Images - 2 Top, 3 Bottom */
.scdev-social-composer .grid-5 {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
}

.scdev-social-composer .grid-5 .grid-item:nth-child(1),
.scdev-social-composer .grid-5 .grid-item:nth-child(2) {
    grid-column: span 1.5;
    aspect-ratio: 3 / 2;
}

.scdev-social-composer .grid-5 .grid-item:nth-child(n+3) {
    aspect-ratio: 1 / 1;
}

/* Grid Layout: 6+ Images - Flow from 3 pattern */
.scdev-social-composer .grid-6,
.scdev-social-composer .grid-many {
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: minmax(120px, auto);
}

.scdev-social-composer .grid-6 .grid-item:first-child,
.scdev-social-composer .grid-many .grid-item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: 1 / 1;
}

.scdev-social-composer .grid-6 .grid-item:not(:first-child),
.scdev-social-composer .grid-many .grid-item:not(:first-child) {
    aspect-ratio: 1 / 1;
}

/* Show "+X more" overlay for many images */
.scdev-social-composer .grid-many .grid-item:nth-child(6)::after {
    content: '+' attr(data-remaining);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
}

/* Responsive Grid Adjustments */
@media (max-width: 480px) {
    .scdev-social-composer .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .scdev-social-composer .grid-3 .grid-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
        aspect-ratio: 16 / 9;
    }
    
    .scdev-social-composer .grid-5 {
        grid-template-columns: 1fr 1fr;
    }
    
    .scdev-social-composer .grid-5 .grid-item:nth-child(1),
    .scdev-social-composer .grid-5 .grid-item:nth-child(2) {
        grid-column: span 1;
    }
}

/* ==========================================================================
   File Attachments
   ========================================================================== */

.scdev-social-composer .file-attachments {
    margin-top: 12px;
}

.scdev-social-composer .file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scdev-social-composer .file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f7f8fa;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
}

.scdev-social-composer .file-item .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #65676b;
}

.scdev-social-composer .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scdev-social-composer .file-name {
    font-size: 14px;
    color: #050505;
    font-weight: 500;
}

.scdev-social-composer .file-size {
    font-size: 12px;
    color: #65676b;
}

.scdev-social-composer .remove-file-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #65676b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.scdev-social-composer .remove-file-btn:hover {
    background: #e4e6eb;
    color: #050505;
}

.scdev-social-composer .remove-file-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* ==========================================================================
   Link Preview
   ========================================================================== */

.scdev-social-composer .link-preview-container {
    margin-top: 12px;
}

.scdev-social-composer .link-preview-card {
    position: relative;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.scdev-social-composer .remove-link-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.scdev-social-composer .remove-link-preview:hover {
    background: rgba(0, 0, 0, 0.9);
}

.scdev-social-composer .remove-link-preview .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.scdev-social-composer .link-preview-image {
    width: 100%;
    height: 200px;
    background: #f0f0f1;
    overflow: hidden;
}

.scdev-social-composer .link-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scdev-social-composer .link-preview-content {
    padding: 12px;
}

.scdev-social-composer .link-preview-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #050505;
    line-height: 1.3;
}

.scdev-social-composer .link-preview-description {
    margin: 0 0 8px;
    font-size: 14px;
    color: #65676b;
    line-height: 1.4;
}

.scdev-social-composer .link-preview-url {
    font-size: 12px;
    color: #8a8d91;
    text-transform: uppercase;
}

/* Link Input Modal */
.scdev-social-composer .link-input-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.scdev-social-composer .link-input-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scdev-social-composer .link-input-content h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #050505;
}

.scdev-social-composer .link-input-content input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 15px;
}

.scdev-social-composer .link-input-content input[type="url"]:focus {
    outline: none;
    border-color: #1877f2;
}

.scdev-social-composer .link-input-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.scdev-social-composer .btn-cancel,
.scdev-social-composer .btn-add-link {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.scdev-social-composer .btn-cancel {
    background: #e4e6eb;
    color: #050505;
}

.scdev-social-composer .btn-cancel:hover {
    background: #d8dadf;
}

.scdev-social-composer .btn-add-link {
    background: #1877f2;
    color: #fff;
}

.scdev-social-composer .btn-add-link:hover {
    background: #166fe5;
}

/* ==========================================================================
   Feed Post Media Gallery
   ========================================================================== */

.scdev-social-feed .post-media-gallery {
    display: grid;
    gap: 2px;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.scdev-social-feed .gallery-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f1;
}

.scdev-social-feed .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

/* Grid layouts for feed */
.scdev-social-feed .grid-1 {
    grid-template-columns: 1fr;
}

.scdev-social-feed .grid-1 .gallery-item {
    aspect-ratio: 16 / 9;
    max-height: 400px;
}

.scdev-social-feed .grid-2 {
    grid-template-columns: 1fr 1fr;
}

.scdev-social-feed .grid-2 .gallery-item {
    aspect-ratio: 1 / 1;
}

.scdev-social-feed .grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.scdev-social-feed .grid-3 .gallery-item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: 1 / 1;
}

.scdev-social-feed .grid-3 .gallery-item:not(:first-child) {
    aspect-ratio: 1 / 1;
}

.scdev-social-feed .grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.scdev-social-feed .grid-4 .gallery-item {
    aspect-ratio: 1 / 1;
}

.scdev-social-feed .grid-5,
.scdev-social-feed .grid-6,
.scdev-social-feed .grid-many {
    grid-template-columns: 2fr 1fr;
}

.scdev-social-feed .grid-5 .gallery-item:first-child,
.scdev-social-feed .grid-6 .gallery-item:first-child,
.scdev-social-feed .grid-many .gallery-item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: 1 / 1;
}

.scdev-social-feed .grid-5 .gallery-item:not(:first-child),
.scdev-social-feed .grid-6 .gallery-item:not(:first-child),
.scdev-social-feed .grid-many .gallery-item:not(:first-child) {
    aspect-ratio: 1 / 1;
}

/* ==========================================================================
   Feed Post File Attachments
   ========================================================================== */

.scdev-social-feed .post-file-attachments {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scdev-social-feed .file-attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f7f8fa;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
}

.scdev-social-feed .file-attachment-item .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #65676b;
}

.scdev-social-feed .file-attachment-item .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scdev-social-feed .file-attachment-item .file-name {
    font-size: 14px;
    color: #050505;
    font-weight: 500;
}

.scdev-social-feed .file-attachment-item .file-size {
    font-size: 12px;
    color: #65676b;
}

.scdev-social-feed .btn-download {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #65676b;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.scdev-social-feed .btn-download:hover {
    background: #e4e6eb;
    color: #050505;
}

.scdev-social-feed .btn-download .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* ==========================================================================
   Feed Post Link Preview
   ========================================================================== */

.scdev-social-feed .post-link-preview {
    margin-top: 12px;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.scdev-social-feed .post-link-preview .link-preview-image {
    width: 100%;
    height: 200px;
    background: #f0f0f1;
    overflow: hidden;
}

.scdev-social-feed .post-link-preview .link-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scdev-social-feed .post-link-preview .link-preview-content {
    padding: 12px;
}

.scdev-social-feed .post-link-preview .link-preview-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #050505;
    line-height: 1.3;
}

.scdev-social-feed .post-link-preview .link-preview-description {
    margin: 0 0 8px;
    font-size: 14px;
    color: #65676b;
    line-height: 1.4;
}

.scdev-social-feed .post-link-preview .link-preview-url {
    font-size: 12px;
    color: #1877f2;
    text-decoration: none;
    text-transform: uppercase;
}

.scdev-social-feed .post-link-preview .link-preview-url:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Share Modal
   ========================================================================== */

.scdev-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scdev-share-modal .share-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scdev-share-modal .share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e4e6eb;
}

.scdev-share-modal .share-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #050505;
}

.scdev-share-modal .close-share-modal {
    width: 36px;
    height: 36px;
    background: #f2f3f5;
    border: none;
    border-radius: 50%;
    color: #65676b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.scdev-share-modal .close-share-modal:hover {
    background: #e4e6eb;
}

.scdev-share-modal .close-share-modal .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.scdev-share-modal .share-modal-body {
    padding: 24px;
}

.scdev-share-modal .share-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.scdev-share-modal .share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: #f7f8fa;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    color: #050505;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.scdev-share-modal .share-btn:hover {
    background: #e4e6eb;
    border-color: #d8dadf;
    transform: translateY(-2px);
}

.scdev-share-modal .share-btn .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.scdev-share-modal .share-facebook .dashicons {
    color: #1877f2;
}

.scdev-share-modal .share-twitter .dashicons {
    color: #1da1f2;
}

.scdev-share-modal .share-whatsapp .dashicons {
    color: #25d366;
}

.scdev-share-modal .share-tiktok .dashicons {
    color: #000000;
}

.scdev-share-modal .share-copy .dashicons {
    color: #65676b;
}

.scdev-share-modal .share-url-container {
    margin-top: 16px;
}

.scdev-share-modal .share-url-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    font-size: 14px;
    color: #65676b;
    background: #f7f8fa;
}

.scdev-share-modal .share-url-input:focus {
    outline: none;
    border-color: #1877f2;
    background: #fff;
}

/* Responsive Share Modal */
@media (max-width: 480px) {
    .scdev-share-modal .share-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .scdev-share-modal .share-btn {
        padding: 6px 2px;
        font-size: 10px;
    }
    
    .scdev-share-modal .share-btn .dashicons {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
    
    .scdev-share-modal .share-modal-content {
        width: 95%;
        margin: 0 10px;
    }
}

/* ==========================================================================
   Comment Modal
   ========================================================================== */

.scdev-comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.scdev-comment-modal .comment-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.scdev-comment-modal .comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #e4e6eb;
    flex-shrink: 0;
}

.scdev-comment-modal .comment-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #050505;
}

.scdev-comment-modal .close-comment-modal {
    width: 36px;
    height: 36px;
    background: #f2f3f5;
    border: none;
    border-radius: 50%;
    color: #65676b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.scdev-comment-modal .close-comment-modal:hover {
    background: #e4e6eb;
}

.scdev-comment-modal .close-comment-modal .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.scdev-comment-modal .comment-modal-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.scdev-comment-modal .comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.scdev-comment-modal .loading-comments,
.scdev-comment-modal .no-comments,
.scdev-comment-modal .comments-error {
    text-align: center;
    padding: 10px;
    color: #65676b;
    font-size: 15px;
}

.scdev-comment-modal .loading-comments .dashicons {
    display: block;
    margin: 0 auto 10px;
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.scdev-comment-modal .loading-comments .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.scdev-comment-modal .comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

.scdev-comment-modal .comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Threaded replies - indented and smaller */
.scdev-comment-modal .comment-reply {
    margin-left: 40px;
    font-size: 14px;
}

.scdev-comment-modal .comment-depth-1 {
    margin-left: 40px;
}

.scdev-comment-modal .comment-depth-2 {
    margin-left: 80px;
}

.scdev-comment-modal .comment-depth-3 {
    margin-left: 120px;
}

.scdev-comment-modal .comment-reply .comment-avatar {
    width: 32px;
    height: 32px;
}

.scdev-comment-modal .comment-reply .comment-text {
    font-style: italic;
    font-size: 14px;
}

.scdev-comment-modal .comment-reply .comment-author {
    font-size: 13px;
}

.scdev-comment-modal .comment-reply .comment-date {
    font-size: 11px;
}

.scdev-comment-modal .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.scdev-comment-modal .comment-content {
    flex: 1;
    min-width: 0;
}

.scdev-comment-modal .comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.scdev-comment-modal .comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scdev-comment-modal .comment-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scdev-comment-modal .comment-header-actions button {
    padding: 2px 8px;
    background: transparent;
    border: none;
    color: #65676b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.scdev-comment-modal .comment-header-actions button:hover {
    color: #050505;
}

.scdev-comment-modal .comment-header-actions .btn-delete-comment {
    color: #d63638;
}

.scdev-comment-modal .comment-header-actions .btn-delete-comment:hover {
    color: #a02020;
}

.scdev-comment-modal .comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #050505;
}

.scdev-comment-modal .comment-date {
    font-size: 12px;
    color: #65676b;
}

.scdev-comment-modal .comment-text {
    font-size: 15px;
    line-height: 1.2;
    color: #050505;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin-bottom: 6px;
}

/* Reply and Edit Forms */
.scdev-comment-modal .reply-form,
.scdev-comment-modal .edit-comment-form {
    margin-left: 52px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f7f8fa;
    border-radius: 8px;
}

.scdev-comment-modal .comment-reply .reply-form {
    margin-left: 44px;
}

.scdev-comment-modal .reply-textarea,
.scdev-comment-modal .edit-textarea {
    width: 100%;
    min-height: 50px;
    max-height: 120px;
    padding: 10px 12px;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    background: #fff;
}

.scdev-comment-modal .reply-textarea:focus,
.scdev-comment-modal .edit-textarea:focus {
    outline: none;
    border-color: #1877f2;
}

.scdev-comment-modal .reply-form-actions,
.scdev-comment-modal .edit-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.scdev-comment-modal .btn-cancel-reply,
.scdev-comment-modal .btn-cancel-edit {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
    color: #65676b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.scdev-comment-modal .btn-cancel-reply:hover,
.scdev-comment-modal .btn-cancel-edit:hover {
    background: #f2f3f5;
    border-color: #d8dadf;
}

.scdev-comment-modal .btn-submit-reply,
.scdev-comment-modal .btn-save-edit {
    padding: 6px 16px;
    background: #1877f2;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.scdev-comment-modal .btn-submit-reply:hover:not(:disabled),
.scdev-comment-modal .btn-save-edit:hover:not(:disabled) {
    background: #166fe5;
}

.scdev-comment-modal .btn-submit-reply:disabled,
.scdev-comment-modal .btn-save-edit:disabled {
    background: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}

.scdev-comment-modal .comment-actions {
    display: none; /* Old actions moved to header */
}

.scdev-comment-modal .comment-form {
    padding: 10px;
    border-top: 1px solid #e4e6eb;
    flex-shrink: 0;
}

.scdev-comment-modal .comment-textarea {
    width: 100%;
    min-height: 60px;
    max-height: 150px;
    padding: 12px 16px;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

.scdev-comment-modal .comment-textarea:focus {
    outline: none;
    border-color: #1877f2;
}

.scdev-comment-modal .comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.scdev-comment-modal .btn-submit-comment {
    padding: 10px 24px;
    background: #1877f2;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.scdev-comment-modal .btn-submit-comment:hover:not(:disabled) {
    background: #166fe5;
}

.scdev-comment-modal .btn-submit-comment:disabled {
    background: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}

.scdev-comment-modal .comment-login-notice {
    text-align: center;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin: 10px;
}

.scdev-comment-modal .comment-login-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* Responsive Comment Modal */
@media (max-width: 768px) {
    .scdev-comment-modal .comment-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .scdev-comment-modal .comment-modal-header,
    .scdev-comment-modal .comments-list,
    .scdev-comment-modal .comment-form {
        padding: 10px;
    }
    
    /* Reduce indentation on mobile */
    .scdev-comment-modal .comment-reply {
        margin-left: 24px;
    }
    
    .scdev-comment-modal .comment-depth-1 {
        margin-left: 24px;
    }
    
    .scdev-comment-modal .comment-depth-2 {
        margin-left: 48px;
    }
    
    .scdev-comment-modal .comment-depth-3 {
        margin-left: 72px;
    }
    
    .scdev-comment-modal .reply-form,
    .scdev-comment-modal .edit-comment-form {
        margin-left: 36px;
    }
    
    .scdev-comment-modal .comment-reply .reply-form {
        margin-left: 32px;
    }
    
    /* Stack header actions on very small screens */
    @media (max-width: 480px) {
        .scdev-comment-modal .comment-header {
            flex-wrap: wrap;
        }
        
        .scdev-comment-modal .comment-header-actions {
            width: 100%;
            justify-content: flex-start;
            margin-top: 4px;
        }
    }
}
