.social-studio-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.social-studio-post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.social-studio-post.is-used {
    opacity: 0.85;
}

.social-studio-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: #f4f4f4;
}

.social-studio-gallery.has-grid {
    grid-template-columns: repeat(2, 1fr);
}

.social-studio-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.post-header {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e3e3e3;
}

.post-header h3 {
    margin: 0 0 10px;
    color: #222;
    font-size: 19px;
}

.post-platform {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-badge {
    display: inline-block;
    padding: 4px 12px;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #007cba;
}

.platform-badge[data-platform="facebook"] { background: #3b5998; }
.platform-badge[data-platform="instagram"] { background: #e4405f; }
.platform-badge[data-platform="linkedin"] { background: #0a66c2; }

.post-content {
    padding: 18px 16px;
    color: #444;
    line-height: 1.65;
}

.post-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #e3e3e3;
}

.copy-post-btn,
.used-post-btn {
    width: 100%;
    padding: 11px !important;
    font-weight: 600;
}

.copy-post-btn.copied {
    background: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
}

.used-post-btn.used {
    background: #dfe9df !important;
    color: #2e7d32 !important;
    border-color: #a8c4a8 !important;
}

@media (max-width: 768px) {
    .social-studio-posts {
        grid-template-columns: 1fr;
    }
    .post-footer {
        grid-template-columns: 1fr;
    }
}
